2012-10-07 16:38:39 +02:00
|
|
|
# Created by: darius@dons.net.au
|
2000-02-23 01:42:13 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-09 00:04:57 +02:00
|
|
|
PORTNAME= xplanet
|
2012-05-09 17:26:09 +02:00
|
|
|
PORTVERSION= 1.3.0
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 1
|
2007-07-22 21:33:55 +02:00
|
|
|
CATEGORIES= astro geography
|
- 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
|
|
|
MASTER_SITES= SF
|
2000-02-23 01:42:13 +01:00
|
|
|
|
2005-03-08 08:38:35 +01:00
|
|
|
MAINTAINER= novel@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Draw pictures of the earth textured by an image
|
2000-02-23 01:42:13 +01:00
|
|
|
|
|
|
|
GNU_CONFIGURE= 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= xt xscrnsaver
|
2004-11-05 20:41:43 +01:00
|
|
|
USE_GNOME= #
|
2004-07-22 23:45:59 +02:00
|
|
|
CONFIGURE_ARGS= --with-map-extension=jpg
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib -lm"
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2000-10-05 08:57:56 +02:00
|
|
|
|
2012-10-07 16:38:39 +02:00
|
|
|
OPTIONS_DEFINE= FREETYPE PANGO GIF JPEG PNG PNM TIFF
|
|
|
|
OPTIONS_DEFAULT= FREETYPE PANGO GIF JPEG PNG PNM TIFF
|
2004-11-05 20:41:43 +01:00
|
|
|
|
2003-04-06 09:52:06 +02:00
|
|
|
MAN1= xplanet.1
|
2000-02-23 01:42:13 +01:00
|
|
|
|
2004-11-05 20:41:43 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-10-07 16:38:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MFREETYPE}
|
2004-07-22 23:45:59 +02:00
|
|
|
CONFIGURE_ARGS+= --with-freetype
|
|
|
|
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-freetype
|
|
|
|
.endif
|
|
|
|
|
2012-10-07 16:38:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MPANGO}
|
2004-07-22 23:45:59 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pango
|
|
|
|
USE_GNOME+= pango
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-pango
|
|
|
|
.endif
|
|
|
|
|
2012-10-07 16:38:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MGIF}
|
2004-07-22 23:45:59 +02:00
|
|
|
CONFIGURE_ARGS+= --with-gif
|
2011-12-24 23:24:51 +01:00
|
|
|
LIB_DEPENDS+= gif.5:${PORTSDIR}/graphics/giflib
|
2004-07-22 23:45:59 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gif
|
|
|
|
.endif
|
|
|
|
|
2012-10-07 16:38:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MJPEG}
|
2004-07-22 23:45:59 +02:00
|
|
|
CONFIGURE_ARGS+= --with-jpeg
|
2010-02-05 12:46:55 +01:00
|
|
|
LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg
|
2004-07-22 23:45:59 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-jpeg
|
|
|
|
.endif
|
|
|
|
|
2012-10-07 16:38:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MPNG}
|
2004-07-22 23:45:59 +02:00
|
|
|
CONFIGURE_ARGS+= --with-png
|
2012-06-01 07:26:28 +02:00
|
|
|
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png
|
2004-07-22 23:45:59 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-png
|
|
|
|
.endif
|
|
|
|
|
2012-10-07 16:38:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MPNM}
|
2004-07-23 21:31:03 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pnm
|
|
|
|
LIB_DEPENDS+= netpbm.1:${PORTSDIR}/graphics/netpbm
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-pnm
|
|
|
|
.endif
|
|
|
|
|
2012-10-07 16:38:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MTIFF}
|
2004-07-22 23:45:59 +02:00
|
|
|
CONFIGURE_ARGS+= --with-tiff
|
|
|
|
LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-tiff
|
|
|
|
.endif
|
|
|
|
|
2005-04-16 12:55:22 +02:00
|
|
|
post-extract:
|
|
|
|
@${REINPLACE_CMD} -e "s/default/default.sample/g" ${WRKSRC}/Makefile.in
|
2012-06-05 19:41:16 +02:00
|
|
|
@${REINPLACE_CMD} -e "s/PrintGifError();/GifError();/g" \
|
|
|
|
${WRKSRC}/src/libimage/gif.c
|
2005-04-16 12:55:22 +02:00
|
|
|
@${MV} ${WRKSRC}/xplanet/config/default ${WRKSRC}/xplanet/config/default.sample
|
|
|
|
|
2000-02-23 01:42:13 +01:00
|
|
|
post-install:
|
2002-05-20 00:31:31 +02:00
|
|
|
.for file in freebsd.committers.markers freebsd.ftp.markers
|
2010-09-01 20:31:50 +02:00
|
|
|
.if exists(${PORTSDIR}/astro/xearth/files/${file})
|
2002-05-20 00:31:31 +02:00
|
|
|
@${INSTALL_DATA} ${PORTSDIR}/astro/xearth/files/${file} \
|
2003-04-06 09:52:06 +02:00
|
|
|
${DATADIR}/markers
|
2010-09-01 20:31:50 +02:00
|
|
|
.endif
|
2002-05-20 00:31:31 +02:00
|
|
|
.endfor
|
2004-03-26 07:57:51 +01:00
|
|
|
@${FIND} ${DATADIR} -type f | \
|
|
|
|
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${DATADIR} -type d | ${SORT} -r | \
|
|
|
|
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
2005-04-16 12:55:22 +02:00
|
|
|
@if test ! -f ${DATADIR}/config/default; then \
|
|
|
|
${CP} ${DATADIR}/config/default.sample ${DATADIR}/config/default; \
|
|
|
|
fi
|
2000-02-23 01:42:13 +01:00
|
|
|
|
2004-11-05 20:41:43 +01:00
|
|
|
.include <bsd.port.post.mk>
|