Tweak astro/xmoontool version 3.0.3_8
[dports.git] / astro / nightfall / Makefile
1 # Created by: Christian Brueffer <chris@unixpages.org>
2 # $FreeBSD$
3
4 PORTNAME=       nightfall
5 PORTVERSION=    1.86
6 CATEGORIES=     astro
7 MASTER_SITES=   http://www.la-samhna.de/nightfall/
8
9 MAINTAINER=     ports@FreeBSD.org
10 COMMENT=        Interactive binary star application
11
12 USES=           compiler gettext gmake pathfix perl5 pkgconfig
13 USE_GNOME=      gtk20
14 GNU_CONFIGURE=  yes
15 CPPFLAGS+=      -I${LOCALBASE}/include
16 LDFLAGS+=       -L${LOCALBASE}/lib
17 CONFIGURE_ARGS= --with-locale-prefix=${PREFIX}/share/locale
18
19 OPTIONS_DEFINE=         GNOME PGPLOT OPENGL
20 OPTIONS_DEFAULT=        PGPLOT OPENGL
21 OPTIONS_SUB=            yes
22
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
27
28 OPENGL_CONFIGURE_ON=    --with-lib-GL
29 OPENGL_CONFIGURE_OFF=   --disable-opengl
30 OPENGL_LIB_DEPENDS=     libgtkgl-2.0.so:x11-toolkits/gtkglarea2
31 OPENGL_USE=             GL=glut
32
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
39 PGPLOT_USES=            fortran
40
41 .include <bsd.port.pre.mk>
42
43 post-patch:
44 .if ${COMPILER_TYPE} == clang
45         @${REINPLACE_CMD} -e 's|-fforce-addr||' ${WRKSRC}/configure
46 .endif
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
50
51 post-install:
52         ${INSTALL_DATA} ${WRKSRC}/nightfall.desktop \
53                 ${STAGEDIR}${PREFIX}/share/applications
54
55 .include <bsd.port.post.mk>