diff options
Diffstat (limited to 'astro/nightfall/Makefile')
-rw-r--r-- | astro/nightfall/Makefile | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/astro/nightfall/Makefile b/astro/nightfall/Makefile index 988b85998..306dcb1ec 100644 --- a/astro/nightfall/Makefile +++ b/astro/nightfall/Makefile @@ -6,7 +6,7 @@ # PORTNAME= nightfall -PORTVERSION= 1.61 +PORTVERSION= 1.62 PORTREVISION= 1 CATEGORIES= astro MASTER_SITES= http://www.la-samhna.de/nightfall/ CENKES @@ -44,6 +44,8 @@ RUN_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot CONFIGURE_ARGS+= --with-gnuplot .else LIB_DEPENDS+= pgplot.5:${PORTSDIR}/graphics/pgplot +USE_FORTRAN= yes +CONFIGURE_ENV+= FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}" CONFIGURE_ARGS+= --with-pgplot-include=${LOCALBASE}/include \ --with-pgplot-lib=${LOCALBASE}/lib .endif @@ -51,12 +53,12 @@ CONFIGURE_ARGS+= --with-pgplot-include=${LOCALBASE}/include \ .if defined(WITHOUT_OPENGL) CONFIGURE_ARGS+= --disable-opengl .else -LIB_DEPENDS+= glut.4:${PORTSDIR}/graphics/libglut \ - gtkgl-2.0.1:${PORTSDIR}/x11-toolkits/gtkglarea2 +LIB_DEPENDS+= gtkgl-2.0.1:${PORTSDIR}/x11-toolkits/gtkglarea2 +USE_GL= glut CONFIGURE_ARGS+= --with-lib-GL .endif -pre-configure: +pre-everything:: @${ECHO_MSG} "Nightfall has the following tunable option(s):" @${ECHO_MSG} "" @${ECHO_MSG} " WITHOUT_GNOME=libgnomeui Turns off Gnome support" @@ -65,13 +67,13 @@ pre-configure: @${ECHO_MSG} "" post-patch: - @${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/configure - @${REINPLACE_CMD} -e 's|^Icon=gnome|Icon=${DATADIR}/pixmaps/gnome|g' \ + @${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} -d ${PREFIX}/share/applications/ - @${INSTALL_DATA} ${WRKSRC}/nightfall.desktop \ - ${PREFIX}/share/applications/ + @${MKDIR} ${PREFIX}/share/applications + ${INSTALL_DATA} ${WRKSRC}/nightfall.desktop \ + ${PREFIX}/share/applications .include <bsd.port.post.mk> |