]> err.no Git - sope/commitdiff
added OSX framework support
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 9 Aug 2005 23:47:36 +0000 (23:47 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 9 Aug 2005 23:47:36 +0000 (23:47 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1022 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-mime/ChangeLog
sope-mime/GNUmakefile
sope-mime/GNUmakefile.preamble
sope-mime/Version

index 5cb7ba38e6829dd463f63e687a894ac3b01a8fe2..3b524172b84285d05131470b4a08941694dcc6ab 100644 (file)
@@ -1,3 +1,7 @@
+2005-08-10  Helge Hess  <helge.hess@opengroupware.org>
+
+       * added OSX framework support (v4.5.232)
+
 2005-07-27  Helge Hess  <helge.hess@skyrix.com>
 
        * NGImap4: fixed a gcc 4.0 warning (v4.5.231)
index 1966c563b57a6e1a6752b84a5c61620fbc52dd40..327e76c1fca803a8fe43034126280e41832d9899 100644 (file)
@@ -6,7 +6,11 @@ include ./Version
 
 GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_LOCAL_ROOT)
 
+ifneq ($(frameworks),yes)
 LIBRARY_NAME = libNGMime
+else
+FRAMEWORK_NAME = NGMime
+endif
 
 libNGMime_HEADER_FILES_DIR         = .
 libNGMime_HEADER_FILES_INSTALL_DIR = /NGMime
@@ -15,11 +19,21 @@ libNGMime_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBMINOR_VERSION)
 
 libNGMime_SUBPROJECTS = NGMime NGMail NGImap4
 
-ADDITIONAL_CPPFLAGS += -DLIBRARY_MAJOR_VERSION=${MAJOR_VERSION} \
-                      -DLIBRARY_MINOR_VERSION=${MINOR_VERSION} \
-                      -DLIBRARY_SUBMINOR_VERSION=${SUBMINOR_VERSION} \
+
+# framework support
+
+NGMime_HEADER_FILES = $(libNGMime_HEADER_FILES)
+NGMime_OBJC_FILES   = $(libNGMime_OBJC_FILES)
+NGMime_SUBPROJECTS  = $(libNGMime_SUBPROJECTS)
+
+
+# building
 
 -include GNUmakefile.preamble
+ifneq ($(frameworks),yes)
 include $(GNUSTEP_MAKEFILES)/library.make
+else
+include $(GNUSTEP_MAKEFILES)/framework.make
+endif
 -include GNUmakefile.postamble
 -include fhs.make
index 59aef0dccfcf4d074d4402deb0c59941359b5301..b3247d8d03d406938193e0eaa5e4c77c84508509 100644 (file)
@@ -1,35 +1,49 @@
-# $Id$
+# compilation settings
 
-ADDITIONAL_CPPFLAGS += -Wall
+ifeq ($(FOUNDATION_LIB),apple)
+NGMime_INSTALL_DIR = /Library/Frameworks/
+endif
 
-libNGMime_LIBRARIES_DEPEND_UPON += \
-       -lNGStreams -lNGExtensions -lEOControl  \
-       -lDOM -lSaxObjC
+ADDITIONAL_CPPFLAGS += -DLIBRARY_MAJOR_VERSION=${MAJOR_VERSION} \
+                      -DLIBRARY_MINOR_VERSION=${MINOR_VERSION} \
+                      -DLIBRARY_SUBMINOR_VERSION=${SUBMINOR_VERSION} \
+
+ADDITIONAL_CPPFLAGS += -Wall
 
 libNGMime_INCLUDE_DIRS += \
        -I..    \
        -I../sope-core/NGStreams/       \
        -I../sope-core/NGExtensions/
 
-ifneq ($(GNUSTEP_BUILD_DIR),)
-RELBUILD_DIR_SxCore=$(GNUSTEP_BUILD_DIR)/../sope-core
-RELBUILD_DIR_SxXml=$(GNUSTEP_BUILD_DIR)/../sope-xml
 
-libNGMime_LIB_DIRS += \
-       -L$(RELBUILD_DIR_SxCore)/NGStreams/$(GNUSTEP_OBJ_DIR_NAME)      \
-       -L$(RELBUILD_DIR_SxCore)/NGExtensions/$(GNUSTEP_OBJ_DIR_NAME)   \
-       -L$(RELBUILD_DIR_SxCore)/EOControl/$(GNUSTEP_OBJ_DIR_NAME)      \
-       -L$(RELBUILD_DIR_SxXml)/DOM/$(GNUSTEP_OBJ_DIR_NAME)             \
-       -L$(RELBUILD_DIR_SxXml)/SaxObjC/$(GNUSTEP_OBJ_DIR_NAME)
+libNGMime_LIBRARIES_DEPEND_UPON += \
+       -lNGStreams -lNGExtensions -lEOControl  \
+       -lDOM -lSaxObjC
+
+NGMime_LIBRARIES_DEPEND_UPON += \
+       -framework NGStreams -framework NGExtensions -framework EOControl \
+       -framework DOM -framework SaxObjC
+
+
+# library/framework search pathes
+
+DEP_DIRS = \
+       ../sope-core/EOControl ../sope-core/NGExtensions \
+       ../sope-core/NGStreams \
+       ../sope-xml/DOM ../sope-xml/SaxObjC
+
+ifneq ($(frameworks),yes)
+ADDITIONAL_LIB_DIRS += \
+       $(foreach dir,$(DEP_DIRS),\
+         -L$(GNUSTEP_BUILD_DIR)/$(dir)/$(GNUSTEP_OBJ_DIR_NAME))
 else
-libNGMime_LIB_DIRS += \
-       -L../sope-core/NGStreams/$(GNUSTEP_OBJ_DIR)     \
-       -L../sope-core/NGExtensions/$(GNUSTEP_OBJ_DIR)  \
-       -L../sope-core/EOControl/$(GNUSTEP_OBJ_DIR)     \
-       -L../sope-xml/DOM/$(GNUSTEP_OBJ_DIR)            \
-       -L../sope-xml/SaxObjC/$(GNUSTEP_OBJ_DIR)
+ADDITIONAL_LIB_DIRS += \
+       $(foreach dir,$(DEP_DIRS),-F$(GNUSTEP_BUILD_DIR)/$(dir))
 endif
 
+SYSTEM_LIB_DIR += -L/usr/local/lib -L/usr/lib
+
+
 
 # Apple
 
index 0fb50bf38e602939de607adcbf144e8c7f7a4d75..2976429770c4763474c95c122602364f427432b4 100644 (file)
@@ -2,7 +2,7 @@
 
 MAJOR_VERSION:=4
 MINOR_VERSION:=5
-SUBMINOR_VERSION:=231
+SUBMINOR_VERSION:=232
 
 # v4.5.214 requires libNGExtensions v4.5.146
 # v4.2.149 requires libNGStreams    v4.2.34