2003-04-08 02:04:57 +02:00
|
|
|
# New ports collection makefile for: gchemutils
|
|
|
|
# Date created: Mar 18, 2003
|
|
|
|
# Whom: Pav Lucistnik <pav@oook.cz>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2007-10-25 01:37:25 +02:00
|
|
|
#
|
2003-04-08 02:04:57 +02:00
|
|
|
|
|
|
|
PORTNAME= gchemutils
|
2011-02-28 13:14:36 +01:00
|
|
|
PORTVERSION= 0.12.6
|
2003-04-08 02:04:57 +02:00
|
|
|
CATEGORIES= science
|
2004-01-29 17:43:47 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
2010-07-25 12:37:47 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/0.12
|
2003-04-08 02:04:57 +02:00
|
|
|
DISTNAME= gnome-chemistry-utils-${PORTVERSION}
|
|
|
|
|
2011-02-28 13:14:36 +01:00
|
|
|
MAINTAINER= kwm@FreeBSD.org
|
2003-04-08 02:04:57 +02:00
|
|
|
COMMENT= C++ classes and Gtk2 widgets related to chemistry
|
|
|
|
|
2006-07-26 10:24:25 +02:00
|
|
|
LIB_DEPENDS= gtkglext-x11-1.0.0:${PORTSDIR}/x11-toolkits/gtkglext \
|
2007-05-25 00:22:53 +02:00
|
|
|
openbabel.3:${PORTSDIR}/science/openbabel \
|
2010-02-14 21:49:18 +01:00
|
|
|
goffice-0.8.8:${PORTSDIR}/devel/goffice
|
2007-05-25 00:22:53 +02:00
|
|
|
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
|
2007-03-25 14:54:01 +02:00
|
|
|
|
2003-04-08 02:04:57 +02:00
|
|
|
USE_BZIP2= yes
|
2010-07-25 12:37:47 +02:00
|
|
|
USE_XORG= x11
|
|
|
|
USE_GNOME= gnomehack intlhack gnomedocutils gtk20 libgsf
|
2003-04-08 02:04:57 +02:00
|
|
|
USE_GMAKE= yes
|
2006-09-07 18:40:40 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2003-06-29 21:36:09 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LIBS="-L${LOCALBASE}/lib"
|
2007-10-25 01:37:25 +02:00
|
|
|
CONFIGURE_ARGS= --with-omf-dir=${PREFIX}/share/omf
|
2007-05-25 00:22:53 +02:00
|
|
|
INSTALLS_ICONS= yes
|
2007-07-27 16:24:00 +02:00
|
|
|
INSTALLS_OMF= yes
|
2010-07-25 12:37:47 +02:00
|
|
|
GCONF_SCHEMAS= gcrystal.schemas gchempaint.schemas gchempaint-arrows.schemas \
|
|
|
|
gchemutils.schemas
|
2003-04-08 02:04:57 +02:00
|
|
|
|
2010-07-25 12:37:47 +02:00
|
|
|
MAN1= gchem3d.1 gchemcalc.1 gchempaint.1 gchemtable.1 gcrystal.1 \
|
|
|
|
gspectrum.1
|
2006-09-07 18:40:40 +02:00
|
|
|
|
2011-02-28 13:14:36 +01:00
|
|
|
PLIST_SUB= VER=0.12 GOFFICE=0.8.13 GNUMERIC_VER=1.10.13
|
2006-05-27 00:21:20 +02:00
|
|
|
|
2009-01-13 19:17:55 +01:00
|
|
|
OPTIONS= XUL "Build browser plugin (requires Xulrunner)" off
|
2006-01-05 23:17:47 +01:00
|
|
|
|
2009-01-13 19:17:55 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2008-12-27 00:09:20 +01:00
|
|
|
|
2009-01-13 19:17:55 +01:00
|
|
|
.if defined(WITH_XUL)
|
2009-11-27 10:10:47 +01:00
|
|
|
USE_GECKO= libxul
|
2006-05-27 00:21:20 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-mozilla-plugin
|
2009-01-13 19:17:55 +01:00
|
|
|
PLIST_SUB+= XUL=""
|
2006-05-27 00:21:20 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-mozilla-plugin
|
2009-01-13 19:17:55 +01:00
|
|
|
PLIST_SUB+= XUL="@comment "
|
2006-05-27 00:21:20 +02:00
|
|
|
.endif
|
|
|
|
|
2010-07-25 12:37:47 +02:00
|
|
|
.if exists(${LOCALBASE}/bin/gnumeric)
|
2010-07-28 10:40:11 +02:00
|
|
|
RUN_DEPENDS+= gnumeric:${PORTSDIR}/math/gnumeric
|
2010-07-25 12:37:47 +02:00
|
|
|
PLIST_SUB+= GNUMERIC=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GNUMERIC="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-ldl||g' ${WRKSRC}/libs/gcp/Makefile.in
|
|
|
|
|
2006-01-05 23:17:47 +01:00
|
|
|
.include <bsd.port.post.mk>
|