blob: fc41b9131d967d62e5c572ebff27acfc02b78996 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# New ports collection makefile for: nightfall
# Date created: 21 February 2002
# Whom: Christian Brueffer <chris@unixpages.org>
#
# $FreeBSD$
#
PORTNAME= nightfall
PORTVERSION= 1.62
PORTREVISION= 2
CATEGORIES= astro
MASTER_SITES= http://www.la-samhna.de/nightfall/ CENKES
MAINTAINER= ports@FreeBSD.org
COMMENT= An interactive binary star application
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
USE_XORG= x11 xext xrender xinerama xi xrandr xcursor \
xcomposite xdamage xfixes
WANT_GNOME= yes
USE_GNOME= gnomehack gnomehier gnometarget gtk20
USE_PERL5= yes
USE_GETTEXT= 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
INSTALLS_OMF= yes
.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
USE_FORTRAN= yes
CONFIGURE_ENV+= FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}"
CONFIGURE_ARGS+= --with-pgplot-include=${LOCALBASE}/include \
--with-pgplot-lib=${LOCALBASE}/lib
.endif
.if defined(WITHOUT_OPENGL)
CONFIGURE_ARGS+= --disable-opengl
.else
LIB_DEPENDS+= gtkgl-2.0.1:${PORTSDIR}/x11-toolkits/gtkglarea2
USE_GL= glut
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|g' \
${WRKSRC}/nightfall.desktop
post-install:
@${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/nightfall.desktop \
${PREFIX}/share/applications
.include <bsd.port.post.mk>
|