forked from freebsd/freebsd-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (45 loc) · 1.61 KB
/
Makefile
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
PORTNAME= nightfall
PORTVERSION= 1.92
PORTREVISION= 6
CATEGORIES= astro education
MASTER_SITES= http://www.la-samhna.de/nightfall/
MAINTAINER= [email protected]
COMMENT= Interactive binary star application
WWW= http://www.hs.uni-hamburg.de/DE/Ins/Per/Wichmann/Nightfall.html
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2
USES= compiler gettext gmake gnome jpeg pathfix perl5 pkgconfig
USE_GNOME= cairo gdkpixbuf2 gtk20
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-locale-prefix=${PREFIX}/share/locale \
--disable-gnome
OPTIONS_DEFINE= PGPLOT OPENGL
OPTIONS_DEFAULT= PGPLOT OPENGL
OPTIONS_SUB= yes
OPENGL_CONFIGURE_ON= --with-lib-GL
OPENGL_CONFIGURE_OFF= --disable-opengl
OPENGL_LIB_DEPENDS= libgtkgl-2.0.so:x11-toolkits/gtkglarea2
OPENGL_USES= gl
OPENGL_USE= GL=glut,gl,glu
PGPLOT_DESC= PGPLOT support
PGPLOT_CONFIGURE_ON= --with-pgplot-include=${LOCALBASE}/include \
--with-pgplot-lib=${LOCALBASE}/lib
PGPLOT_CONFIGURE_OFF= --with-gnuplot
PGPLOT_LIB_DEPENDS= libpgplot.so:graphics/pgplot
PGPLOT_RUN_DEPENDS_OFF= gnuplot:math/gnuplot
PGPLOT_USES= fortran
.include <bsd.port.pre.mk>
post-patch:
.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} -e 's|-fforce-addr||' ${WRKSRC}/configure
.endif
@${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_DATA} ${WRKSRC}/nightfall.desktop \
${STAGEDIR}${PREFIX}/share/applications
.include <bsd.port.post.mk>