blob: 5d0cef09d50d45ad4928c2a0bd269be36134b29b (
plain)
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
|
PORTNAME= gabedit
DISTVERSION= 2.5.1-300720 # the last number is "snapshot"
CATEGORIES= science
MASTER_SITES= https://sites.google.com/site/allouchear/Home/gabedit/download/
DISTNAME= GabeditSrc${DISTVERSION:C/([0-9])\.([0-9])\.([0-9])-([0-9])/\1\2\3_\4/}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Graphical user interface for several chemistry software packages
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/License
BROKEN_i386= undefined reference to `__atomic_load'
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libgtkglext-x11-1.0.so:x11-toolkits/gtkglext
USES= compiler:c++11-lang gettext-runtime gl gmake gnome pkgconfig \
xorg
USE_GNOME= atk cairo gdkpixbuf2 glib20 gtk20 pango pangox-compat
USE_GL= gl glu
USE_XORG= ice sm x11 xmu xt
INSTALLS_ICONS= yes
CFLAGS+= -fcommon # change the default because GlobalOrb.h has many common definitions
BINARY_ALIAS= make=gmake
PLIST_FILES= bin/${PORTNAME} \
share/applications/${PORTNAME}.desktop
ICON_SIZES= 16 24 32 48
.for SZ in ${ICON_SIZES}
PLIST_FILES+= share/icons/hicolor/${SZ}x${SZ}/apps/${PORTNAME}.png
.endfor
OPTIONS_DEFINE= OPENMP
OPTIONS_DEFAULT= OPENMP
post-patch:
@${REINPLACE_CMD} 's|/usr/|${PREFIX}/|; s| -O2| ${CFLAGS}|; s|gcc|${CC}|' ${WRKSRC}/CONFIG
post-patch-OPENMP-off:
@${REINPLACE_CMD} 's|enable_omp = 1|enable_omp = 0|' ${WRKSRC}/CONFIG
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/utils/Others/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
.for SZ in ${ICON_SIZES}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps
${INSTALL_DATA} ${WRKSRC}/icons/Gabedit${SZ}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps/${PORTNAME}.png
.endfor
.include <bsd.port.mk>
|