1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/science/gchemutils/Makefile
Kevin Bowling da3162c7c9 graphics/mesa-libs: Bump reverse deps for libglvnd
Per discussion with bapt on helping pkg handle the changing of these
deps and avoiding impossible upgrade senarios.

PR:		246767
Reviewed by:	manu, bapt
Approved by:	x11
Differential Revision:	https://reviews.freebsd.org/D30824
2021-06-22 11:53:08 -07:00

72 lines
2.2 KiB
Makefile

# Created by: Pav Lucistnik <pav@oook.cz>
PORTNAME= gchemutils
PORTVERSION= 0.14.16
PORTREVISION= 7
CATEGORIES= science
MASTER_SITES= SAVANNAH/${PORTNAME}/${PORTVERSION:R}
DISTNAME= gnome-chemistry-utils-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= C++ classes and Gtk3 widgets related to chemistry
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/bodr.pc:science/bodr \
${LOCALBASE}/libdata/pkgconfig/chemical-mime-data.pc:science/chemical-mime-data
LIB_DEPENDS= libopenbabel.so:science/openbabel \
libgoffice-0.10.so:devel/goffice
RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/bodr.pc:science/bodr \
${LOCALBASE}/libdata/pkgconfig/chemical-mime-data.pc:science/chemical-mime-data
PORTSCOUT= limitw:1,even
USES= compiler:c++11-lang desktop-file-utils gettext gl gmake gnome \
libtool:keepla localbase:ldflags pathfix pkgconfig \
shared-mime-info tar:xz xorg
USE_XORG= x11
USE_GNOME= cairo gtk30 intlhack libgsf libxml2
USE_GL= gl
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-omf-dir=${PREFIX}/share/omf
INSTALLS_ICONS= yes
INSTALLS_OMF= yes
GLIB_SCHEMAS= org.gnome.gchemutils.crystal.gschema.xml \
org.gnome.gchemutils.gschema.xml \
org.gnome.gchemutils.paint.gschema.xml \
org.gnome.gchemutils.paint.plugins.arrows.gschema.xml
VER= ${PORTVERSION:R}
PLIST_SUB= VER=${VER} GOFFICE=0.10 VERSION=${PORTVERSION}
OPTIONS_DEFINE= GNUMERIC XUL
OPTIONS_SUB= yes
GNUMERIC_DESC= Build gnumeric plugin
XUL_DESC= Build browser plugin (requires libxul)
XUL_BROKEN= XULrunner and non-Flash plugins are no longer supported
XUL_CONFIGURE_ON=--enable-mozilla-plugin \
--with-mozilla-libdir=${PREFIX}/lib/xulrunner
XUL_CONFIGURE_OFF=--disable-mozilla-plugin
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGNUMERIC} || exists(${LOCALBASE}/lib/libspreadsheet.so)
LIB_DEPENDS+= libspreadsheet.so:math/gnumeric
PLIST_SUB+= GNUMERIC=""
.else
PLIST_SUB+= GNUMERIC="@comment "
.endif
pre-configure:
${REINPLACE_CMD} -e 's|-ldl||g' ${WRKSRC}/libs/gcp/Makefile.in
${REINPLACE_CMD} -e 's|openbabel-2.0|openbabel-3|' ${WRKSRC}/${CONFIGURE_SCRIPT}
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*/*/*/*/*.so
.include <bsd.port.mk>