aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/gxmlviewer
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2005-07-22 17:04:58 +0800
committersem <sem@FreeBSD.org>2005-07-22 17:04:58 +0800
commit2cbdfdcb8504f644f91e572ae8f32e6d5ff9b12c (patch)
tree57946e50ce777d1754cf9c101001af4f39f21314 /textproc/gxmlviewer
parent0e990c3e208bda19e85420fc6bc338008ff0ed20 (diff)
downloadfreebsd-ports-gnome-2cbdfdcb8504f644f91e572ae8f32e6d5ff9b12c.tar.gz
freebsd-ports-gnome-2cbdfdcb8504f644f91e572ae8f32e6d5ff9b12c.tar.zst
freebsd-ports-gnome-2cbdfdcb8504f644f91e572ae8f32e6d5ff9b12c.zip
- Fix build. Unbreak.
PR: ports/83860 Submitted by: Ports Fury
Diffstat (limited to 'textproc/gxmlviewer')
-rw-r--r--textproc/gxmlviewer/Makefile22
-rw-r--r--textproc/gxmlviewer/pkg-plist8
2 files changed, 17 insertions, 13 deletions
diff --git a/textproc/gxmlviewer/Makefile b/textproc/gxmlviewer/Makefile
index 7c6afae66fab..d1696926d83a 100644
--- a/textproc/gxmlviewer/Makefile
+++ b/textproc/gxmlviewer/Makefile
@@ -8,7 +8,7 @@
PORTNAME= gxmlviewer
PORTVERSION= 1.3.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -16,23 +16,21 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= An xmlviewer with a netscape plugin, and now a bonobo control as well
-LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2
-
-BROKEN= Incomplete pkg-plist
-
+USE_X_PREFIX= yes
+USE_GNOME= bonobo gnomehack gnomelibs gnomeprefix libxml2
USE_GETTEXT= yes
USE_REINPLACE= yes
-USE_X_PREFIX= yes
-USE_GNOME= gnomelibs bonobo gnomeprefix
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libiconv-prefix="${LOCALBASE}"
-.if ${MACHINE_ARCH:L} == "amd64"
-CFLAGS+= -fPIC
-.endif
-
post-patch:
- @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${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} ${X11BASE}/lib/browser_plugins
+ @${LN} -sf ${PREFIX}/lib/gxmlviewer/plugins/npgxmlviewer.so \
+ ${X11BASE}/lib/browser_plugins/npgxmlviewer.so
.include <bsd.port.mk>
diff --git a/textproc/gxmlviewer/pkg-plist b/textproc/gxmlviewer/pkg-plist
index ae61847a0c8e..0fe3f1ea37ca 100644
--- a/textproc/gxmlviewer/pkg-plist
+++ b/textproc/gxmlviewer/pkg-plist
@@ -1,5 +1,11 @@
bin/gxmlviewer
bin/xmlview-control
bin/xmlformatter
-lib/netscape/plugins/npgxmlviewer.so
+lib/gxmlviewer/plugins/npgxmlviewer.so
share/gnome/oaf/GNOME_XMLView.oaf
+@unexec rm -f %%X11BASE%%/lib/browser_plugins/npgxmlviewer.so
+@unexec rmdir %%X11BASE%%/lib/browser_plugins 2>/dev/null || true
+@exec mkdir -p %%X11BASE%%/lib/browser_plugins 2>/dev/null || true
+@exec ln -sf %D/lib/gxmlviewer/plugins/npgxmlviewer.so %%X11BASE%%/lib/browser_plugins/npgxmlviewer.so
+@dirrm lib/gxmlviewer/plugins
+@dirrm lib/gxmlviewer