mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
3e4ed01146
- 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)
72 lines
2.0 KiB
Makefile
72 lines
2.0 KiB
Makefile
# New ports collection makefile for: xtide
|
|
# Date created: 30 August 1997
|
|
# Whom: Brion Moss <brion@queeg.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= xtide
|
|
PORTVERSION= 2.10
|
|
PORTREVISION= 1
|
|
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
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \
|
|
libtcd-2.2.3.tar.bz2
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Harmonic tide clock and tide predictor
|
|
|
|
LIB_DEPENDS= png.5:${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 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
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-extract:
|
|
@${BZCAT} ${DISTDIR}/harmonics-dwf-20071228-free.tcd.bz2 \
|
|
> ${WRKSRC}/harmonics.tcd
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|== yes|= yes|g' ${WRKDIR}/libtcd-2.2.3/configure
|
|
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/configure
|
|
.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.3 \
|
|
&& ${SETENV} ${CONFIGURE_ENV} \
|
|
CC="${CC}" CFLAGS="${CFLAGS}" \
|
|
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
|
${SH} ./configure --disable-shared \
|
|
${CONFIGURE_ARGS} \
|
|
&& ${SETENV} ${MAKE_ENV} ${GMAKE}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tide ${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xtide ${PREFIX}/bin
|
|
${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}
|
|
|
|
.include <bsd.port.post.mk>
|