mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
69 lines
2.2 KiB
Makefile
69 lines
2.2 KiB
Makefile
# Created by: Pav Lucistnik <pav@oook.cz>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gchemutils
|
|
PORTVERSION= 0.14.10
|
|
CATEGORIES= science
|
|
MASTER_SITES= SAVANNAH/${PORTNAME}/${PORTVERSION:R}
|
|
DISTNAME= gnome-chemistry-utils-${PORTVERSION}
|
|
|
|
MAINTAINER= kwm@FreeBSD.org
|
|
COMMENT= C++ classes and Gtk3 widgets related to chemistry
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/bodr.pc:${PORTSDIR}/science/bodr \
|
|
${LOCALBASE}/libdata/pkgconfig/chemical-mime-data.pc:${PORTSDIR}/science/chemical-mime-data
|
|
LIB_DEPENDS= libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext \
|
|
libopenbabel.so:${PORTSDIR}/science/openbabel \
|
|
libgoffice-0.10.so:${PORTSDIR}/devel/goffice010
|
|
RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/bodr.pc:${PORTSDIR}/science/bodr \
|
|
${LOCALBASE}/libdata/pkgconfig/chemical-mime-data.pc:${PORTSDIR}/science/chemical-mime-data
|
|
|
|
PORTSCOUT= limitw:1,even
|
|
|
|
USE_XORG= x11
|
|
USE_GNOME= gnomedocutils gtk30 intlhack libgsf libxml2
|
|
USES= desktop-file-utils gettext gmake libtool:keepla pathfix \
|
|
pkgconfig shared-mime-info tar:xz
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
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_USES= gecko
|
|
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:${PORTSDIR}/math/gnumeric
|
|
PLIST_SUB+= GNUMERIC=""
|
|
.else
|
|
PLIST_SUB+= GNUMERIC="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-ldl||g' ${WRKSRC}/libs/gcp/Makefile.in
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*/*/*/*/*.so
|
|
|
|
.include <bsd.port.mk>
|