1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/astro/nightfall/Makefile
Joe Marcus Clarke 29747f458a Chase the GNOME X11BASE to LOCALBASE move, and fix the build with the
new freetype2 where needed.

Submitted by:	mezz, ahze, pav, and many others
Approved by:	portmgr (implicit, kris)
2006-10-14 08:54:54 +00:00

79 lines
2.1 KiB
Makefile

# New ports collection makefile for: nightfall
# Date created: 21 February 2002
# Whom: Christian Brueffer <chris@unixpages.org>
#
# $FreeBSD$
#
PORTNAME= nightfall
PORTVERSION= 1.52
PORTREVISION= 1
CATEGORIES= astro
MASTER_SITES= http://www.la-samhna.de/nightfall/
MAINTAINER= ports@FreeBSD.org
COMMENT= An interactive binary star application
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
USE_XLIB= yes
WANT_GNOME= yes
USE_GNOME= gnomehack gnomehier gnometarget gtk20
USE_PERL5= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-locale-prefix=${PREFIX}/share/locale
MAN1= nightfall.1
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mlibgnomeui}!=""
PKGNAMESUFFIX= -gnome
USE_GNOME+= gnomeprefix libgnomeui
CONFIGURE_ARGS+= --with-gnomedoc-prefix=${PREFIX}/share
INSTALLS_OMF= yes
DATADIR= ${PREFIX}/share/gnome/${PORTNAME}
.else
CONFIGURE_ARGS+= --disable-gnome
.endif
.if defined(WITHOUT_PGPLOT)
RUN_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot
CONFIGURE_ARGS+= --with-gnuplot
.else
LIB_DEPENDS+= pgplot.5:${PORTSDIR}/graphics/pgplot
CONFIGURE_ARGS+= --with-pgplot-include=${LOCALBASE}/include \
--with-pgplot-lib=${LOCALBASE}/lib
.endif
.if defined(WITHOUT_OPENGL)
CONFIGURE_ARGS+= --disable-opengl
.else
LIB_DEPENDS+= glut.4:${PORTSDIR}/graphics/libglut \
gtkgl-2.0.1:${PORTSDIR}/x11-toolkits/gtkglarea2
CONFIGURE_ARGS+= --with-lib-GL
.endif
pre-everything::
@${ECHO_MSG} "Nightfall has the following tunable option(s):"
@${ECHO_MSG} ""
@${ECHO_MSG} " WITHOUT_GNOME=libgnomeui Turns off Gnome support"
@${ECHO_MSG} " WITHOUT_PGPLOT=yes Turns off PGPLOT support"
@${ECHO_MSG} " WITHOUT_OPENGL=yes Turns off OpenGL support"
@${ECHO_MSG} ""
post-patch:
@${REINPLACE_CMD} -e 's|CFLAGS -O3|CFLAGS|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|^Icon=gnome|Icon=${DATADIR}/pixmaps/gnome|g' \
${WRKSRC}/nightfall.desktop
post-install:
@${MKDIR} ${PREFIX}/share/gnome/applications
${INSTALL_DATA} ${WRKSRC}/nightfall.desktop \
${PREFIX}/share/gnome/applications
.include <bsd.port.post.mk>