aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2009-05-28 20:04:08 +0000
committerMark Linimon <linimon@FreeBSD.org>2009-05-28 20:04:08 +0000
commite46c112701b3ec30dbb0c0ee247bcbe352dc4c76 (patch)
treec016810ad7d23a10da20b1ea40cfa75b346cab54 /ports-mgmt
parent6126e38d1c377bec7c7b8c5a940b53abae5380c9 (diff)
downloadports-e46c112701b3ec30dbb0c0ee247bcbe352dc4c76.tar.gz
ports-e46c112701b3ec30dbb0c0ee247bcbe352dc4c76.zip
Notes
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