summaryrefslogtreecommitdiffstats
path: root/sysutils/pkg_install
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-09-04 03:41:40 +0000
committermarcus <marcus@FreeBSD.org>2003-09-04 03:41:40 +0000
commit2f801e29040a3a66a0e9f0b45247984b330a5234 (patch)
treeb5b1efbf190ebca126381f74b6fbb43fcf4fbb7e /sysutils/pkg_install
parent2cf69180f474885f2a9c6bc864f37c319aae8e3c (diff)
downloadFreeBSD-ports-2f801e29040a3a66a0e9f0b45247984b330a5234.zip
FreeBSD-ports-2f801e29040a3a66a0e9f0b45247984b330a5234.tar.gz
Fix compilation on systems <= 4.4.
PR: 56324 56389 Submitted by: Oliver Eikemeier <eikemeier@fillmore-labs.com>
Diffstat (limited to 'sysutils/pkg_install')
-rw-r--r--sysutils/pkg_install/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysutils/pkg_install/Makefile b/sysutils/pkg_install/Makefile
index 75f1642..5e8c12c 100644
--- a/sysutils/pkg_install/Makefile
+++ b/sysutils/pkg_install/Makefile
@@ -46,6 +46,12 @@ pre-configure:
-e 's,%%MANPREFIX%%,${MANPREFIX},g' \
${FILESDIR}/Makefile.inc > ${WRKDIR}/Makefile.inc
+.if ${OSVERSION} < 440001 || ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500024 )
+post-patch:
+ @${FIND} ${WRKSRC} -name '*.c' \
+ | ${XARGS} ${PERL} -pi.orig -e 's/__FBSDID\(("[^"]*")\)/static const char rcsid[] = $$1/'
+.endif
+
deinstall:
@if ${PKG_INFO} -e ${PKGNAME}; then \
${PKG_DELETE} -f ${PKGNAME}; \
OpenPOWER on IntegriCloud