+2005-03-23 Helge Hess <helge.hess@skyrix.com>
+
+ * added FHS and config.make support, fixed compilation (v4.5.26)
+
2004-08-20 Helge Hess <helge.hess@opengroupware.org>
* deprecated and moved to Recycler
-# $Id$
+# GNUstep makefile
+-include ../../../config.make
include $(GNUSTEP_MAKEFILES)/common.make
+-include ../../../Version
+include ../Version
SUBPROJECT_NAME = Dynamic
-# $Id$
+# GNUstep makefile
-include ../common.make
+-include ../../config.make
+include $(GNUSTEP_MAKEFILES)/common.make
+-include ../../Version
+include ./Version
GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_LOCAL_ROOT)
libNGObjDOM_HEADER_FILES_DIR = .
libNGObjDOM_HEADER_FILES_INSTALL_DIR = /NGObjDOM
+FHS_HEADER_FILES_INSTALL_DIR = $(libNGObjDOM_HEADER_FILES_INSTALL_DIR)
libNGObjDOM_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
+libNGObjDOM_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
libNGObjDOM_HEADER_FILES = \
NGObjDOM.h \
include $(GNUSTEP_MAKEFILES)/bundle.make
include $(GNUSTEP_MAKEFILES)/aggregate.make
-include GNUmakefile.postamble
+include fhs.make
-# $Id$
+# compilation settings
+
+#libNGObjDOM_LIBRARIES_DEPEND_UPON += \
+# -lNGScripting
libNGObjDOM_LIBRARIES_DEPEND_UPON += \
- -lNGObjWeb -lNGScripting \
+ -lNGObjWeb \
-lNGMime -lNGStreams -lNGExtensions -lEOControl \
-lXmlRpc -lDOM -lSaxObjC
NGObjDOM_BUNDLE_LIBS += -lNGObjDOM
+SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
+
# Apple
-# $Id$
+# Version
SUBMINOR_VERSION:=25
\ No newline at end of file
-# $Id$
+# GNUstep makefile
+-include ../../../config.make
include $(GNUSTEP_MAKEFILES)/common.make
+-include ../../../Version
+include ../Version
BUNDLE_NAME = XHTML
BUNDLE_EXTENSION = .odr
-# $Id$
+# compilation settings
ADDITIONAL_CPPFLAGS += -pipe -Wall
-L../../NGScripting/$(GNUSTEP_OBJ_DIR)
endif
+#XHTML_BUNDLE_LIBS += \
+# -lNGScripting
+
XHTML_BUNDLE_LIBS += \
- -lNGObjDOM -lNGObjWeb -lNGScripting \
+ -lNGObjDOM -lNGObjWeb \
-lNGMime -lNGStreams \
-lEOControl -lNGExtensions \
-lXmlRpc -lDOM -lSaxObjC
+
+SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
-# $Id$
+# GNUstep makefile
+-include ../../../config.make
include $(GNUSTEP_MAKEFILES)/common.make
+-include ../../../Version
+include ../Version
BUNDLE_NAME = XUL
BUNDLE_EXTENSION = .odr
--- /dev/null
+# postprocessing
+
+# FHS support (this is a hack and is going to be done by gstep-make!)
+
+# NOTE: you need to define FHS_HEADER_FILES_INSTALL_DIR for one library
+
+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)"
+
+
+fhs-header-dirs ::
+ $(MKDIRS) $(FHS_INCLUDE_DIR)$(FHS_HEADER_FILES_INSTALL_DIR)
+
+fhs-bin-dirs ::
+ $(MKDIRS) $(FHS_BIN_DIR)
+
+
+move-headers-to-fhs :: fhs-header-dirs
+ @echo "moving headers to $(FHS_INCLUDE_DIR) .."
+ mv $(GNUSTEP_HEADERS)$(FHS_HEADER_FILES_INSTALL_DIR)/*.h \
+ $(FHS_INCLUDE_DIR)$(FHS_HEADER_FILES_INSTALL_DIR)/
+
+move-libs-to-fhs ::
+ @echo "moving libs to $(FHS_LIB_DIR) .."
+ mv $(NONFHS_LIBDIR)/$(NONFHS_LIBNAME)* $(FHS_LIB_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
+
+move-to-fhs :: move-headers-to-fhs move-libs-to-fhs move-tools-to-fhs
+
+after-install :: move-to-fhs
+
+endif