1 # $NetBSD: Makefile,v 1.4 2012/10/08 13:04:31 asau Exp $
6 MASTER_SITES
= ftp
://ftp.flaterco.com
/xtide
/
7 DISTFILES
= ${DISTNAME}.
tar.bz2
${HARMONICS_FILE}.bz2
9 MAINTAINER
= pkgsrc-users@NetBSD.org
10 HOMEPAGE
= http
://www.flaterco.com
/
11 COMMENT
= X11 tide predictor
16 PREV_PKGPATH
= misc
/xtide
18 HARMONICS_FILE
= harmonics-dwf-20060708.tcd
20 CONFIGURE_ARGS
+=--sysconfdir
=${PKG_SYSCONFDIR
:Q
} X11BASE
=${X11BASE
:Q
}
21 EGDIR
= ${PREFIX}/share
/examples
/xtide
22 CONF_FILES
= ${EGDIR}/xtide.conf
${PKG_SYSCONFDIR}/xtide.conf
25 SUBST_STAGE.xt
= pre-configure
26 SUBST_FILES.xt
= DOCUMENTATION
/*
27 SUBST_SED.xt
= -e
's|/usr/local|${PREFIX}|g'
29 PLIST_SUBST
+= HARMONICS_FILE
=${HARMONICS_FILE
:Q
}
31 INSTALLATION_DIRS
= share
/xtide
${EGDIR}
32 INSTALL_MAKE_FLAGS
+= prefix=${DESTDIR}${PREFIX} \
33 mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}
36 ${ECHO} "${PREFIX}/share/xtide/${HARMONICS_FILE}" > ${WRKDIR}/xtide.conf
39 ${INSTALL_DATA} ${WRKDIR}/xtide.conf
${DESTDIR}${EGDIR}/xtide.conf
40 ${INSTALL_DATA} ${WRKDIR}/${HARMONICS_FILE} ${DESTDIR}${PREFIX}/share
/xtide
42 .
include "../../graphics/png/buildlink3.mk"
43 .
include "../../x11/libXaw/buildlink3.mk"
44 .
include "../../x11/libXi/buildlink3.mk"
45 .
include "../../x11/libXpm/buildlink3.mk"
46 .
include "../../mk/bsd.pkg.mk"