Refactoring: Changed all check parameters starting with an 'o' to the new rulespec...
[check_mk.git] / omd / packages / msitools / msitools.make
blob3ac09f2762cb88986cc57116e27bd20e557045e8
1 MSITOOLS := msitools
2 MSITOOLS_VERS := 0.94
3 MSITOOLS_DIR := msitools-$(MSITOOLS_VERS)
5 LCAB_VERSION := 1.0b12
6 LCAB_DIR := lcab-$(LCAB_VERSION)
8 MSITOOLS_BUILD := $(BUILD_HELPER_DIR)/$(MSITOOLS_DIR)-build
9 MSITOOLS_INSTALL := $(BUILD_HELPER_DIR)/$(MSITOOLS_DIR)-install
10 MSITOOLS_PATCHING := $(BUILD_HELPER_DIR)/$(MSITOOLS_DIR)-patching
11 .PHONY: skel
13 # Problem here is: msitools is not compilable on older distros
14 # like Debian 5 or RedHat 5.X. So here we rather ignore
15 # compile problems and msi{build,info} will be missing. Check_MK
16 # then knows this and the agent bakery cannot create MSI
17 # packages. People need to upgrade to a more modern platform
18 # for that.
20 $(MSITOOLS): $(MSITOOLS_BUILD)
22 $(MSITOOLS)-install: $(MSITOOLS_INSTALL)
24 $(MSITOOLS_BUILD): $(MSITOOLS_PATCHING) $(BUILD_HELPER_DIR)/$(LCAB_DIR)-unpack
25 # Do not try to compile on lenny. Compiler is too old
26 if [ "$$($(GCC_SYSTEM) --version | $(SED) -n '1s/.* //p' )" != 4.3.2 ] && cd $(MSITOOLS_DIR) && ./configure --prefix=$(OMD_ROOT) ; then \
27 $(MAKE) -C libmsi ; \
28 $(MAKE) msibuild ; \
29 $(MAKE) msiinfo ; \
31 cd $(LCAB_DIR) && ./configure && $(MAKE)
32 $(TOUCH) $@
34 $(MSITOOLS_INSTALL): $(MSITOOLS_BUILD)
35 echo $(DESTDIR)
36 if [ -f $(MSITOOLS_DIR)/.libs/msiinfo ] ; then \
37 install -m 755 $(MSITOOLS_DIR)/.libs/msiinfo $(DESTDIR)$(OMD_ROOT)/bin ; \
38 install -m 755 $(MSITOOLS_DIR)/.libs/msibuild $(DESTDIR)$(OMD_ROOT)/bin ; \
39 install -m 755 $(LCAB_DIR)/lcab $(DESTDIR)$(OMD_ROOT)/bin ; \
40 install -m 755 $(MSITOOLS_DIR)/libmsi/.libs/libmsi.so* $(DESTDIR)$(OMD_ROOT)/lib ; \
41 $(MKDIR) $(DESTDIR)$(OMD_ROOT)/share/check_mk/agents/windows ; \
42 install -m 644 $(PACKAGE_DIR)/$(MSITOOLS)/*.msi $(DESTDIR)$(OMD_ROOT)/share/check_mk/agents/windows ; \
44 $(TOUCH) $@
46 $(MSITOOLS)-skel:
48 $(MSITOOLS)-clean:
49 $(RM) -r $(MSITOOLS_DIR) $(LCAB_DIR) $(BUILD_HELPER_DIR)/$(MSITOOLS)* $(BUILD_HELPER_DIR)/$(LCAB_DIR)*