aboutsummaryrefslogtreecommitdiff
path: root/astro/xtide/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'astro/xtide/Makefile')
-rw-r--r--astro/xtide/Makefile35
1 files changed, 26 insertions, 9 deletions
diff --git a/astro/xtide/Makefile b/astro/xtide/Makefile
index d6920b4d491c..a654a561ab13 100644
--- a/astro/xtide/Makefile
+++ b/astro/xtide/Makefile
@@ -6,11 +6,14 @@
#
PORTNAME= xtide
-PORTVERSION= 2.8.3
+PORTVERSION= 2.9.1
CATEGORIES= astro
MASTER_SITES= ftp://ftp.flaterco.com/xtide/
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} harmonics-dwf-20060708.tcd.bz2
-EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ libtcd-2.2.2.tar.bz2 \
+ harmonics-dwf-20070318.tcd.bz2
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \
+ libtcd-2.2.2.tar.bz2
MAINTAINER= ports@FreeBSD.org
COMMENT= Harmonic tide clock and tide predictor
@@ -22,28 +25,42 @@ USE_XLIB= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAN1= tide.1 xtide.1
MAN8= xttpd.8
PLIST_FILES= bin/tide bin/xtide bin/xttpd %%DATADIR%%/harmonics.tcd
PLIST_DIRS= %%DATADIR%%
+CPPFLAGS= -I../libtcd-2.2.2 -I${LOCALBASE}/include/libpng
+LDFLAGS= -L../libtcd-2.2.2/.libs -L${LOCALBASE}/lib
+
+.include <bsd.port.pre.mk>
+
post-extract:
- @${BZCAT} ${DISTDIR}/harmonics-dwf-20060708.tcd.bz2 \
+ @${BZCAT} ${DISTDIR}/harmonics-dwf-20070318.tcd.bz2 \
> ${WRKSRC}/harmonics.tcd
post-patch:
+ @${REINPLACE_CMD} -e 's|== yes|= yes|g' ${WRKDIR}/libtcd-2.2.2/configure
@${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/configure
- @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/TideContext.cc
+.for file in Global.cc HarmonicsPath.cc wvsrtv.cc
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/${file}
+.endfor
+
+pre-configure:
+ @cd ${WRKDIR}/libtcd-2.2.2 \
+ && ${SETENV} ${MAKE_ENV} ${SH} ./configure --disable-shared \
+ && ${MAKE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tide ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/xtide ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/xttpd ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/DOCUMENTATION/tide.1 ${MANPREFIX}/man/man1
- ${INSTALL_MAN} ${WRKSRC}/DOCUMENTATION/xtide.1 ${MANPREFIX}/man/man1
- ${INSTALL_MAN} ${WRKSRC}/DOCUMENTATION/xttpd.8 ${MAN8PREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/tide.1 ${MANPREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/xtide.1 ${MANPREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/xttpd.8 ${MAN8PREFIX}/man/man8
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/harmonics.tcd ${DATADIR}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>