blob: 79e10dcae8a9cf052af98a13e1b0f0a91687485d (
plain)
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
|
# $NetBSD: Makefile,v 1.1.1.1 2001/05/31 15:48:05 agc Exp $
DISTNAME= xtide-2.4
PKGNAME= ${DISTNAME}
CATEGORIES= misc x11
MASTER_SITES= ftp://ftp.flaterco.com/xtide/
DISTFILES= ${XTIDE_SRC} harmonics.txt.gz offsets.xml.gz
MAINTAINER= paul@whooppee.com
HOMEPAGE= http://www.flaterco.com/
COMMENT= X11 tide predictor
DEPENDS+= png>0.96:../../graphics/png
EXTRACT_ONLY= ${XTIDE_SRC}
XTIDE_SRC= ${DISTNAME}${EXTRACT_SUFX}
GNU_CONFIGURE= yes
USE_X11= yes
post-patch:
@cd ${WRKSRC}/DOCUMENTATION; \
for f in *; do \
${MV} $$f $$f.bak; \
${SED} -e 's|/usr/local|${PREFIX}|g' < $$f.bak > $$f; \
done
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/xtide
${GZCAT} ${DISTDIR}/harmonics.txt.gz > ${WRKDIR}/harmonics.txt
${GZCAT} ${DISTDIR}/offsets.xml.gz > ${WRKDIR}/offsets.xml
${CP} ${FILESDIR}/xtide.conf ${PREFIX}/share/examples/xtide.conf
${CP} ${WRKDIR}/harmonics.txt ${PREFIX}/share/xtide
${CP} ${WRKDIR}/offsets.xml ${PREFIX}/share/xtide
.include "../../mk/bsd.pkg.mk"
|