1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

- Add NO_ARCH

- Drop unneeded PLIST_DIRS
- Unsilence install
This commit is contained in:
Dmitry Marakasov 2016-01-10 00:21:35 +00:00
parent c824d9469d
commit a390f203fd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=405660

View File

@ -12,19 +12,20 @@ COMMENT= Small demo for tkgeomap
LIB_DEPENDS= libtkgeomap.so:${PORTSDIR}/astro/tkgeomap
USES+= tk:run
USES= tk:run
NO_BUILD= yes
NO_ARCH= yes
DATA_FILES= README cities land.xdr rivers.xdr water.xdr
PLIST_FILES= bin/${PORTNAME} ${DATA_FILES:S,^,%%DATADIR%%/,}
PLIST_DIRS= %%DATADIR%%
PLIST_FILES= bin/${PORTNAME} \
${DATA_FILES:S,^,%%DATADIR%%/,}
post-patch:
@${REINPLACE_CMD} -e 's,data/,${DATADIR}/,g;s,wish,${WISH},' ${WRKSRC}/src/XEartk.tcl
@${REINPLACE_CMD} -e 's| 0\([0-9]\)| \1|g' ${WRKSRC}/data/cities
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/src/XEartk.tcl ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${INSTALL} -d ${STAGEDIR}${DATADIR}
@${INSTALL_DATA} ${DATA_FILES:S,^,${WRKSRC}/data/,} ${STAGEDIR}${DATADIR}/
${INSTALL_SCRIPT} ${WRKSRC}/src/XEartk.tcl ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${DATA_FILES:S,^,${WRKSRC}/data/,} ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>