aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authoracm <acm@FreeBSD.org>2009-05-23 05:57:33 +0800
committeracm <acm@FreeBSD.org>2009-05-23 05:57:33 +0800
commit3c42024ce91510233974e8a29d31afae83717740 (patch)
treeb67a36534f9790711e53f010746f08a82ec3bcd9 /Mk
parent25994403ee83b6d1261c74cf56fe8dc69342da05 (diff)
downloadfreebsd-ports-gnome-3c42024ce91510233974e8a29d31afae83717740.tar.gz
freebsd-ports-gnome-3c42024ce91510233974e8a29d31afae83717740.tar.zst
freebsd-ports-gnome-3c42024ce91510233974e8a29d31afae83717740.zip
- Add support to defined USE_FPC after of bsd.port.pre.mk include
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.fpc.mk9
-rw-r--r--Mk/bsd.port.mk4
2 files changed, 11 insertions, 2 deletions
diff --git a/Mk/bsd.fpc.mk b/Mk/bsd.fpc.mk
index 2a204d773fc5..b3985664ce7c 100644
--- a/Mk/bsd.fpc.mk
+++ b/Mk/bsd.fpc.mk
@@ -23,7 +23,7 @@
#
#
-.if !defined(_POSTMKINCLUDED) && !defined(_FPCMKINCLUDED)
+.if !defined(_FPCMKINCLUDED)
_FPCMKINCLUDED= yes
@@ -86,6 +86,7 @@ IGNORE= unknown value, please use "yes" instead of
IGNORE= cannot install: unknown FPC unit ${UNITS}
. endif
. endfor
+.endif
# Base units
gdbint_UNIT= devel/fpc-gdbint
@@ -155,6 +156,10 @@ x11_UNIT= x11/fpc-x11
xforms_UNIT= x11-toolkits/fpc-xforms
zlib_UNIT= devel/fpc-zlib
+.endif
+
+.if defined(_POSTMKINCLUDED) && defined(USE_FPC)
+
. for UNITS in ${USE_FPC}
. if ${_FPC_ALL_UNITS:M${UNITS}}!=""
BUILD_DEPENDS+= ${UNITSDIR}/${UNITS}/Package.fpc:${PORTSDIR}/${${UNITS:S/-/_/}_UNIT}
@@ -164,5 +169,5 @@ security-check: fpc-check-install
. endfor
.endif
-.endif
+#.endif
# End of bsd.fpc.mk file
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 4bd52e0ef5b9..969efcb38053 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -2030,6 +2030,10 @@ PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \
.include "${PORTSDIR}/Mk/bsd.autotools.mk"
.endif
+.if defined(USE_FPC) || defined(WANT_FPC_BASE) || defined(WANT_FPC_ALL)
+.include "${PORTSDIR}/Mk/bsd.fpc.mk"
+.endif
+
.if defined(WANT_GECKO) || defined(USE_GECKO)
.include "${PORTSDIR}/Mk/bsd.gecko.mk"
.endif