aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2009-05-29 04:04:08 +0800
committerlinimon <linimon@FreeBSD.org>2009-05-29 04:04:08 +0800
commit4525b38176b8600a484b8511780013767d26a3fd (patch)
treebd32cef2386b505d81b00d70dc6380abdf61ebc9 /ports-mgmt
parenta234368323819c2929b22861c6b74da759eb5ec6 (diff)
downloadfreebsd-ports-gnome-4525b38176b8600a484b8511780013767d26a3fd.tar.gz
freebsd-ports-gnome-4525b38176b8600a484b8511780013767d26a3fd.tar.zst
freebsd-ports-gnome-4525b38176b8600a484b8511780013767d26a3fd.zip
Catch up with master 1.619.
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/portmk/Mk/bsd.port.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/ports-mgmt/portmk/Mk/bsd.port.mk b/ports-mgmt/portmk/Mk/bsd.port.mk
index 9525c897c6df..0cf7a1415505 100644
--- a/ports-mgmt/portmk/Mk/bsd.port.mk
+++ b/ports-mgmt/portmk/Mk/bsd.port.mk
@@ -2234,6 +2234,14 @@ PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \
.endif
.endif
+.if defined(USE_FPC) || defined(WANT_FPC_BASE) || defined(WANT_FPC_ALL)
+.if exists(${DEVELPORTSDIR}/Mk/bsd.fpc.mk)
+.include "${DEVELPORTSDIR}/Mk/bsd.fpc.mk"
+.else
+.include "${PORTSDIR}/Mk/bsd.fpc.mk"
+.endif
+.endif
+
.if defined(WANT_GECKO) || defined(USE_GECKO)
.if exists(${DEVELPORTSDIR}/Mk/bsd.gecko.mk)
.include "${DEVELPORTSDIR}/Mk/bsd.gecko.mk"
@@ -3044,6 +3052,19 @@ maintainer:
.if !target(check-makefile)
check-makefile::
+.if !exists(/usr/share/mk/bsd.port.options.mk)
+ @${ECHO_CMD} "!!! Detected system without bsd.port.options.mk (probably old FreeBSD version)"
+ @${ECHO_CMD} "!!! Dropping bsd.port.options.mk into /usr/share/mk"
+ -@${ECHO_CMD} "USEOPTIONSMK= yes" > /usr/share/mk/bsd.port.options.mk 2>/dev/null
+ -@${ECHO_CMD} "INOPTIONSMK= yes" >> /usr/share/mk/bsd.port.options.mk 2>/dev/null
+ -@${ECHO_CMD} ".include <bsd.port.mk>" >> /usr/share/mk/bsd.port.options.mk 2>/dev/null
+ -@${ECHO_CMD} ".undef INOPTIONSMK" >> /usr/share/mk/bsd.port.options.mk 2>/dev/null
+.if exists(/usr/share/mk/bsd.port.options.mk)
+ @${ECHO_CMD} "!!! Done"
+.else
+ @${ECHO_CMD} "!!! Failed"
+.endif
+.endif
@${DO_NADA}
.endif