Simplify shlib version generation by using PLIST_SUB.
This commit is contained in:
parent
f3ebc2c77a
commit
3b5f83421b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=26472
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user