blob: c43009bf3ae0737c595f9893708417638905793b (
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
37
38
|
# $NetBSD: Makefile,v 1.4 2002/10/21 12:40:53 wiz Exp $
DISTNAME= xtide-2.4
PKGNAME= ${DISTNAME}
PKGREVISION= 1
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
EXTRACT_ONLY= ${XTIDE_SRC}
XTIDE_SRC= ${DISTNAME}${EXTRACT_SUFX}
USE_BUILDLINK2= yes
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 "../../graphics/png/buildlink2.mk"
.include "../../graphics/xpm/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|