aboutsummaryrefslogtreecommitdiffstats
path: root/astro/xtide/Makefile
diff options
context:
space:
mode:
authorwen <wen@FreeBSD.org>2010-05-04 13:59:35 +0800
committerwen <wen@FreeBSD.org>2010-05-04 13:59:35 +0800
commit695a3d550511b7300a049f07e9ca6f9f5fe0d0f4 (patch)
tree0a35a607451f073cc8c21f8f07338946974a6189 /astro/xtide/Makefile
parentae5be8d4c764c35f7559393064b4c1322ca82b86 (diff)
downloadfreebsd-ports-gnome-695a3d550511b7300a049f07e9ca6f9f5fe0d0f4.tar.gz
freebsd-ports-gnome-695a3d550511b7300a049f07e9ca6f9f5fe0d0f4.tar.zst
freebsd-ports-gnome-695a3d550511b7300a049f07e9ca6f9f5fe0d0f4.zip
- Update libtcd and harmonics file
- Give the ability to build without X PR: ports/145925 Submitted by: Tuc <freebsd-ports@t-b-o-h.net>
Diffstat (limited to 'astro/xtide/Makefile')
-rw-r--r--astro/xtide/Makefile41
1 files changed, 26 insertions, 15 deletions
diff --git a/astro/xtide/Makefile b/astro/xtide/Makefile
index 4fe52743f179..86945b81e4d5 100644
--- a/astro/xtide/Makefile
+++ b/astro/xtide/Makefile
@@ -7,14 +7,14 @@
PORTNAME= xtide
PORTVERSION= 2.10
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= astro geography
MASTER_SITES= ftp://ftp.flaterco.com/xtide/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
- libtcd-2.2.3.tar.bz2 \
- harmonics-dwf-20071228-free.tcd.bz2
+ libtcd-2.2.4.tar.bz2 \
+ harmonics-dwf-20091227-free.tar.bz2
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \
- libtcd-2.2.3.tar.bz2
+ libtcd-2.2.4.tar.bz2
MAINTAINER= ports@FreeBSD.org
COMMENT= Harmonic tide clock and tide predictor
@@ -22,28 +22,37 @@ COMMENT= Harmonic tide clock and tide predictor
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png
USE_BZIP2= yes
-USE_XORG= xpm xaw
-USE_GNOME= gnometarget
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 xtide.1
MAN8= xttpd.8
-PLIST_FILES= bin/tide bin/xtide bin/xttpd %%DATADIR%%/harmonics.tcd
PLIST_DIRS= %%DATADIR%%
-CPPFLAGS= -I../libtcd-2.2.3 -I${LOCALBASE}/include/libpng
-LDFLAGS= -L../libtcd-2.2.3/.libs -L${LOCALBASE}/lib
+.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:
- @${BZCAT} ${DISTDIR}/harmonics-dwf-20071228-free.tcd.bz2 \
- > ${WRKSRC}/harmonics.tcd
+ @cd $(DISTDIR);${TAR} xzf ${DISTDIR}/harmonics-dwf-20091227-free.tar.bz2
+ @$(MV) $(DISTDIR)/harmonics-dwf-20091227-free.tcd \
+ ${WRKSRC}/harmonics.tcd
post-patch:
- @${REINPLACE_CMD} -e 's|== yes|= yes|g' ${WRKDIR}/libtcd-2.2.3/configure
+ @${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 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/configure
@@ -52,7 +61,7 @@ post-patch:
.endfor
pre-configure:
- @cd ${WRKDIR}/libtcd-2.2.3 \
+ @cd ${WRKDIR}/libtcd-2.2.4 \
&& ${SETENV} ${CONFIGURE_ENV} \
CC="${CC}" CFLAGS="${CFLAGS}" \
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
@@ -62,10 +71,12 @@ pre-configure:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tide ${PREFIX}/bin
+.if !defined(WITHOUT_X11)
${INSTALL_PROGRAM} ${WRKSRC}/xtide ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/xtide.1 ${MANPREFIX}/man/man1
+.endif
${INSTALL_PROGRAM} ${WRKSRC}/xttpd ${PREFIX}/bin
${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}