diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2006-05-26 22:21:20 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2006-05-26 22:21:20 +0000 |
commit | c6e3f57eb39e4f4eb2e25bba103871ddc4ab559d (patch) | |
tree | 45fd9fcda0b50c89173786ee9b02431340d3e38a /science/gchemutils | |
parent | df85b83a6208bd6532920354590ce22eb594a550 (diff) | |
download | ports-c6e3f57eb39e4f4eb2e25bba103871ddc4ab559d.tar.gz ports-c6e3f57eb39e4f4eb2e25bba103871ddc4ab559d.zip |
Notes
Diffstat (limited to 'science/gchemutils')
-rw-r--r-- | science/gchemutils/Makefile | 12 | ||||
-rw-r--r-- | science/gchemutils/files/patch-configure_mozilla-config | 11 | ||||
-rw-r--r-- | science/gchemutils/pkg-plist | 3 |
3 files changed, 26 insertions, 0 deletions
diff --git a/science/gchemutils/Makefile b/science/gchemutils/Makefile index 50bfcf302704..ba04ba92eac1 100644 --- a/science/gchemutils/Makefile +++ b/science/gchemutils/Makefile @@ -26,8 +26,20 @@ GNU_CONFIGURE= yes INSTALLS_SHLIB= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LIBS="-L${LOCALBASE}/lib" +OPTIONS= MOZILLA "Build mozilla plugin" off + .include <bsd.port.pre.mk> +.if defined(WITH_MOZILLA) +USE_GECKO= mozilla +.include "${PORTSDIR}/www/mozilla/bsd.gecko.mk" +CONFIGURE_ARGS+=--enable-mozilla-plugin +PLIST_SUB= MOZILLA="" +.else +CONFIGURE_ARGS+=--disable-mozilla-plugin +PLIST_SUB= MOZILLA="@comment " +.endif + .if ${OSVERSION} < 500000 BROKEN= does not link with openbabel .endif diff --git a/science/gchemutils/files/patch-configure_mozilla-config b/science/gchemutils/files/patch-configure_mozilla-config new file mode 100644 index 000000000000..9c03784352f2 --- /dev/null +++ b/science/gchemutils/files/patch-configure_mozilla-config @@ -0,0 +1,11 @@ +--- configure.orig Fri May 26 22:09:05 2006 ++++ configure Fri May 26 22:21:37 2006 +@@ -21444,7 +21444,7 @@ + + if test "x$MOZILLA_CONFIG" != "xno"; then + _mozilla_include_dir=`mozilla-config --cflags|sed 's/-I\(.*\) .*/\1/'` +- MOZILLA_CFLAGS="-I$_mozilla_include_dir/plugin -I$_mozilla_include_dir/java -I$_mozilla_include_dir/nspr" ++ MOZILLA_CFLAGS="`mozilla-config --cflags` -I$_mozilla_include_dir/plugin -I$_mozilla_include_dir/java -I$_mozilla_include_dir/nspr" + mozlibdir=`mozilla-config --libs|sed 's/-L//'` + else + diff --git a/science/gchemutils/pkg-plist b/science/gchemutils/pkg-plist index f3d484240254..96953e2ca5c8 100644 --- a/science/gchemutils/pkg-plist +++ b/science/gchemutils/pkg-plist @@ -26,7 +26,10 @@ include/gchemutils/gcu/xml-utils.h lib/libgcu.la lib/libgcu.so lib/libgcu.so.6 +%%MOZILLA%%lib/mozilla/plugins/libmozgcu.la +%%MOZILLA%%lib/mozilla/plugins/libmozgcu.so libdata/pkgconfig/gcu.pc +%%MOZILLA%%libexec/chem-viewer share/gnome/applications/gchem3d-viewer.desktop share/gnome/applications/gchemcalc.desktop share/gnome/applications/gchemtable.desktop |