Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / time / xtide / Makefile
blob9b81c01e85dd2433dbe233f8bd6b7fe256544450
1 # $NetBSD: Makefile,v 1.4 2012/10/08 13:04:31 asau Exp $
3 DISTNAME= xtide-2.8.3
4 PKGREVISION= 5
5 CATEGORIES= misc x11
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
13 GNU_CONFIGURE= yes
14 USE_LANGUAGES= c c++
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
24 SUBST_CLASSES+= xt
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}
35 post-extract:
36 ${ECHO} "${PREFIX}/share/xtide/${HARMONICS_FILE}" > ${WRKDIR}/xtide.conf
38 post-install:
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"