aboutsummaryrefslogtreecommitdiff
path: root/textproc/gxmlviewer
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/gxmlviewer
parent23fcf54562404bb41380488c8318ac0e3ce15efc (diff)
downloadports-15b6544926b07a98710eeb765baf03e3fc9a195c.tar.gz
ports-15b6544926b07a98710eeb765baf03e3fc9a195c.zip
Notes
Diffstat (limited to 'textproc/gxmlviewer')
-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