aboutsummaryrefslogtreecommitdiff
path: root/science/jstrack/Makefile
blob: 09166e41728d0a4e50ec4f424b484586165a23d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
PORTNAME=	jstrack
PORTVERSION=	3.4.0
CATEGORIES=	science
MASTER_SITES=	https://jstrack.org/${PORTNAME}/downloads/ \
		LOCAL/bofh
DISTNAME=	JStrack-${PORTVERSION}

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Freeware hurricane tracking program
WWW=		https://www.jstrack.org/jstrack/

LICENSE=	JStrack
LICENSE_NAME=	JStrack
LICENSE_TEXT=	It is and always will be free, and [Jim Graham] wrote it...\
		so don't charge money for it, and don't claim that you wrote it
LICENSE_PERMS=	dist-sell pkg-sell auto-accept

RUN_DEPENDS=	dtplite:devel/tcllib tcltls>0:devel/tcltls

WRKSRC=		${WRKDIR}/${PORTNAME}
USES=		tk
NO_BUILD=	yes
NO_ARCH=	yes

SUB_FILES=	${PORTNAME}.sh
SUB_LIST=	WISH=${WISH}

PORTDOCS=	HISTORY JStrack-${PORTVERSION}-Documentation.pdf README

OPTIONS_DEFINE=	DOCS

post-extract:
	@${MKDIR} ${WRKSRC}/tracker/storms/old/2012
	@cd ${WRKSRC}/tracker/storms/old/2012 && ${TAR} xf ../2012.tar.gz
	@${RM} ${WRKSRC}/tracker/storms/old/20*z*
	@${RM} -r ${WRKSRC}/tracker/lib/Img1.4.2
	@${RMDIR} ${WRKSRC}/filt/tmp

post-patch:
	${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/paths.tcl

do-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
	cd ${WRKSRC} && ${COPYTREE_SHARE} "filt tracker" \
		${STAGEDIR}${PREFIX}/lib/${PORTNAME}
	${INSTALL_SCRIPT} ${WRKSRC}/*.tcl ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>