1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00
freebsd-ports/astro/nightfall/Makefile
Gerald Pfeifer 1cd277bdce Update the default version of GCC used in the Ports Collection from
GCC 4.6.4 to GCC 4.7.3.  This entails updating the lang/gcc port as
well as changing the default in Mk/bsd.default-versions.mk.

Part II, Bump PORTREVISIONs.

PR:		182136
Supported by:	Christoph Moench-Tegeder <cmt@burggraben.net> (fixing many ports)
Tested by:	bdrewery (two -exp runs)
2014-03-10 20:55:20 +00:00

64 lines
1.6 KiB
Makefile

# Created by: Christian Brueffer <chris@unixpages.org>
# $FreeBSD$
PORTNAME= nightfall
PORTVERSION= 1.70
PORTREVISION= 9
CATEGORIES= astro
MASTER_SITES= http://www.la-samhna.de/nightfall/
MAINTAINER= ports@FreeBSD.org
COMMENT= Interactive binary star application
OPTIONS_DEFINE= GNOME PGPLOT OPENGL
OPTIONS_DEFAULT= PGPLOT OPENGL
PGPLOT_DESC= Enable PGPLOT support
USES= gmake pathfix gettext perl5
USE_GNOME= gnomehier gtk20
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-locale-prefix=${PREFIX}/share/locale
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGNOMEUI}
USE_GNOME+= gnomeprefix libgnomeui
CONFIGURE_ARGS+= --with-gnomedoc-prefix=${PREFIX}/share
INSTALLS_OMF= yes
PLIST_SUB+= GNOMEUI=""
.else
CONFIGURE_ARGS+= --disable-gnome
PLIST_SUB+= GNOMEUI="@comment "
.endif
.if ${PORT_OPTIONS:MPGPLOT}
LIB_DEPENDS+= libpgplot.so:${PORTSDIR}/graphics/pgplot
USES+= fortran
CONFIGURE_ARGS+= --with-pgplot-include=${LOCALBASE}/include \
--with-pgplot-lib=${LOCALBASE}/lib
.else
RUN_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot
CONFIGURE_ARGS+= --with-gnuplot
.endif
.if ${PORT_OPTIONS:MOPENGL}
LIB_DEPENDS+= libgtkgl-2.0.so:${PORTSDIR}/x11-toolkits/gtkglarea2
USE_GL= glut
CONFIGURE_ARGS+= --with-lib-GL
.else
CONFIGURE_ARGS+= --disable-opengl
.endif
post-patch:
@${REINPLACE_CMD} -e 's|CFLAGS -O3|CFLAGS|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|^Icon=gnome|Icon=${DATADIR}/pixmaps|g' \
${WRKSRC}/nightfall.desktop
post-install:
${INSTALL_DATA} ${WRKSRC}/nightfall.desktop \
${STAGEDIR}${PREFIX}/share/applications
.include <bsd.port.mk>