1 # Created by: Christian Brueffer <chris@unixpages.org>
7 MASTER_SITES= http://www.la-samhna.de/nightfall/
9 MAINTAINER= ports@FreeBSD.org
10 COMMENT= Interactive binary star application
12 USES= compiler gettext gmake pathfix perl5 pkgconfig
15 CPPFLAGS+= -I${LOCALBASE}/include
16 LDFLAGS+= -L${LOCALBASE}/lib
17 CONFIGURE_ARGS= --with-locale-prefix=${PREFIX}/share/locale
19 OPTIONS_DEFINE= GNOME PGPLOT OPENGL
20 OPTIONS_DEFAULT= PGPLOT OPENGL
23 GNOME_CONFIGURE_ON= --with-gnomedoc-prefix=${PREFIX}/share
24 GNOME_CONFIGURE_OFF= --disable-gnome
25 GNOME_USE= GNOME=gnomeprefix,libgnomeui
26 GNOME_VARS= INSTALLS_OMF=yes
28 OPENGL_CONFIGURE_ON= --with-lib-GL
29 OPENGL_CONFIGURE_OFF= --disable-opengl
30 OPENGL_LIB_DEPENDS= libgtkgl-2.0.so:x11-toolkits/gtkglarea2
33 PGPLOT_DESC= PGPLOT support
34 PGPLOT_CONFIGURE_ON= --with-pgplot-include=${LOCALBASE}/include \
35 --with-pgplot-lib=${LOCALBASE}/lib
36 PGPLOT_CONFIGURE_OFF= --with-gnuplot
37 PGPLOT_LIB_DEPENDS= libpgplot.so:graphics/pgplot
38 PGPLOT_RUN_DEPENDS_OFF= gnuplot:math/gnuplot
41 .include <bsd.port.pre.mk>
44 .if ${COMPILER_TYPE} == clang
45 @${REINPLACE_CMD} -e 's|-fforce-addr||' ${WRKSRC}/configure
47 @${REINPLACE_CMD} -e 's|CFLAGS -O3|CFLAGS|g' ${WRKSRC}/configure
48 @${REINPLACE_CMD} -e 's|^Icon=gnome|Icon=${DATADIR}/pixmaps|g' \
49 ${WRKSRC}/nightfall.desktop
52 ${INSTALL_DATA} ${WRKSRC}/nightfall.desktop \
53 ${STAGEDIR}${PREFIX}/share/applications
55 .include <bsd.port.post.mk>