[49303] trunk/dports/www
jeremyhu at macports.org
jeremyhu at macports.org
Mon Apr 6 23:50:47 PDT 2009
Revision: 49303
http://trac.macports.org/changeset/49303
Author: jeremyhu at macports.org
Date: 2009-04-06 23:50:45 -0700 (Mon, 06 Apr 2009)
Log Message:
-----------
mozplugger: New port, plugin to use X11 applications as plugins for firefox (like xpdf, etc)
Added Paths:
-----------
trunk/dports/www/mozplugger/
trunk/dports/www/mozplugger/Portfile
Added: trunk/dports/www/mozplugger/Portfile
===================================================================
--- trunk/dports/www/mozplugger/Portfile (rev 0)
+++ trunk/dports/www/mozplugger/Portfile 2009-04-07 06:50:45 UTC (rev 49303)
@@ -0,0 +1,45 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id: Portfile 49217 2009-04-05 19:27:37Z jeremyhu at macports.org $
+
+PortSystem 1.0
+
+name mozplugger
+categories www x11
+version 1.12.0
+platforms darwin
+maintainers jeremyhu openmaintainer
+description Use popular X11 applications as plugins for firefox
+
+long_description ${description}
+universal_variant no
+
+homepage http://mozplugger.mozdev.org/index.html
+master_sites http://mozplugger.mozdev.org/files/
+use_bzip2 no
+
+checksums md5 6d4dd7b1c577f625c9d664532389d6db \
+ sha1 5107338378795c147e79c04eead8f9fa7f6ebd28 \
+ rmd160 87c82713de2dd9b139ea0b49f856b6797c913fb8
+
+depends_lib \
+ port:firefox-x11
+
+post-patch {
+ reinplace "s:/lib/mozilla/plugins:/lib/nsplugins:g" ${worksrcpath}/Makefile
+ reinplace "s:/etc:${prefix}/etc:g" ${worksrcpath}/Makefile
+ reinplace "s:OPERA_DIR:MOZILLA_FIVE_HOME:" ${worksrcpath}/mozplugger.c
+ reinplace "s:/usr/etc:${prefix}/etc:" ${worksrcpath}/mozplugger.c
+}
+
+use_configure no
+
+build.args prefix=${prefix} XLDFLAGS="-flat_namespace -bundle -shared -L${prefix}/lib -L${x11prefix}/lib -lX11"
+destroot.args root=${destroot} prefix=${prefix}
+
+if { [file exists ${prefix}/lib/pkgconfig/x11.pc] } {
+ build.args-append X11=${prefix}
+ destroot.args-append X11=${prefix}
+} else {
+ build.args-append X11=${x11prefix}
+ destroot.args-append X11=${x11prefix}
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090406/ce659fcc/attachment.html>
More information about the macports-changes
mailing list