aboutsummaryrefslogtreecommitdiffstats
path: root/astro/xtide/Makefile
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2010-09-18 23:57:03 +0800
committermakc <makc@FreeBSD.org>2010-09-18 23:57:03 +0800
commit45e8454cacc7877d59bf49f20197696506339988 (patch)
treeecde5892ab13b54dfb7ef6987ef53ca034d623f2 /astro/xtide/Makefile
parent661e2d14f3c783c097219801d0850f4179d63ce4 (diff)
downloadfreebsd-ports-gnome-45e8454cacc7877d59bf49f20197696506339988.tar.gz
freebsd-ports-gnome-45e8454cacc7877d59bf49f20197696506339988.tar.zst
freebsd-ports-gnome-45e8454cacc7877d59bf49f20197696506339988.zip
Update libtcd to version 2.2.5
Update harmonics file to version 20100529 PR: ports/150656 Submitted by: KATO Tsuguru <tkato432 at yahoo.com>
Diffstat (limited to 'astro/xtide/Makefile')
-rw-r--r--astro/xtide/Makefile36
1 files changed, 17 insertions, 19 deletions
diff --git a/astro/xtide/Makefile b/astro/xtide/Makefile
index a31d03e9de48..4645aee1f2d3 100644
--- a/astro/xtide/Makefile
+++ b/astro/xtide/Makefile
@@ -7,13 +7,12 @@
PORTNAME= xtide
PORTVERSION= 2.11
+PORTREVISION= 1
CATEGORIES= astro geography
MASTER_SITES= ftp://ftp.flaterco.com/xtide/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
- libtcd-2.2.4.tar.bz2 \
- harmonics-dwf-20091227-free.tar.bz2
-EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \
- libtcd-2.2.4.tar.bz2
+ ${TCD_DISTNAME}${EXTRACT_SUFX} \
+ ${HARM_DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Harmonic tide clock and tide predictor
@@ -24,46 +23,45 @@ USE_BZIP2= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-MAN1= tide.1
-PLIST_FILES= bin/tide bin/xttpd %%DATADIR%%/harmonics.tcd
+MAN1= tide.1
MAN8= xttpd.8
+PLIST_FILES= bin/tide bin/xttpd %%DATADIR%%/harmonics.tcd
PLIST_DIRS= %%DATADIR%%
+CPPFLAGS= -I../${TCD_DISTNAME} -I${LOCALBASE}/include/libpng
+LDFLAGS= -L../${TCD_DISTNAME}/.libs -L${LOCALBASE}/lib
+
+TCD_DISTNAME= libtcd-2.2.5
+HARM_DISTNAME= harmonics-dwf-20100529-free
+
+.include <bsd.port.pre.mk>
+
.if defined(WITHOUT_X11)
PKGNAMESUFFIX= -nox11
ALL_TARGET= tide xttpd
.else
USE_XORG= xpm xaw
-USE_GNOME= gnometarget
MAN1+= xtide.1
PLIST_FILES+= bin/xtide
.endif
-CPPFLAGS= -I../libtcd-2.2.4 -I${LOCALBASE}/include/libpng
-LDFLAGS= -L../libtcd-2.2.4/.libs -L${LOCALBASE}/lib
-
-.include <bsd.port.pre.mk>
-
post-extract:
- @cd ${DISTDIR};${TAR} xzf ${DISTDIR}/harmonics-dwf-20091227-free.tar.bz2
- @${MV} ${DISTDIR}/harmonics-dwf-20091227-free.tcd \
- ${WRKSRC}/harmonics.tcd
+ @${LN} -sf ../${HARM_DISTNAME}.tcd ${WRKSRC}/harmonics.tcd
post-patch:
- @${REINPLACE_CMD} -e 's|== yes|= yes|g' ${WRKDIR}/libtcd-2.2.4/configure
- @${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \
- -e 's|png_check_sig|png_sig_cmp|' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e '/if test/s|==|=|g' ${WRKDIR}/${TCD_DISTNAME}/configure
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Global.cc
pre-configure:
- @cd ${WRKDIR}/libtcd-2.2.4 \
+ @cd ${WRKDIR}/${TCD_DISTNAME} \
&& ${SETENV} ${CONFIGURE_ENV} \
CC="${CC}" CFLAGS="${CFLAGS}" \
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
${SH} ./configure --disable-shared \
${CONFIGURE_ARGS} \
+ && ${MKDIR} ${WRKDIR}/${TCD_DISTNAME}/.libs \
&& ${SETENV} ${MAKE_ENV} ${GMAKE}
do-install: