blob: 238a35e78310d2ad4d8f3d6bd2a177695495cda1 (
plain)
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
65
66
67
68
69
|
# New ports collection makefile for: gchemutils
# Date created: Mar 18, 2003
# Whom: Pav Lucistnik <pav@oook.cz>
#
# $FreeBSD$
#
PORTNAME= gchemutils
PORTVERSION= 0.12.7
PORTREVISION= 2
CATEGORIES= science
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}/0.12
DISTNAME= gnome-chemistry-utils-${PORTVERSION}
MAINTAINER= kwm@FreeBSD.org
COMMENT= C++ classes and Gtk2 widgets related to chemistry
LIB_DEPENDS= gtkglext-x11-1.0.0:${PORTSDIR}/x11-toolkits/gtkglext \
openbabel.3:${PORTSDIR}/science/openbabel \
goffice-0.8.8:${PORTSDIR}/devel/goffice
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/bodr.pc:${PORTSDIR}/science/bodr \
${LOCALBASE}/libdata/pkgconfig/chemical-mime-data.pc:${PORTSDIR}/science/chemical-mime-data
RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/bodr.pc:${PORTSDIR}/science/bodr \
${LOCALBASE}/libdata/pkgconfig/chemical-mime-data.pc:${PORTSDIR}/science/chemical-mime-data
USE_BZIP2= yes
USE_XORG= x11
USE_GNOME= gnomehack intlhack gnomedocutils gtk20 libgsf
USE_GMAKE= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ARGS= --with-omf-dir=${PREFIX}/share/omf
INSTALLS_ICONS= yes
INSTALLS_OMF= yes
GCONF_SCHEMAS= gcrystal.schemas gchempaint.schemas gchempaint-arrows.schemas \
gchemutils.schemas
MAN1= gchem3d.1 gchemcalc.1 gchempaint.1 gchemtable.1 gcrystal.1 \
gspectrum.1
PLIST_SUB= VER=0.12 GOFFICE=0.8.16 GNUMERIC_VER=1.10.16
OPTIONS= XUL "Build browser plugin (requires Xulrunner)" off
.include <bsd.port.pre.mk>
.if defined(WITH_XUL)
USE_GECKO= libxul
CONFIGURE_ARGS+=--enable-mozilla-plugin
PLIST_SUB+= XUL=""
.else
CONFIGURE_ARGS+=--disable-mozilla-plugin
PLIST_SUB+= XUL="@comment "
.endif
.if exists(${LOCALBASE}/bin/gnumeric)
RUN_DEPENDS+= gnumeric:${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
.include <bsd.port.post.mk>
|