From 736d942fe5f77a6c830763842f819fcd855337c3 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Thu, 4 Sep 2003 03:41:40 +0000 Subject: Fix compilation on systems <= 4.4. PR: 56324 56389 Submitted by: Oliver Eikemeier --- ports-mgmt/pkg_install/Makefile | 6 ++++++ sysutils/pkg_install/Makefile | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ports-mgmt/pkg_install/Makefile b/ports-mgmt/pkg_install/Makefile index 75f1642119a6..5e8c12cffbe8 100644 --- a/ports-mgmt/pkg_install/Makefile +++ b/ports-mgmt/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}; \ diff --git a/sysutils/pkg_install/Makefile b/sysutils/pkg_install/Makefile index 75f1642119a6..5e8c12cffbe8 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}; \ -- cgit v1.2.3