1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Simplify shlib version generation by using PLIST_SUB.

This commit is contained in:
Satoshi Asami 2000-03-01 18:37:14 +00:00
parent f3ebc2c77a
commit 3b5f83421b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=26472
4 changed files with 8 additions and 18 deletions

View File

@ -25,16 +25,12 @@ MAN8= rmkdbindex.8 rwhoisd.8
.include <bsd.port.pre.mk>
PLIST= ${WRKDIR}/PLIST
.if ${OSVERSION} < 400011
pre-install:
@${SED} -e "/libc.so.4/d" \
${PKGDIR}/PLIST > ${PLIST}
LIBCVERSION= 3.1
.else
pre-install:
@${SED} -e "/libc.so.3/d" \
${PKGDIR}/PLIST > ${PLIST}
LIBCVERSION= 4
.endif
PLIST_SUB= LIBCVERSION=${LIBCVERSION}
post-install:
${MKDIR} -p ${PREFIX}/share/doc/rwhois

View File

@ -87,8 +87,7 @@ lib/rwhois/rwhois.log
lib/rwhois/rwhois.objects
lib/rwhois/rwhois.root
lib/rwhois/sbin/rwhoisd
lib/rwhois/usr/lib/libc.so.3.1
lib/rwhois/usr/lib/libc.so.4
lib/rwhois/usr/lib/libc.so.%%LIBCVERSION%%
lib/rwhois/usr/libexec/ld.so
share/doc/rwhois/EXAMPLES
share/doc/rwhois/INSTALLATION

View File

@ -25,16 +25,12 @@ MAN8= rmkdbindex.8 rwhoisd.8
.include <bsd.port.pre.mk>
PLIST= ${WRKDIR}/PLIST
.if ${OSVERSION} < 400011
pre-install:
@${SED} -e "/libc.so.4/d" \
${PKGDIR}/PLIST > ${PLIST}
LIBCVERSION= 3.1
.else
pre-install:
@${SED} -e "/libc.so.3/d" \
${PKGDIR}/PLIST > ${PLIST}
LIBCVERSION= 4
.endif
PLIST_SUB= LIBCVERSION=${LIBCVERSION}
post-install:
${MKDIR} -p ${PREFIX}/share/doc/rwhois

View File

@ -87,8 +87,7 @@ lib/rwhois/rwhois.log
lib/rwhois/rwhois.objects
lib/rwhois/rwhois.root
lib/rwhois/sbin/rwhoisd
lib/rwhois/usr/lib/libc.so.3.1
lib/rwhois/usr/lib/libc.so.4
lib/rwhois/usr/lib/libc.so.%%LIBCVERSION%%
lib/rwhois/usr/libexec/ld.so
share/doc/rwhois/EXAMPLES
share/doc/rwhois/INSTALLATION