f2679eddf4
needed, as pointed out in PR pkg/22187 by Greg Troxel).
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.5 2003/07/22 21:14:46 jmmv Exp $
|
|
|
|
DISTNAME= xtide-2.4
|
|
PKGNAME= ${DISTNAME}
|
|
PKGREVISION= 2
|
|
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
|
|
USE_PKGINSTALL= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_X11= yes
|
|
|
|
CONFIGURE_ARGS+=--sysconfdir="${PKG_SYSCONFDIR}"
|
|
EGDIR= ${PREFIX}/share/examples/xtide
|
|
CONF_FILES= ${EGDIR}/xtide.conf ${PKG_SYSCONFDIR}/xtide.conf
|
|
|
|
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
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
${GZCAT} ${DISTDIR}/harmonics.txt.gz > ${WRKDIR}/harmonics.txt
|
|
${GZCAT} ${DISTDIR}/offsets.xml.gz > ${WRKDIR}/offsets.xml
|
|
${CP} ${FILESDIR}/xtide.conf ${EGDIR}/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"
|