aboutsummaryrefslogtreecommitdiffstats
path: root/math/gnumeric
diff options
context:
space:
mode:
authorade <ade@FreeBSD.org>2000-08-04 09:19:21 +0800
committerade <ade@FreeBSD.org>2000-08-04 09:19:21 +0800
commitf710791a75a1a897078bc67c9d8d237aa98f6e36 (patch)
tree9678346bea3d4ebce203fa7ff52257077ed4ac10 /math/gnumeric
parentcb57a6c30e8edc7db27081f1e42de38911b80a8c (diff)
downloadfreebsd-ports-gnome-f710791a75a1a897078bc67c9d8d237aa98f6e36.tar.gz
freebsd-ports-gnome-f710791a75a1a897078bc67c9d8d237aa98f6e36.tar.zst
freebsd-ports-gnome-f710791a75a1a897078bc67c9d8d237aa98f6e36.zip
Extensive patchfile cleanups using sobomax's wonderful
post-extract rule
Diffstat (limited to 'math/gnumeric')
-rw-r--r--math/gnumeric/Makefile9
-rw-r--r--math/gnumeric/files/patch-ba9
2 files changed, 8 insertions, 10 deletions
diff --git a/math/gnumeric/Makefile b/math/gnumeric/Makefile
index 6e0b47d731d4..b36c8f1245d7 100644
--- a/math/gnumeric/Makefile
+++ b/math/gnumeric/Makefile
@@ -19,7 +19,7 @@ RUN_DEPENDS= panel:${PORTSDIR}/x11/gnomecore \
python:${PORTSDIR}/lang/python
LIB_DEPENDS= gnomeprint.9:${PORTSDIR}/print/gnomeprint \
glade.4:${PORTSDIR}/devel/libglade \
- guile.6:${PORTSDIR}/lang/guile \
+ guile.9:${PORTSDIR}/lang/guile \
gnomeole2.0:${PORTSDIR}/devel/libole2 \
gb.0:${PORTSDIR}/lang/gnomebasic
@@ -41,4 +41,11 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
PLIST_SUB= VERSION=${PORTVERSION}
+post-extract:
+ @${PERL} -pi -e 's|-lpthread|-pthread|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+ @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
+ 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
+ s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
+
.include <bsd.port.mk>
diff --git a/math/gnumeric/files/patch-ba b/math/gnumeric/files/patch-ba
index 51c58a7c4472..78468ee4e24e 100644
--- a/math/gnumeric/files/patch-ba
+++ b/math/gnumeric/files/patch-ba
@@ -9,12 +9,3 @@
confexec_DATA = gnumericConf.sh
CLEANFILES = gnumericConf.sh
-@@ -169,7 +169,7 @@
- appicon_DATA = gnome-gnumeric.png gnome-application-x-gnumeric.png gnome-application-x-xls.png
-
-
--Applicationsdir = $(datadir)/gnome/apps/Applications
-+Applicationsdir = $(datadir)/apps/Applications
- Applications_DATA = gnumeric.desktop
-
- Mimedir = $(datadir)/mime-info