Lines 7-20
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= xtide |
8 |
PORTNAME= xtide |
9 |
PORTVERSION= 2.10 |
9 |
PORTVERSION= 2.10 |
10 |
PORTREVISION= 3 |
10 |
PORTREVISION= 4 |
11 |
CATEGORIES= astro geography |
11 |
CATEGORIES= astro geography |
12 |
MASTER_SITES= ftp://ftp.flaterco.com/xtide/ |
12 |
MASTER_SITES= ftp://ftp.flaterco.com/xtide/ |
13 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ |
13 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ |
14 |
libtcd-2.2.3.tar.bz2 \ |
14 |
libtcd-2.2.4.tar.bz2 \ |
15 |
harmonics-dwf-20071228-free.tcd.bz2 |
15 |
harmonics-dwf-20091227-free.tar.bz2 |
16 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \ |
16 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \ |
17 |
libtcd-2.2.3.tar.bz2 |
17 |
libtcd-2.2.4.tar.bz2 |
18 |
|
18 |
|
19 |
MAINTAINER= ports@FreeBSD.org |
19 |
MAINTAINER= ports@FreeBSD.org |
20 |
COMMENT= Harmonic tide clock and tide predictor |
20 |
COMMENT= Harmonic tide clock and tide predictor |
Lines 22-49
Link Here
|
22 |
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png |
22 |
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png |
23 |
|
23 |
|
24 |
USE_BZIP2= yes |
24 |
USE_BZIP2= yes |
25 |
USE_XORG= xpm xaw |
|
|
26 |
USE_GNOME= gnometarget |
27 |
USE_GMAKE= yes |
25 |
USE_GMAKE= yes |
28 |
GNU_CONFIGURE= yes |
26 |
GNU_CONFIGURE= yes |
29 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
27 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
|
|
28 |
MAN1= tide.1 |
29 |
PLIST_FILES= bin/tide bin/xttpd %%DATADIR%%/harmonics.tcd |
30 |
|
30 |
|
31 |
MAN1= tide.1 xtide.1 |
|
|
32 |
MAN8= xttpd.8 |
31 |
MAN8= xttpd.8 |
33 |
PLIST_FILES= bin/tide bin/xtide bin/xttpd %%DATADIR%%/harmonics.tcd |
|
|
34 |
PLIST_DIRS= %%DATADIR%% |
32 |
PLIST_DIRS= %%DATADIR%% |
35 |
|
33 |
|
36 |
CPPFLAGS= -I../libtcd-2.2.3 -I${LOCALBASE}/include/libpng |
34 |
.if defined(WITHOUT_X11) |
37 |
LDFLAGS= -L../libtcd-2.2.3/.libs -L${LOCALBASE}/lib |
35 |
PKGNAMESUFFIX= -nox11 |
|
|
36 |
ALL_TARGET= tide xttpd |
37 |
.else |
38 |
USE_XORG= xpm xaw |
39 |
USE_GNOME= gnometarget |
40 |
MAN1+= xtide.1 |
41 |
PLIST_FILES+= bin/xtide |
42 |
.endif |
43 |
|
44 |
CPPFLAGS= -I../libtcd-2.2.4 -I${LOCALBASE}/include/libpng |
45 |
LDFLAGS= -L../libtcd-2.2.4/.libs -L${LOCALBASE}/lib |
38 |
|
46 |
|
39 |
.include <bsd.port.pre.mk> |
47 |
.include <bsd.port.pre.mk> |
40 |
|
48 |
|
41 |
post-extract: |
49 |
post-extract: |
42 |
@${BZCAT} ${DISTDIR}/harmonics-dwf-20071228-free.tcd.bz2 \ |
50 |
@cd $(DISTDIR);${TAR} xzf ${DISTDIR}/harmonics-dwf-20091227-free.tar.bz2 |
43 |
> ${WRKSRC}/harmonics.tcd |
51 |
@$(MV) $(DISTDIR)/harmonics-dwf-20091227-free.tcd \ |
|
|
52 |
${WRKSRC}/harmonics.tcd |
44 |
|
53 |
|
45 |
post-patch: |
54 |
post-patch: |
46 |
@${REINPLACE_CMD} -e 's|== yes|= yes|g' ${WRKDIR}/libtcd-2.2.3/configure |
55 |
@${REINPLACE_CMD} -e 's|== yes|= yes|g' ${WRKDIR}/libtcd-2.2.4/configure |
47 |
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \ |
56 |
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \ |
48 |
-e 's|png_check_sig|png_sig_cmp|' ${WRKSRC}/configure |
57 |
-e 's|png_check_sig|png_sig_cmp|' ${WRKSRC}/configure |
49 |
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/configure |
58 |
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/configure |
Lines 52-58
Link Here
|
52 |
.endfor |
61 |
.endfor |
53 |
|
62 |
|
54 |
pre-configure: |
63 |
pre-configure: |
55 |
@cd ${WRKDIR}/libtcd-2.2.3 \ |
64 |
@cd ${WRKDIR}/libtcd-2.2.4 \ |
56 |
&& ${SETENV} ${CONFIGURE_ENV} \ |
65 |
&& ${SETENV} ${CONFIGURE_ENV} \ |
57 |
CC="${CC}" CFLAGS="${CFLAGS}" \ |
66 |
CC="${CC}" CFLAGS="${CFLAGS}" \ |
58 |
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \ |
67 |
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \ |
Lines 62-71
Link Here
|
62 |
|
71 |
|
63 |
do-install: |
72 |
do-install: |
64 |
${INSTALL_PROGRAM} ${WRKSRC}/tide ${PREFIX}/bin |
73 |
${INSTALL_PROGRAM} ${WRKSRC}/tide ${PREFIX}/bin |
|
|
74 |
.if !defined(WITHOUT_X11) |
65 |
${INSTALL_PROGRAM} ${WRKSRC}/xtide ${PREFIX}/bin |
75 |
${INSTALL_PROGRAM} ${WRKSRC}/xtide ${PREFIX}/bin |
|
|
76 |
${INSTALL_MAN} ${WRKSRC}/xtide.1 ${MANPREFIX}/man/man1 |
77 |
.endif |
66 |
${INSTALL_PROGRAM} ${WRKSRC}/xttpd ${PREFIX}/bin |
78 |
${INSTALL_PROGRAM} ${WRKSRC}/xttpd ${PREFIX}/bin |
67 |
${INSTALL_MAN} ${WRKSRC}/tide.1 ${MANPREFIX}/man/man1 |
79 |
${INSTALL_MAN} ${WRKSRC}/tide.1 ${MANPREFIX}/man/man1 |
68 |
${INSTALL_MAN} ${WRKSRC}/xtide.1 ${MANPREFIX}/man/man1 |
|
|
69 |
${INSTALL_MAN} ${WRKSRC}/xttpd.8 ${MAN8PREFIX}/man/man8 |
80 |
${INSTALL_MAN} ${WRKSRC}/xttpd.8 ${MAN8PREFIX}/man/man8 |
70 |
@${MKDIR} ${DATADIR} |
81 |
@${MKDIR} ${DATADIR} |
71 |
${INSTALL_DATA} ${WRKSRC}/harmonics.tcd ${DATADIR} |
82 |
${INSTALL_DATA} ${WRKSRC}/harmonics.tcd ${DATADIR} |