1997-11-28 21:44:23 +01:00
|
|
|
# New ports collection makefile for: xtide
|
|
|
|
# Date created: 30 August 1997
|
|
|
|
# Whom: Brion Moss <brion@queeg.com>
|
|
|
|
#
|
1999-08-25 06:22:48 +02:00
|
|
|
# $FreeBSD$
|
1997-11-28 21:44:23 +01:00
|
|
|
#
|
|
|
|
|
2000-04-09 00:04:57 +02:00
|
|
|
PORTNAME= xtide
|
2008-02-13 00:21:28 +01:00
|
|
|
PORTVERSION= 2.10
|
2009-01-23 17:28:36 +01:00
|
|
|
PORTREVISION= 2
|
2007-07-22 21:33:55 +02:00
|
|
|
CATEGORIES= astro geography
|
2006-12-17 22:47:23 +01:00
|
|
|
MASTER_SITES= ftp://ftp.flaterco.com/xtide/
|
2007-03-26 13:25:55 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
2008-01-03 12:39:33 +01:00
|
|
|
libtcd-2.2.3.tar.bz2 \
|
2008-02-13 00:21:28 +01:00
|
|
|
harmonics-dwf-20071228-free.tcd.bz2
|
2007-03-26 13:25:55 +02:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \
|
2008-01-03 12:39:33 +01:00
|
|
|
libtcd-2.2.3.tar.bz2
|
1997-11-28 21:44:23 +01:00
|
|
|
|
2002-11-23 03:25:42 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= Harmonic tide clock and tide predictor
|
2000-04-18 02:00:41 +02:00
|
|
|
|
2001-09-11 05:32:41 +02:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
|
1997-11-28 21:44:23 +01:00
|
|
|
|
2006-12-17 22:47:23 +01:00
|
|
|
USE_BZIP2= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= xpm xaw
|
2008-01-03 12:39:33 +01:00
|
|
|
USE_GNOME= gnometarget
|
2005-07-17 23:23:01 +02:00
|
|
|
USE_GMAKE= yes
|
2000-06-26 15:53:05 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2007-03-26 13:25:55 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2003-05-03 00:06:49 +02:00
|
|
|
|
2004-03-28 18:20:45 +02:00
|
|
|
MAN1= tide.1 xtide.1
|
2005-07-17 23:23:01 +02:00
|
|
|
MAN8= xttpd.8
|
|
|
|
PLIST_FILES= bin/tide bin/xtide bin/xttpd %%DATADIR%%/harmonics.tcd
|
2004-03-28 18:20:45 +02:00
|
|
|
PLIST_DIRS= %%DATADIR%%
|
1997-11-28 21:44:23 +01:00
|
|
|
|
2008-01-03 12:39:33 +01:00
|
|
|
CPPFLAGS= -I../libtcd-2.2.3 -I${LOCALBASE}/include/libpng
|
|
|
|
LDFLAGS= -L../libtcd-2.2.3/.libs -L${LOCALBASE}/lib
|
2007-03-26 13:25:55 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1997-11-28 21:44:23 +01:00
|
|
|
post-extract:
|
2008-02-13 00:21:28 +01:00
|
|
|
@${BZCAT} ${DISTDIR}/harmonics-dwf-20071228-free.tcd.bz2 \
|
2004-03-28 18:20:45 +02:00
|
|
|
> ${WRKSRC}/harmonics.tcd
|
1997-11-28 21:44:23 +01:00
|
|
|
|
2000-06-26 15:53:05 +02:00
|
|
|
post-patch:
|
2008-01-03 12:39:33 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|== yes|= yes|g' ${WRKDIR}/libtcd-2.2.3/configure
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/configure
|
2007-03-26 13:25:55 +02:00
|
|
|
.for file in Global.cc HarmonicsPath.cc wvsrtv.cc
|
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/${file}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
pre-configure:
|
2008-01-03 12:39:33 +01:00
|
|
|
@cd ${WRKDIR}/libtcd-2.2.3 \
|
2008-02-13 00:21:28 +01:00
|
|
|
&& ${SETENV} ${CONFIGURE_ENV} \
|
|
|
|
CC="${CC}" CFLAGS="${CFLAGS}" \
|
|
|
|
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
|
|
|
${SH} ./configure --disable-shared \
|
|
|
|
${CONFIGURE_ARGS} \
|
|
|
|
&& ${SETENV} ${MAKE_ENV} ${GMAKE}
|
2000-06-26 15:53:05 +02:00
|
|
|
|
1997-11-28 21:44:23 +01:00
|
|
|
do-install:
|
2000-04-18 02:00:41 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tide ${PREFIX}/bin
|
2005-07-17 23:23:01 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xtide ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xttpd ${PREFIX}/bin
|
2007-03-26 13:25:55 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/tide.1 ${MANPREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/xtide.1 ${MANPREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/xttpd.8 ${MAN8PREFIX}/man/man8
|
2003-05-03 00:06:49 +02:00
|
|
|
@${MKDIR} ${DATADIR}
|
2004-03-28 18:20:45 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/harmonics.tcd ${DATADIR}
|
1997-11-28 21:44:23 +01:00
|
|
|
|
2007-03-26 13:25:55 +02:00
|
|
|
.include <bsd.port.post.mk>
|