diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-09-04 03:41:40 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-09-04 03:41:40 +0000 |
commit | 736d942fe5f77a6c830763842f819fcd855337c3 (patch) | |
tree | 1e4e8210f62c8aa3c7abef8a8ad8e9036275353a | |
parent | - don't clobber any given LDFLAGS (diff) |
Fix compilation on systems <= 4.4.
PR: 56324
56389
Submitted by: Oliver Eikemeier <eikemeier@fillmore-labs.com>
Notes
Notes:
svn path=/head/; revision=88476
-rw-r--r-- | ports-mgmt/pkg_install/Makefile | 6 | ||||
-rw-r--r-- | sysutils/pkg_install/Makefile | 6 |
2 files changed, 12 insertions, 0 deletions
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}; \ |