summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorJeremy Messenger <mezz@FreeBSD.org>2009-01-10 02:45:46 +0000
committerJeremy Messenger <mezz@FreeBSD.org>2009-01-10 02:45:46 +0000
commit15b6544926b07a98710eeb765baf03e3fc9a195c (patch)
tree35103cf986d2ed2295c97768e62afcc47dfed877 /textproc
parentWikiToPdf combines the functionality of CombineWikiPlugin and (diff)
Add a new framework for browser plugins, USE_WEBPLUGINS. It is for which foo
plugins support one of web browsers and can take care of plist (depend on how you use it) at the same time. I have written a complete document and even show how it works in the www/firefox/Makefile.webplugins so be sure to read in there. If there is anything that isn't clear in the document, please feel free to ask and I will try my best to improvement it. FYI: GNOME 2.24 depends on this, so it's coming. BTW: It's based on www/linux-mplayer-plugin/Makefile.npapi with heavy modified. Approved by: portmgr
Notes
Notes: svn path=/head/; revision=225627
Diffstat (limited to 'textproc')
-rw-r--r--textproc/gxmlviewer/Makefile20
-rw-r--r--textproc/gxmlviewer/pkg-plist4
2 files changed, 12 insertions, 12 deletions
diff --git a/textproc/gxmlviewer/Makefile b/textproc/gxmlviewer/Makefile
index 1c5b765d479e..c0773a92f654 100644
--- a/textproc/gxmlviewer/Makefile
+++ b/textproc/gxmlviewer/Makefile
@@ -8,7 +8,7 @@
PORTNAME= gxmlviewer
PORTVERSION= 1.3.3
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -21,14 +21,18 @@ USE_GETTEXT= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libiconv-prefix="${LOCALBASE}"
+USE_WEBPLUGINS= native
+WEBPLUGINS_DIR= ${PREFIX}/lib/gxmlviewer/plugins
+WEBPLUGINS_FILES=npgxmlviewer.so
+
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
+
post-patch:
@${REINPLACE_CMD} -e 's|intl||g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|= -DXP_UNIX|= -fPIC -DXP_UNIX|g ; \
- s|/netscape/|/gxmlviewer/|g' ${WRKSRC}/src/nsplugin/Makefile.in
-
-post-install:
- @${MKDIR} ${LOCALBASE}/lib/browser_plugins
- @${LN} -sf ${PREFIX}/lib/gxmlviewer/plugins/npgxmlviewer.so \
- ${LOCALBASE}/lib/browser_plugins/npgxmlviewer.so
+ s|/netscape/|/gxmlviewer/|g ; \
+ s|@LIBS@|@LIBS@ -lXt -lXext|g' \
+ ${WRKSRC}/src/nsplugin/Makefile.in
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/textproc/gxmlviewer/pkg-plist b/textproc/gxmlviewer/pkg-plist
index 24f5da4d4b4b..798387bafa09 100644
--- a/textproc/gxmlviewer/pkg-plist
+++ b/textproc/gxmlviewer/pkg-plist
@@ -3,9 +3,5 @@ bin/xmlview-control
bin/xmlformatter
lib/gxmlviewer/plugins/npgxmlviewer.so
share/oaf/GNOME_XMLView.oaf
-@unexec rm -f %%LOCALBASE%%/lib/browser_plugins/npgxmlviewer.so
-@unexec rmdir %%LOCALBASE%%/lib/browser_plugins 2>/dev/null || true
-@exec mkdir -p %%LOCALBASE%%/lib/browser_plugins 2>/dev/null || true
-@exec ln -sf %D/lib/gxmlviewer/plugins/npgxmlviewer.so %%LOCALBASE%%/lib/browser_plugins/npgxmlviewer.so
@dirrm lib/gxmlviewer/plugins
@dirrm lib/gxmlviewer