]> err.no Git - scalable-opengroupware.org/commitdiff
added FHS install support to bundles
authorhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Sat, 12 Feb 2005 16:07:23 +0000 (16:07 +0000)
committerhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Sat, 12 Feb 2005 16:07:23 +0000 (16:07 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@546 d1b88da0-ebda-0310-925b-ed51d893ca5b

15 files changed:
SOGo/SoObjects/Appointments/GNUmakefile
SOGo/SoObjects/Contacts/GNUmakefile
SOGo/SoObjects/Mailer/GNUmakefile
SOGo/SoObjects/SOGo/GNUmakefile
SOGo/SoObjects/Sieve/GNUmakefile
SOGo/UI/Anais/GNUmakefile
SOGo/UI/Common/GNUmakefile
SOGo/UI/Contacts/GNUmakefile
SOGo/UI/Contacts/GNUmakefile.preamble
SOGo/UI/Mailer/GNUmakefile
SOGo/UI/SOGoUI/GNUmakefile
SOGo/UI/Scheduler/GNUmakefile
SOGo/UI/Scheduler/GNUmakefile.preamble
SOGo/fhsbundle.make
SOGo/fhslib.make [new file with mode: 0644]

index feac2367374b3717de2da7237dbab0de78783065..5ff6acc38645aab0488435c220203c7e2e04381d 100644 (file)
@@ -20,3 +20,4 @@ Appointments_RESOURCE_FILES += \
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/bundle.make
 -include GNUmakefile.postamble
+include ../../fhsbundle.make
index e737ed7e2d4c365198293983a69e7880ae0e74f2..a88e5c37a86136e3cd7a7afb2d88da67487739f7 100644 (file)
@@ -1,4 +1,4 @@
-# $Id$
+# GNUstep makefile
 
 include ../common.make
 
@@ -19,3 +19,4 @@ Contacts_RESOURCE_FILES +=            \
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/bundle.make
 -include GNUmakefile.postamble
+include ../../fhsbundle.make
index 1e6ae666157a1da8b6a1c1385f5dfcc3f7adc98d..31da6471bb491ea1ffebcf38474af8aa05dd53bf 100644 (file)
@@ -32,3 +32,4 @@ Mailer_RESOURCE_FILES += \
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/bundle.make
 -include GNUmakefile.postamble
+include ../../fhsbundle.make
index a1db9856da1a2a879f46bf6c4060d021d06bd22f..29a0cb5c5e3dec97e9aaef8e48350ceba6440de4 100644 (file)
@@ -1,4 +1,4 @@
-# $Id$
+# GNUstep makefile
 
 include $(GNUSTEP_MAKEFILES)/common.make
 -include ../../Version
index 9921fefdd9a2b6af374ec05de1cb9d437391f369..ea2446e483907da3c5b52d939d210563a53a84f5 100644 (file)
@@ -19,3 +19,4 @@ Sieve_RESOURCE_FILES += \
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/bundle.make
 -include GNUmakefile.postamble
+include ../../fhsbundle.make
index 1fd423726ab1ef43f3b0937e0307c6001765e021..e507f8ca848cd4a4f08604d5721df8755c53ee2d 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: GNUmakefile,v 1.2 2003/12/09 17:38:42 helge Exp $
+# GNUstep makefile
 
 include ../common.make
 
@@ -29,3 +29,4 @@ AnaisUI_LOCALIZED_RESOURCE_FILES +=   \
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/bundle.make
 -include GNUmakefile.postamble
+include ../../fhsbundle.make
index bee0fdb0e45b5f666405ab96ef644aef150cc1d5..20439a67f87e64ffa7bc3d3d12a0905a71c57f60 100644 (file)
@@ -62,3 +62,4 @@ CommonUI_LOCALIZED_RESOURCE_FILES +=  \
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/bundle.make
 -include GNUmakefile.postamble
+include ../../fhsbundle.make
index 9a2ca9a20aca01d1c15244660c90dcd11ad43951..df779a55611db5558777c9a83b96a312b498ccd0 100644 (file)
@@ -1,4 +1,4 @@
-# $Id$
+# GNUstep makefile
 
 include ../common.make
 
@@ -31,12 +31,9 @@ ContactsUI_RESOURCE_FILES +=         \
 ContactsUI_LOCALIZED_RESOURCE_FILES += \
        default.strings                 \
 
-ADDITIONAL_INCLUDE_DIRS += \
-       -I.. -I../.. -I../../..
-
-
 # make
 
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/bundle.make
 -include GNUmakefile.postamble
+include ../../fhsbundle.make
index a8e09ec01e023cfc3cd0f8846d071df7568947b1..ca886a67390aa57934c05c6e78788b2e0704ec68 100644 (file)
@@ -1 +1,4 @@
 # compile flags
+
+ADDITIONAL_INCLUDE_DIRS += \
+       -I.. -I../.. -I../../..
index 243cdd1db3fb83c8d7c88904e707dbf300f35058..abe80885a8ffcbf0049be37a6d12e10062a87b23 100644 (file)
@@ -105,3 +105,4 @@ MailerUI_LOCALIZED_RESOURCE_FILES += \
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/bundle.make
 -include GNUmakefile.postamble
+include ../../fhsbundle.make
index 0f1a66a7874ad66fa7fc872c57c5c2973230b89a..bf26801f215e97b557f587f3d3938a4f5883d8a5 100644 (file)
@@ -1,4 +1,4 @@
-# $Id$
+# GNUstep makefile
 
 include $(GNUSTEP_MAKEFILES)/common.make
 
index f5db8afe16d589b451b1fd07280e6fcbde7d9c28..49065c1acd39f218ed3c9716293d04f294c96d19 100644 (file)
@@ -1,4 +1,4 @@
-# $Id$
+# GNUstep makefile
 
 include ../common.make
 
@@ -111,12 +111,9 @@ SchedulerUI_RESOURCE_FILES +=              \
        skycalendar.html                \
        skycalendar.js                  \
 
-ADDITIONAL_INCLUDE_DIRS += \
-       -I.. -I../.. -I../../..
-
-
 # make
 
 -include GNUmakefile.preamble
 include $(GNUSTEP_MAKEFILES)/bundle.make
 -include GNUmakefile.postamble
+include ../../fhsbundle.make
index 08b0584f2d2bc7555b0ddd44d47d1bc7e0121c64..efc9130d98e8a3f21498bb3396b15a107496a02f 100644 (file)
@@ -1 +1,4 @@
 # compile settings
+
+ADDITIONAL_INCLUDE_DIRS += \
+       -I.. -I../.. -I../../..
index 1c4fbdc2967be7180c7e493e80402aa35063fe99..7f3b547e97903a18db16dab693dbe1792f96d92a 100644 (file)
@@ -15,14 +15,14 @@ fhs-sogod-dirs ::
        $(MKDIRS) $(FHS_SOGOD_DIR)
 
 move-bundles-to-fhs :: fhs-sogod-dirs
-       @echo "moving bundles $(BUNDLE_INSTALL_DIR) to $(FHS_WEBUI_DIR) .."
+       @echo "moving bundles $(BUNDLE_INSTALL_DIR) to $(FHS_SOGOD_DIR) .."
        for i in $(BUNDLE_NAME); do \
-          j="$(FHS_WEBUI_DIR)/$${i}$(BUNDLE_EXTENSION)"; \
+          j="$(FHS_SOGOD_DIR)/$${i}$(BUNDLE_EXTENSION)"; \
          if test -d $$j; then rm -r $$j; fi; \
          (cd $(BUNDLE_INSTALL_DIR); \
            $(TAR) chf - --exclude=CVS --exclude=.svn --to-stdout \
             "$${i}$(BUNDLE_EXTENSION)") | \
-          (cd $(FHS_WEBUI_DIR); $(TAR) xf -); \
+          (cd $(FHS_SOGOD_DIR); $(TAR) xf -); \
          rm -rf "$(BUNDLE_INSTALL_DIR)/$${i}$(BUNDLE_EXTENSION)";\
        done
 
diff --git a/SOGo/fhslib.make b/SOGo/fhslib.make
new file mode 100644 (file)
index 0000000..42a60a3
--- /dev/null
@@ -0,0 +1,61 @@
+# postprocessing
+
+# FHS support (this is a hack and is going to be done by gstep-make!)
+
+ifneq ($(FHS_INSTALL_ROOT),)
+
+FHS_INCLUDE_DIR=$(FHS_INSTALL_ROOT)/include/
+FHS_LIB_DIR=$(FHS_INSTALL_ROOT)/lib/
+FHS_BIN_DIR=$(FHS_INSTALL_ROOT)/bin/
+
+NONFHS_LIBDIR="$(GNUSTEP_LIBRARIES)/$(GNUSTEP_TARGET_LDIR)/"
+NONFHS_LIBNAME="$(LIBRARY_NAME)$(LIBRARY_NAME_SUFFIX)$(SHARED_LIBEXT)"
+NONFHS_BINDIR="$(GNUSTEP_TOOLS)/$(GNUSTEP_TARGET_LDIR)"
+
+# headers
+
+ifneq ($(FHS_HEADER_DIRS),)
+
+move-headers-to-fhs ::
+       @echo "moving headers to $(FHS_INCLUDE_DIR) .."
+       for i in "$(FHS_HEADER_DIRS)"; do \
+         $(MKDIRS) $(FHS_INCLUDE_DIR)/$$i;     \
+          mv $(GNUSTEP_HEADERS)/$$i/*.h $(FHS_INCLUDE_DIR)/$$i/; \
+       done
+
+else
+
+move-headers-to-fhs :: 
+
+endif
+
+move-libs-to-fhs :: 
+       @echo "moving libs to $(FHS_LIB_DIR) .."
+       mv $(NONFHS_LIBDIR)/$(NONFHS_LIBNAME)* $(FHS_LIB_DIR)/
+
+# tools
+
+ifneq ($(TOOL_NAME),)
+
+fhs-bin-dirs ::
+       $(MKDIRS) $(FHS_BIN_DIR)
+
+move-tools-to-fhs :: fhs-bin-dirs
+       @echo "moving tools from $(NONFHS_BINDIR) to $(FHS_BIN_DIR) .."
+       for i in $(TOOL_NAME); do \
+         mv "$(NONFHS_BINDIR)/$${i}" $(FHS_BIN_DIR); \
+       done
+
+else
+
+move-tools-to-fhs ::
+
+endif
+
+# master
+
+move-to-fhs :: move-headers-to-fhs move-libs-to-fhs move-tools-to-fhs
+
+after-install :: move-to-fhs
+
+endif