blob: a654a561ab13586667b855dfe58437a07eb81ef2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# New ports collection makefile for: xtide
# Date created: 30 August 1997
# Whom: Brion Moss <brion@queeg.com>
#
# $FreeBSD$
#
PORTNAME= xtide
PORTVERSION= 2.9.1
CATEGORIES= astro
MASTER_SITES= ftp://ftp.flaterco.com/xtide/
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
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
USE_BZIP2= yes
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-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
.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}/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>
|