aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2006-11-30 14:55:29 +0800
committerdinoex <dinoex@FreeBSD.org>2006-11-30 14:55:29 +0800
commit50318fd0a3db94e40b50816a558e6feb9ed084d7 (patch)
tree6dd976eb325549aca15c81b388d49dba5148f2bc /Mk
parent021aacfea37805266de910d429669e13f337036e (diff)
downloadfreebsd-ports-gnome-50318fd0a3db94e40b50816a558e6feb9ed084d7.tar.gz
freebsd-ports-gnome-50318fd0a3db94e40b50816a558e6feb9ed084d7.tar.zst
freebsd-ports-gnome-50318fd0a3db94e40b50816a558e6feb9ed084d7.zip
- new option USE_GNUSTEP_LDCONFIG
- new option USE_MAKEFILE - default USE_GMAKE and GNUmakefile
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.gnustep.mk29
1 files changed, 27 insertions, 2 deletions
diff --git a/Mk/bsd.gnustep.mk b/Mk/bsd.gnustep.mk
index af975c758736..e71bdacb791f 100644
--- a/Mk/bsd.gnustep.mk
+++ b/Mk/bsd.gnustep.mk
@@ -134,11 +134,26 @@ GNU_ARCH= ix86
GNU_ARCH= ${MACHINE_ARCH}
.endif
+.if !defined(USE_MAKEFILE)
+USE_GMAKE= yes
+MAKEFILE= GNUmakefile
+.endif
+
+.if defined(ADDITIONAL_OBJCFLAGS)
+MAKE_ENV+= ADDITIONAL_OBJCFLAGS="${ADDITIONAL_OBJCFLAGS}"
+.endif
+.if defined(ADDITIONAL_LDFLAGS)
+MAKE_ENV+= ADDITIONAL_LDFLAGS="${ADDITIONAL_LDFLAGS}"
+.endif
+
GNUSTEP_PREFIX?= ${LOCALBASE}/GNUstep
+DEFAULT_LIBVERSION?= 0.0.1
+
.if defined(USE_GNUSTEP_PREFIX)
PREFIX= ${GNUSTEP_PREFIX}
NO_MTREE= yes
.endif
+
SYSTEMDIR= ${GNUSTEP_PREFIX}/System
SYSMAKEDIR= ${SYSTEMDIR}/Library/Makefiles
SYSBUNDLEDIR= ${SYSTEMDIR}/Library/Bundles
@@ -146,15 +161,14 @@ SYSLIBDIR= ${SYSTEMDIR}/Library/Libraries
COMBOLIBDIR= ${SYSTEMDIR}/Library/Libraries
LOCALLIBDIR= ${GNUSTEP_PREFIX}/Local/Library/Libraries
LOCALBUNDLEDIR= ${GNUSTEP_PREFIX}/Local/Library/Bundles
+
.if defined(WITH_GNUSTEP_DEVEL)
PKGNAMESUFFIX?= -devel${PKGNAMESUFFIX2}
PLIST_SUB+= GNUSTEP_DEVEL=""
PLIST_SUB+= GNUSTEP_STABLE="@comment "
-DEFAULT_LIBVERSION?= 0.0.1
.else
PLIST_SUB+= GNUSTEP_DEVEL="@comment "
PLIST_SUB+= GNUSTEP_STABLE=""
-DEFAULT_LIBVERSION?= 0.0.1
.endif
PLIST_SUB+= GNU_ARCH=${GNU_ARCH} VERSION=${PORTVERSION}
@@ -426,4 +440,15 @@ TARGLIB!= (cd ${PORTSDIR}/${GNUSTEP_GCC_PORT} && make -V TARGLIB)
.endif
+# ---------------------------------------------------------------------------
+# run ldconfig for installed shlibs
+#
+.if defined(USE_GNUSTEP_LDCONFIG)
+.for i in ${USE_GNUSTEP_LDCONFIG}
+LDCONFIG_DIRS+= ${i}
+.endfor
+INSTALLS_SHLIB= yes
+NO_FILTER_SHLIBS= yes
+.endif
+
# eof