summaryrefslogtreecommitdiff
path: root/astro/xtide/Makefile
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-03-28 16:20:45 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-03-28 16:20:45 +0000
commit583ef20d476c2ad4ce5bd7bf6c35a32dc73a655f (patch)
tree617e177cd96e027447fb6bc676b908e8a3bced76 /astro/xtide/Makefile
parent- Update to version 3.1.8 (diff)
- Update to version 2.6.4
PR: ports/64849 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=105523
Diffstat (limited to 'astro/xtide/Makefile')
-rw-r--r--astro/xtide/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/astro/xtide/Makefile b/astro/xtide/Makefile
index d5487436d284..078d5fd9ae30 100644
--- a/astro/xtide/Makefile
+++ b/astro/xtide/Makefile
@@ -6,10 +6,10 @@
#
PORTNAME= xtide
-PORTVERSION= 2.5
+PORTVERSION= 2.6.4
CATEGORIES= astro
MASTER_SITES= ftp://bel-marduk.unh.edu/xtide/
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} harmonics.txt.gz
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} harmonics-2004-02-08.tcd.gz
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
@@ -17,8 +17,6 @@ COMMENT= Harmonic tide clock and tide predictor
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
-IGNOREFILES= harmonics.txt.gz
-
USE_X_PREFIX= yes
USE_XPM= yes
USE_REINPLACE= yes
@@ -27,13 +25,17 @@ CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-MAN1= xtide.1 tide.1
+MAN1= tide.1 xtide.1
+PLIST_FILES= bin/tide bin/xtide %%DATADIR%%/harmonics.tcd
+PLIST_DIRS= %%DATADIR%%
post-extract:
- @${GZCAT} ${DISTDIR}/harmonics.txt.gz > ${WRKSRC}/harmonics
+ @${GZCAT} ${DISTDIR}/harmonics-2004-02-08.tcd.gz \
+ > ${WRKSRC}/harmonics.tcd
post-patch:
@${REINPLACE_CMD} -e "s:%%PREFIX%%:${PREFIX}:g" ${WRKSRC}/TideContext.cc
+ @${REINPLACE_CMD} -e "s:#include <malloc\.h>::g" ${WRKSRC}/libtcd/tcd.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xtide ${PREFIX}/bin
@@ -41,6 +43,6 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/DOCUMENTATION/xtide.1 ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/DOCUMENTATION/tide.1 ${MANPREFIX}/man/man1
@${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/harmonics ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/harmonics.tcd ${DATADIR}
.include <bsd.port.mk>