summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-28 02:03:08 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-28 02:03:08 +0800
commita88bd8d5546baecd27fa217ac7369327155934d1 (patch)
tree77f812d6d27b22827a91b71a7bda20f7da046ceb
parent21cad4bac6741a64d25f69c6a42a61d553515dfc (diff)
downloadmarcuscom-ports-a88bd8d5546baecd27fa217ac7369327155934d1.tar
marcuscom-ports-a88bd8d5546baecd27fa217ac7369327155934d1.tar.gz
marcuscom-ports-a88bd8d5546baecd27fa217ac7369327155934d1.tar.bz2
marcuscom-ports-a88bd8d5546baecd27fa217ac7369327155934d1.tar.lz
marcuscom-ports-a88bd8d5546baecd27fa217ac7369327155934d1.tar.xz
marcuscom-ports-a88bd8d5546baecd27fa217ac7369327155934d1.tar.zst
marcuscom-ports-a88bd8d5546baecd27fa217ac7369327155934d1.zip
-USE_X_PREFIX -> USE_XLIB.
-X11BASE -> LOCALBASE, browser_plugins lives in LOCALBASE. -Bump the PORTREVISION. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6873 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--textproc/gxmlviewer/Makefile35
-rw-r--r--textproc/gxmlviewer/distinfo3
-rw-r--r--textproc/gxmlviewer/files/patch-configure25
-rw-r--r--textproc/gxmlviewer/files/patch-xmlformatter.c14
-rw-r--r--textproc/gxmlviewer/files/patch-xmlparser.c17
-rw-r--r--textproc/gxmlviewer/pkg-descr5
-rw-r--r--textproc/gxmlviewer/pkg-plist11
7 files changed, 110 insertions, 0 deletions
diff --git a/textproc/gxmlviewer/Makefile b/textproc/gxmlviewer/Makefile
new file mode 100644
index 000000000..65336caa3
--- /dev/null
+++ b/textproc/gxmlviewer/Makefile
@@ -0,0 +1,35 @@
+# ex:ts=8
+# New ports collection makefile for: gxmlviewer
+# Date created: Nov 8, 2001
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= gxmlviewer
+PORTVERSION= 1.3.3
+PORTREVISION= 4
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= An xmlviewer with a netscape plugin, and now a bonobo control as well
+
+USE_XLIB= yes
+USE_GNOME= bonobo gnomehack gnomelibs gnomeprefix libxml2
+USE_GETTEXT= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-libiconv-prefix="${LOCALBASE}"
+
+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
+
+.include <bsd.port.mk>
diff --git a/textproc/gxmlviewer/distinfo b/textproc/gxmlviewer/distinfo
new file mode 100644
index 000000000..289ad7c6d
--- /dev/null
+++ b/textproc/gxmlviewer/distinfo
@@ -0,0 +1,3 @@
+MD5 (gxmlviewer-1.3.3.tar.gz) = e1f159e003e2ca99482ac7cf8677365e
+SHA256 (gxmlviewer-1.3.3.tar.gz) = 9b6f737132334666d405a9f591634e8c366817fe703752946c3b51bf3b85508c
+SIZE (gxmlviewer-1.3.3.tar.gz) = 224529
diff --git a/textproc/gxmlviewer/files/patch-configure b/textproc/gxmlviewer/files/patch-configure
new file mode 100644
index 000000000..83129c294
--- /dev/null
+++ b/textproc/gxmlviewer/files/patch-configure
@@ -0,0 +1,25 @@
+--- configure.orig Thu Oct 23 19:31:15 2003
++++ configure Thu Oct 23 19:41:08 2003
+@@ -4106,7 +4106,7 @@
+ else
+ echo $ac_n "checking version of bison""... $ac_c" 1>&6
+ echo "configure:4109: checking version of bison" >&5
+- ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
++ ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
+ case $ac_prog_version in
+ '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
+ 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
+@@ -4195,9 +4195,10 @@
+ echo $ac_n "checking for libxml >= 2.3.1""... $ac_c" 1>&6
+ echo "configure:4197: checking for libxml >= 2.3.1" >&5
+ if xml2-config --libs > /dev/null 2>&1; then
+- vers=`xml2-config --version | sed -e "s/xml-//" -e 's/cvs$//' -e 's/pre$//' | \
+- awk 'BEGIN { FS = "."; } { print $3;}'`
+- if test "$vers" -ge 1; then
++ vers=`xml2-config --version | sed -e "s/xml-//" -e 's/cvs$//' -e 's/pre$//'`
++ vers_minor=`echo ${vers} | awk 'BEGIN { FS = "."; } { print $2;}'`
++ vers_rev=`echo ${vers} | awk 'BEGIN { FS = "."; } { print $3;}'`
++ if test "$vers_minor" -gt 3 -o "$vers_minor" -ge 3 -a "$vers_rev" -ge 1; then
+ echo "$ac_t""found ("$vers")" 1>&6
+ XML_CFLAGS="`xml2-config --cflags`"
+ XML_LIBS="`xml2-config --libs`"
diff --git a/textproc/gxmlviewer/files/patch-xmlformatter.c b/textproc/gxmlviewer/files/patch-xmlformatter.c
new file mode 100644
index 000000000..6bde9aec0
--- /dev/null
+++ b/textproc/gxmlviewer/files/patch-xmlformatter.c
@@ -0,0 +1,14 @@
+--- src/extras/xmlformatter.c.orig Thu Apr 4 15:47:47 2002
++++ src/extras/xmlformatter.c Thu Apr 4 15:48:50 2002
+@@ -8,9 +8,9 @@
+
+ #include <string.h>
+ #include <gtk/gtk.h>
+-#include <SAX.h>
+-#include <parser.h>
+-#include <parserInternals.h>
++#include <libxml/SAX.h>
++#include <libxml/parser.h>
++#include <libxml/parserInternals.h>
+
+ #include <unistd.h>
diff --git a/textproc/gxmlviewer/files/patch-xmlparser.c b/textproc/gxmlviewer/files/patch-xmlparser.c
new file mode 100644
index 000000000..8871d5385
--- /dev/null
+++ b/textproc/gxmlviewer/files/patch-xmlparser.c
@@ -0,0 +1,17 @@
+--- src/xmlparser.c.orig Thu Apr 4 17:05:35 2002
++++ src/xmlparser.c Thu Apr 4 17:08:09 2002
+@@ -8,15 +8,9 @@
+
+ #include <string.h>
+ #include <gtk/gtk.h>
+-#ifndef WIN32
+-#include <SAX.h>
+-#include <parser.h>
+-#include <parserInternals.h>
+-#else
+ #include <libxml/SAX.h>
+ #include <libxml/parser.h>
+ #include <libxml/parserInternals.h>
+-#endif
+ #include "xmlparser.h"
+ #include "support.h"
diff --git a/textproc/gxmlviewer/pkg-descr b/textproc/gxmlviewer/pkg-descr
new file mode 100644
index 000000000..66b09a6aa
--- /dev/null
+++ b/textproc/gxmlviewer/pkg-descr
@@ -0,0 +1,5 @@
+gxmlviewer is an xml viewer written using libxml and gnome-libs. It is a
+stand-alone xmlviewer with a netscpe plugin. The purpose of the app is to
+create an xmlviewer that will present the xml in its source view.
+
+WWW: http://gxmlviewer.sourceforge.net/
diff --git a/textproc/gxmlviewer/pkg-plist b/textproc/gxmlviewer/pkg-plist
new file mode 100644
index 000000000..88fc21b80
--- /dev/null
+++ b/textproc/gxmlviewer/pkg-plist
@@ -0,0 +1,11 @@
+bin/gxmlviewer
+bin/xmlview-control
+bin/xmlformatter
+lib/gxmlviewer/plugins/npgxmlviewer.so
+share/gnome/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