o slave port handling enhancements

- special support for NO_WRKSUBDIR
	- support slaveport-post-install target

Approved by:	maintainer
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2001-11-18 23:06:23 +00:00
parent ae033e8a27
commit 0a47abdbd9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=50202

View file

@ -31,10 +31,12 @@ NO_CDROM= "Size; the data set is much too big"
NO_BUILD= yes NO_BUILD= yes
.if (${PORTNAME}==cs) .if (${PORTNAME}==cs)
PORTREVISION= 1 PORTREVISION= 1
BUILD_DEPENDS= ${NONEXISTENT}:${HALFLIFESERVER_PORT}:patch BUILD_DEPENDS+= ${NONEXISTENT}:${HALFLIFESERVER_PORT}:patch
WRKSRC?= ${WRKDIR}/cstrike WRKSRC?= ${WRKDIR}/cstrike
.else .else
.ifndef(NO_WRKSUBDIR)
WRKSRC?= ${WRKDIR}/${PORTNAME} WRKSRC?= ${WRKDIR}/${PORTNAME}
.endif # NO_WRKSUBDIR
.endif .endif
PLIST_SUB+= ${PLIST_SUB_MASTER} PLIST_SUB+= ${PLIST_SUB_MASTER}
@ -85,6 +87,7 @@ install-parse-plist: generate-plist
-e 'chop($$file = <FHANDLER>);' \ -e 'chop($$file = <FHANDLER>);' \
-e '$$dir = $$file_partial = $$file;' \ -e '$$dir = $$file_partial = $$file;' \
-e '$$file_partial =~ s!^${HLDSDIR:S!^/!!}!!;' \ -e '$$file_partial =~ s!^${HLDSDIR:S!^/!!}!!;' \
-e '$$file_partial =~ s!^[^/]+/!! if defined(${NO_WRKSUBDIR});' \
-e 'print FDIR "${INSTALL_DIR}", \ -e 'print FDIR "${INSTALL_DIR}", \
" ", "\"${PREFIX}/$$dir\"", \ " ", "\"${PREFIX}/$$dir\"", \
"\n" if $$dir =~ s!(^\@dirrm\s+)!!;' \ "\n" if $$dir =~ s!(^\@dirrm\s+)!!;' \
@ -104,7 +107,11 @@ install-run-scripts:
@${SH} ${WRKDIR}/${script}.sh @${SH} ${WRKDIR}/${script}.sh
.endfor .endfor
post-install: .if !target(slaveport-post-install)
slaveport-post-install:
.endif
post-install: slaveport-post-install
@${CAT} ${PKGMESSAGE} @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk> .include <bsd.port.mk>