SUBPROJECTS += sope-ldap
endif
+ifeq ($(FOUNDATION_LIB),apple)
+ifeq ($(frameworks),yes)
+SUBPROJECTS += sopex
+endif
+endif
+
-include $(GNUSTEP_MAKEFILES)/GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/aggregate.make
if test -d .gsmake; then rm -r .gsmake; fi
if test -f config-NGStreams.log; then rm config-NGStreams.log; fi
if test -f config-gstepmake.log; then rm config-gstepmake.log; fi
+
+macosx-pkg ::
+ for i in $(SUBPROJECTS); do \
+ (cd $$i; $(MAKE) macosx-pkg); \
+ done
\ No newline at end of file
}
+# ****************************** sudo *********************************
+
+function ensureSudo() {
+ # this will bring up the 'sudo' authentication
+ if test "x$USER" != "xroot"; then
+ echo "We need to run some commands using 'sudo', so please enter your "
+ echo "credentials when being asked for them (unless you already did so)"
+ sudo touch /tmp/osx-pkg-sudo-tmp
+ sudo rm /tmp/osx-pkg-sudo-tmp
+ fi
+}
+
+
# ****************************** running ******************************
echo "Building MacOSX Installer.app package $PKG_NAME.pkg .."
validateArgs;
+ensureSudo;
+
prepareTmpDirs;
installIntoTmpDirs;
fixUpPermissions;
# debugging, print results
#debugShowResults;
+
+# move results
+if test -d "$PKG_DIR"; then
+ if test -d "${oldpwd}/${PKG_NAME}.pkg"; then
+ rm -rf "${oldpwd}/${PKG_NAME}.pkg"
+ fi
+ mv "$PKG_DIR" "${oldpwd}/${PKG_NAME}.pkg"
+else
+ echo "ERROR: did not find package: $PKG_DIR"
+fi
+
#cleanupTmpDirs;
endif
-include $(GNUSTEP_MAKEFILES)/GNUmakefile.postamble
+
+
+# package
+
+macosx-pkg :: all
+ ../maintenance/make-osxpkg.sh sope-appserver
ifeq ($(frameworks),yes)
include $(GNUSTEP_MAKEFILES)/framework.make
endif
+
+
+# package
+
+macosx-pkg :: all
+ ../maintenance/make-osxpkg.sh sope-core
-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/aggregate.make
-include GNUmakefile.postamble
+
+
+# package
+
+macosx-pkg :: all
+ ../maintenance/make-osxpkg.sh sope-gdl1
endif
include $(GNUSTEP_MAKEFILES)/aggregate.make
+
+
+# package
+
+macosx-pkg :: all
+ ../maintenance/make-osxpkg.sh sope-ical
samples
include $(GNUSTEP_MAKEFILES)/aggregate.make
+
+
+# package
+
+macosx-pkg :: all
+ ../maintenance/make-osxpkg.sh sope-ldap
endif
-include GNUmakefile.postamble
-include fhs.make
+
+
+# package
+
+macosx-pkg :: all
+ ../maintenance/make-osxpkg.sh sope-mime
FRAMEWORK_NAME = DOM
endif
-libDOM_HEADER_FILES_DIR = .
-libDOM_HEADER_FILES_INSTALL_DIR = /DOM
-libDOM_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
-libDOM_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
-
LDOM_HEADER_FILES += \
DOM.h \
DOMProtocols.h \
$(DOM_CORE_OBJC_FILES) \
$(DOM_TRAVERSAL_OBJC_FILES) \
-# framework support
-DOM_HEADER_FILES = $(libDOM_HEADER_FILES)
-DOM_OBJC_FILES = $(libDOM_OBJC_FILES)
-
# building
# compilation settings
+libDOM_HEADER_FILES_DIR = .
+libDOM_HEADER_FILES_INSTALL_DIR = /DOM
+libDOM_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
+libDOM_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
+DOM_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
+DOM_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
+
+
+# framework support
+DOM_HEADER_FILES = $(libDOM_HEADER_FILES)
+DOM_OBJC_FILES = $(libDOM_OBJC_FILES)
+
+
ADDITIONAL_INCLUDE_DIRS += -I.. -I../..
libDOM_LIBRARIES_DEPEND_UPON += -lSaxObjC
ifeq ($(frameworks),yes)
include $(GNUSTEP_MAKEFILES)/framework.make
endif
+
+
+# package
+
+macosx-pkg :: all
+ ../maintenance/make-osxpkg.sh sope-xml
FRAMEWORK_NAME = SaxObjC
endif
-libSaxObjC_DLL_DEF = libSaxObjC.def
-libSaxObjC_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
-libSaxObjC_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
-
-libSaxObjC_HEADER_FILES_DIR = .
-libSaxObjC_HEADER_FILES_INSTALL_DIR = /SaxObjC
-
libSaxObjC_OBJC_FILES = \
SaxAttributeList.m \
SaxAttributes.m \
SaxMethodCallHandler.h \
XMLNamespaces.h \
-# framework support
-SaxObjC_HEADER_FILES = $(libSaxObjC_HEADER_FILES)
-SaxObjC_OBJC_FILES = $(libSaxObjC_OBJC_FILES)
-
# building
# compilation settings
+libSaxObjC_DLL_DEF = libSaxObjC.def
+libSaxObjC_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
+libSaxObjC_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
+SaxObjC_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
+SaxObjC_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
+
+libSaxObjC_HEADER_FILES_DIR = .
+libSaxObjC_HEADER_FILES_INSTALL_DIR = /SaxObjC
+
+# framework support
+SaxObjC_HEADER_FILES = $(libSaxObjC_HEADER_FILES)
+SaxObjC_OBJC_FILES = $(libSaxObjC_OBJC_FILES)
+
+
ADDITIONAL_CPPFLAGS += \
-Wall -DCOMPILE_FOR_GSTEP_MAKE=1 \
-DSOPE_MAJOR_VERSION=$(MAJOR_VERSION) \
FRAMEWORK_NAME = XmlRpc
endif
-libXmlRpc_HEADER_FILES_DIR = .
-libXmlRpc_HEADER_FILES_INSTALL_DIR = /XmlRpc
-libXmlRpc_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
-libXmlRpc_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
-
libXmlRpc_HEADER_FILES = \
XmlRpc.h \
NSObject+XmlRpc.h \
NSString+XmlRpcCoding.m \
NSURL+XmlRpcCoding.m \
-# framework support
-XmlRpc_HEADER_FILES = $(libXmlRpc_HEADER_FILES)
-XmlRpc_OBJC_FILES = $(libXmlRpc_OBJC_FILES)
-
-include GNUmakefile.preamble
ifneq ($(frameworks),yes)
# compilation settings
+libXmlRpc_HEADER_FILES_DIR = .
+libXmlRpc_HEADER_FILES_INSTALL_DIR = /XmlRpc
+libXmlRpc_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
+libXmlRpc_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
+XmlRpc_SOVERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
+XmlRpc_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
+
+
+# framework support
+XmlRpc_HEADER_FILES = $(libXmlRpc_HEADER_FILES)
+XmlRpc_OBJC_FILES = $(libXmlRpc_OBJC_FILES)
+
+
libXmlRpc_LIBRARIES_DEPEND_UPON += -lSaxObjC -lDOM
ifneq ($(GNUSTEP_BUILD_DIR),)
include $(GNUSTEP_MAKEFILES)/aggregate.make
+
+# package
+
+macosx-pkg :: all
+ ../maintenance/make-osxpkg.sh "SOPE:X"
+
endif
endif