2013-02-04 10:36:28 +01:00
|
|
|
# Created by: torstenb
|
1999-08-25 06:22:48 +02:00
|
|
|
# $FreeBSD$
|
1996-09-15 01:43:02 +02:00
|
|
|
|
2000-04-09 00:04:57 +02:00
|
|
|
PORTNAME= sunclock
|
2013-02-04 10:36:28 +01:00
|
|
|
PORTVERSION= 3.57
|
2014-12-25 21:54:41 +01:00
|
|
|
PORTREVISION= 1
|
2001-04-02 16:11:02 +02:00
|
|
|
CATEGORIES= astro x11-clocks
|
2014-02-27 10:22:59 +01:00
|
|
|
MASTER_SITES= DEBIAN
|
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
|
1996-09-15 01:43:02 +02:00
|
|
|
|
2011-10-24 05:33:20 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Shows which portion of the Earth's surface is illuminated by the Sun
|
2001-07-10 03:43:18 +02:00
|
|
|
|
2013-02-04 10:36:28 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
2001-04-22 16:35:32 +02:00
|
|
|
|
2014-02-27 10:22:59 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2015-06-22 20:33:20 +02:00
|
|
|
USES= jpeg
|
- 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
|
2013-02-04 10:36:28 +01:00
|
|
|
|
|
|
|
CPPFLAGS+= $$(libpng-config --I_opts) \
|
|
|
|
-I${LOCALBASE}/include \
|
|
|
|
-DEMXBINDIR=\\\"${PREFIX}/bin\\\" \
|
|
|
|
-DDOCDIR=\\\"${PREFIX}/lib/X11/doc\\\"
|
|
|
|
LDFLAGS+= $$(libpng-config --L_opts) \
|
|
|
|
-L${LOCALBASE}/lib
|
1996-09-15 01:43:02 +02:00
|
|
|
|
2013-02-04 10:36:28 +01:00
|
|
|
post-patch:
|
|
|
|
@cd ${WRKSRC} && ${SED} -e \
|
|
|
|
'/^DESTDIR/s|=.*|=${PREFIX}| ; \
|
|
|
|
s|/X11R6/man|$$(DESTDIR)/man| ; \
|
|
|
|
s|bin/X11|bin| ; \
|
|
|
|
s|^CC=|CC?=| ; \
|
|
|
|
s|^CFLAGS=|CFLAGS+=| ; \
|
|
|
|
s|-I/usr/include/X11|$${CPPFLAGS}| ; \
|
|
|
|
s|-L/usr/X11R6/lib|$${LDFLAGS}| ; \
|
|
|
|
s| make | $$(MAKE) | ; \
|
|
|
|
s|$$(SHAREDIR)/bin|$$(DESTDIR)/bin| ; \
|
|
|
|
s|$$(SHAREDIR)/editkit|$$(DESTDIR)/share/sunclock/editkit|' \
|
|
|
|
< Makefile.noimake > Makefile
|
|
|
|
@${LN} -sf sunclock.man ${WRKSRC}/sunclock.1
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|= -O2|+= $${CPPFLAGS}| ; \
|
|
|
|
s|-L/usr/X11R6/lib|$${LDFLAGS}| ; \
|
|
|
|
s|gcc |$$(CC) |' ${WRKSRC}/editkit/Makefile.kit
|
|
|
|
@${LN} -sf rc.example ${WRKSRC}/editkit/emxrc
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|gzFile \* fd;|gzFile fd;|' ${WRKSRC}/readvmf.c
|
|
|
|
|
|
|
|
do-install:
|
2014-02-27 10:22:59 +01:00
|
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} sunclock \
|
|
|
|
${STAGEDIR}${PREFIX}/bin)
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_MAN} sunclock.1 \
|
|
|
|
${STAGEDIR}${MANPREFIX}/man/man1)
|
2013-10-25 08:28:14 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
2014-02-27 10:22:59 +01:00
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} Sunclockrc \
|
|
|
|
${STAGEDIR}${DATADIR})
|
2013-10-25 08:28:14 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/earthmaps/vmf
|
2014-02-27 10:22:59 +01:00
|
|
|
(cd ${WRKSRC}/vmf && ${INSTALL_DATA} *.vmf \
|
|
|
|
${STAGEDIR}${DATADIR}/earthmaps/vmf)
|
2013-10-25 08:28:14 +02:00
|
|
|
@${GZIP_CMD} ${STAGEDIR}${DATADIR}/earthmaps/vmf/*.vmf
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/i18n
|
2014-02-27 10:22:59 +01:00
|
|
|
(cd ${WRKSRC}/i18n && ${INSTALL_DATA} Sunclock.?? \
|
|
|
|
${STAGEDIR}${DATADIR}/i18n)
|
|
|
|
(cd ${WRKSRC}/editkit && ${INSTALL_PROGRAM} emx \
|
|
|
|
${STAGEDIR}${PREFIX}/bin)
|
2013-10-25 08:28:14 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/editkit
|
2014-02-27 10:22:59 +01:00
|
|
|
(cd ${WRKSRC}/editkit && ${INSTALL_DATA} MANUAL.emacs README emxrc \
|
|
|
|
${STAGEDIR}${DATADIR}/editkit)
|
2013-02-04 10:36:28 +01:00
|
|
|
|
1996-09-15 01:43:02 +02:00
|
|
|
.include <bsd.port.mk>
|