mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
0fae2e9e0e
Change x11/xorgproto to become a build time dependency when added to USE_XORG. Change the dependency to be on the port, rather than a file the port installs. Fix fallout. Bump portrevision on depending ports. PR: 230909 Reviewed by: eadler Approved by: portmgr (antoine) Obtained from: https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/xorgproto exp-run: antoine Differential Revision: https://reviews.freebsd.org/D16906
58 lines
1.6 KiB
Makefile
58 lines
1.6 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= gabedit
|
|
DISTVERSION= 2.5.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= science
|
|
MASTER_SITES= http://prdownloads.sourceforge.net/${PORTNAME}/
|
|
DISTNAME= GabeditSrc${DISTVERSION:S/.//g}
|
|
|
|
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= gettext-runtime gmake pkgconfig
|
|
USE_GNOME= atk cairo gdkpixbuf2 glib20 gtk20 pango pangox-compat
|
|
USE_GL= gl glu
|
|
USE_XORG= x11
|
|
INSTALLS_ICONS= yes
|
|
|
|
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
|
|
|
|
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}
|
|
.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>
|