freebsd-ports/science/gchemutils/Makefile

68 lines
1.9 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: gchemutils
# Date created: Mar 18, 2003
# Whom: Pav Lucistnik <pav@oook.cz>
#
# $FreeBSD$
#
PORTNAME= gchemutils
PORTVERSION= 0.12.6
CATEGORIES= science
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
2010-07-25 12:37:47 +02:00
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 \
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
USE_BZIP2= yes
2010-07-25 12:37:47 +02:00
USE_XORG= x11
USE_GNOME= gnomehack intlhack gnomedocutils gtk20 libgsf
USE_GMAKE= yes
2006-09-07 18:40:40 +02:00
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LIBS="-L${LOCALBASE}/lib"
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
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
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>
2009-01-13 19:17:55 +01:00
.if defined(WITH_XUL)
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)
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>