blob: 08db3af6c09544e0ea6f4f9ae692b73a798a2c64 (
plain) (
blame)
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
57
58
59
60
61
62
63
64
|
# Created by: Pav Lucistnik <pav@oook.cz>
# $FreeBSD$
PORTNAME= gchemutils
PORTVERSION= 0.14.2
CATEGORIES= science
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${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= gtkglext-x11-1.0:${PORTSDIR}/x11-toolkits/gtkglext \
openbabel:${PORTSDIR}/science/openbabel \
goffice-0.10:${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_XZ= yes
USE_XORG= x11
USE_GNOME= gnomedocutils gtk30 intlhack libgsf libxml2
USES= desktop-file-utils gettext pathfix shared-mime-info gmake pkgconfig
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
MAN1= gchem3d.1 gchemcalc.1 gchempaint.1 gchemtable.1 gcrystal.1 \
gspectrum.1
PLIST_SUB= VER=0.14 GOFFICE=0.10
OPTIONS_DEFINE= XUL
XUL_DESC= Build browser plugin (requires libxul)
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MXUL}
USE_GECKO= libxul
CONFIGURE_ARGS+=--enable-mozilla-plugin \
--with-mozilla-libdir=${PREFIX}/lib/xulrunner
PLIST_SUB+= XUL=""
.else
CONFIGURE_ARGS+=--disable-mozilla-plugin
PLIST_SUB+= XUL="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-ldl||g' ${WRKSRC}/libs/gcp/Makefile.in
.include <bsd.port.mk>
|