aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authoryuri <yuri@FreeBSD.org>2018-08-26 03:48:48 +0800
committeryuri <yuri@FreeBSD.org>2018-08-26 03:48:48 +0800
commit64887579f2ae13239ca826fc4d75c20cb2498577 (patch)
treebe5a739a02792cd3af01c39b6ab9f1de0515b00d /science
parent3fc85ba35f671657407c3e74ab1b0d14ae046f31 (diff)
downloadfreebsd-ports-gnome-64887579f2ae13239ca826fc4d75c20cb2498577.tar.gz
freebsd-ports-gnome-64887579f2ae13239ca826fc4d75c20cb2498577.tar.zst
freebsd-ports-gnome-64887579f2ae13239ca826fc4d75c20cb2498577.zip
science/gabedit: Add the option OPENMP
Also remove WRKSRC which isn't needed.
Diffstat (limited to 'science')
-rw-r--r--science/gabedit/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/science/gabedit/Makefile b/science/gabedit/Makefile
index 1b8c80afb8a3..6862c3fe8227 100644
--- a/science/gabedit/Makefile
+++ b/science/gabedit/Makefile
@@ -2,6 +2,7 @@
PORTNAME= gabedit
DISTVERSION= 2.5.0
+PORTREVISION= 1
CATEGORIES= science
MASTER_SITES= http://prdownloads.sourceforge.net/${PORTNAME}/
DISTNAME= GabeditSrc${DISTVERSION:S/.//g}
@@ -14,8 +15,7 @@ LICENSE_FILE= ${WRKSRC}/License
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
- libgtkglext-x11-1.0.so:x11-toolkits/gtkglext \
- libomp.so:devel/openmp
+ libgtkglext-x11-1.0.so:x11-toolkits/gtkglext
USES= gettext-runtime gmake pkgconfig
USE_GNOME= atk cairo gdkpixbuf2 glib20 gtk20 pango pangox-compat
@@ -23,8 +23,6 @@ USE_GL= gl glu
USE_XORG= x11
INSTALLS_ICONS= yes
-WRKSRC= ${WRKDIR}/GabeditSrc250
-
BINARY_ALIAS= make=gmake
PLIST_FILES= bin/gabedit \
@@ -35,9 +33,17 @@ ICON_SIZES= 16 24 32 48
PLIST_FILES+= share/icons/hicolor/${SZ}x${SZ}/apps/gabedit.png
.endfor
+OPTIONS_DEFINE= OPENMP
+OPTIONS_DEFAULT= OPENMP
+
+OPENMP_LIB_DEPENDS= libomp.so:devel/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}