mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
- Add stage support
- Add DOCS option Approved by: portmgr (blanket)
This commit is contained in:
parent
8ada39bd30
commit
1afe86b739
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362293
@ -18,13 +18,13 @@ BUILD_DEPENDS= netwox:${PORTSDIR}/net-mgmt/netwox \
|
||||
xterm:${PORTSDIR}/x11/xterm
|
||||
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src/src
|
||||
SHORTPORTVERSION=${PORTVERSION:C/([0-9]*)\.([0-9]*)\.[0-9]*/\1\2/}
|
||||
MAN1= ${PORTNAME}.1 ${PORTNAME}${SHORTPORTVERSION}.1
|
||||
|
||||
PLIST_SUB+= SHORTPORTVERSION=${SHORTPORTVERSION}
|
||||
|
||||
NO_STAGE= yes
|
||||
do-configure:
|
||||
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
|
||||
-e 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
||||
@ -32,9 +32,7 @@ do-configure:
|
||||
cd ${WRKSRC}; ${SH} ./genemake
|
||||
|
||||
post-install:
|
||||
.ifndef(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${CP} -R ${WRKSRC}/../../${PORTNAME}-${PORTVERSION}-doc_html/* ${DOCSDIR}
|
||||
.endif
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${CP} -R ${WRKSRC}/../../${PORTNAME}-${PORTVERSION}-doc_html/* ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +1,7 @@
|
||||
bin/netwag%%SHORTPORTVERSION%%
|
||||
bin/netwag
|
||||
man/man1/netwag.1.gz
|
||||
man/man1/netwag%%SHORTPORTVERSION%%.1.gz
|
||||
%%PORTDOCS%%%%DOCSDIR%%/html/lessons.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/images/banner_netwag.jpg
|
||||
%%PORTDOCS%%%%DOCSDIR%%/index.html
|
||||
|
Loading…
Reference in New Issue
Block a user