mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
7f4572eae4
With hat: portmgr Sponsored by: Absolight
32 lines
857 B
Makefile
32 lines
857 B
Makefile
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xeartk
|
|
PORTVERSION= 2.2
|
|
PORTREVISION= 3
|
|
CATEGORIES= astro tk
|
|
MASTER_SITES= SF/tkgeomap/${PORTNAME}/${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Small demo for tkgeomap
|
|
|
|
LIB_DEPENDS= libtkgeomap.so:astro/tkgeomap
|
|
|
|
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%%/,}
|
|
|
|
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}
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${DATA_FILES:S,^,${WRKSRC}/data/,} ${STAGEDIR}${DATADIR}/
|
|
|
|
.include <bsd.port.mk>
|