diff options
author | makc <makc@FreeBSD.org> | 2013-10-18 02:49:09 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2013-10-18 02:49:09 +0800 |
commit | 826e0cae8162ab4c57ca167da43a7c9b3b2a4533 (patch) | |
tree | 5b541303041df5ad7140d6154ca615ab6c664267 /science | |
parent | 8431f6a9ffe5e4652befd33ed931adae8dbd2287 (diff) | |
download | freebsd-ports-gnome-826e0cae8162ab4c57ca167da43a7c9b3b2a4533.tar.gz freebsd-ports-gnome-826e0cae8162ab4c57ca167da43a7c9b3b2a4533.tar.zst freebsd-ports-gnome-826e0cae8162ab4c57ca167da43a7c9b3b2a4533.zip |
- Add dependency on pkgconfig when building with cairo support [1]
- Support staging
- Use option helpers
Reported by: Andreas Nilsson via mail [1]
Diffstat (limited to 'science')
-rw-r--r-- | science/openbabel/Makefile | 32 | ||||
-rw-r--r-- | science/openbabel/pkg-plist | 16 |
2 files changed, 20 insertions, 28 deletions
diff --git a/science/openbabel/Makefile b/science/openbabel/Makefile index b888168a6f63..05b9f18557e4 100644 --- a/science/openbabel/Makefile +++ b/science/openbabel/Makefile @@ -18,45 +18,21 @@ USES= cmake:outsource CMAKE_ARGS= -DBUILD_GUI=off USE_LDCONFIG= yes -MAN1= babel.1 \ - obabel.1 \ - obchiral.1 \ - obconformer.1 \ - obenergy.1 \ - obfit.1 \ - obgen.1 \ - obgrep.1 \ - obgui.1 \ - obminimize.1 \ - obprobe.1 \ - obprop.1 \ - obrotamer.1 \ - obrotate.1 \ - obspectrophore.1 \ - roundtrip.1 - PLIST_SUB= VERSION="${PORTVERSION}" OPTIONS_DEFINE= CAIRO PYTHON OPTIONS_DEFAULT= PYTHON +OPTIONS_SUB= yes + CAIRO_DESC= PNG support via cairo library +CAIRO_LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo +CAIRO_USES= pkgconfig -NO_STAGE= yes .include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MCAIRO} -LIB_DEPENDS+= cairo:${PORTSDIR}/graphics/cairo -PLIST_SUB+= CAIRO="" -.else -PLIST_SUB+= CAIRO="@comment " -.endif - .if ${PORT_OPTIONS:MPYTHON} USE_PYTHON= yes CMAKE_ARGS+= -DPYTHON_BINDINGS=on -PLIST_SUB+= PYTHON="" -.else -PLIST_SUB+= PYTHON="@comment " .endif post-patch: diff --git a/science/openbabel/pkg-plist b/science/openbabel/pkg-plist index 2269910c3c90..511455d717f4 100644 --- a/science/openbabel/pkg-plist +++ b/science/openbabel/pkg-plist @@ -212,6 +212,22 @@ lib/openbabel/%%VERSION%%/zindoformat.so %%PYTHON%%%%PYTHON_SITELIBDIR%%/openbabel.py %%PYTHON%%%%PYTHON_SITELIBDIR%%/pybel.py libdata/pkgconfig/openbabel-2.0.pc +man/man1/babel.1.gz +man/man1/obabel.1.gz +man/man1/obchiral.1.gz +man/man1/obconformer.1.gz +man/man1/obenergy.1.gz +man/man1/obfit.1.gz +man/man1/obgen.1.gz +man/man1/obgrep.1.gz +man/man1/obgui.1.gz +man/man1/obminimize.1.gz +man/man1/obprobe.1.gz +man/man1/obprop.1.gz +man/man1/obrotamer.1.gz +man/man1/obrotate.1.gz +man/man1/obspectrophore.1.gz +man/man1/roundtrip.1.gz share/openbabel/%%VERSION%%/MACCS.txt share/openbabel/%%VERSION%%/SMARTS_InteLigand.txt share/openbabel/%%VERSION%%/UFF.prm |