aboutsummaryrefslogtreecommitdiff
path: root/textproc/textutils
diff options
context:
space:
mode:
authorJeremy Lea <reg@FreeBSD.org>2000-10-01 18:35:19 +0000
committerJeremy Lea <reg@FreeBSD.org>2000-10-01 18:35:19 +0000
commit6bf486c13d907781ba97d52db28a9c95dd3e0488 (patch)
tree95023c3072f4154232ccdcb8c5e62505cd98cc65 /textproc/textutils
parent568b78afbdc0ae3f3074f984a5ac0dd493a9ac33 (diff)
downloadports-6bf486c13d907781ba97d52db28a9c95dd3e0488.tar.gz
ports-6bf486c13d907781ba97d52db28a9c95dd3e0488.zip
Notes
Diffstat (limited to 'textproc/textutils')
-rw-r--r--textproc/textutils/Makefile14
-rw-r--r--textproc/textutils/pkg-plist27
2 files changed, 11 insertions, 30 deletions
diff --git a/textproc/textutils/Makefile b/textproc/textutils/Makefile
index 68f4d402c6fd..d660a0769cdd 100644
--- a/textproc/textutils/Makefile
+++ b/textproc/textutils/Makefile
@@ -13,11 +13,13 @@ MASTER_SITE_SUBDIR= textutils
MAINTAINER= aw1@stade.co.uk
-GNU_CONFIGURE= yes
-
-CONFIGURE_ARGS= --program-prefix=g
+LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --program-prefix=g
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
MAN1= gcomm.1 gcsplit.1 gcut.1 gexpand.1 gfmt.1 ghead.1 \
gjoin.1 gmd5sum.1 gnl.1 gpaste.1 gpr.1 gsort.1 \
@@ -25,6 +27,12 @@ MAN1= gcomm.1 gcsplit.1 gcut.1 gexpand.1 gfmt.1 ghead.1 \
gtsort.1 gwc.1 gcat.1 gcksum.1 gfold.1 god.1 \
gsplit.1 gunexpand.1
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|-pthread|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
+ s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \
+ s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' ${WRKSRC}/configure
+
post-install:
install-info ${PREFIX}/info/textutils.info ${PREFIX}/info/dir
diff --git a/textproc/textutils/pkg-plist b/textproc/textutils/pkg-plist
index bf33684a921a..dc8a5d5ce82c 100644
--- a/textproc/textutils/pkg-plist
+++ b/textproc/textutils/pkg-plist
@@ -40,30 +40,3 @@ share/locale/ru/LC_MESSAGES/textutils.mo
share/locale/sk/LC_MESSAGES/textutils.mo
share/locale/sv/LC_MESSAGES/textutils.mo
share/locale/zh/LC_MESSAGES/textutils.mo
-@unexec rmdir %D/share/locale/cs/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/cs 2>/dev/null || true
-@unexec rmdir %D/share/locale/de/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/de 2>/dev/null || true
-@unexec rmdir %D/share/locale/el/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/el 2>/dev/null || true
-@unexec rmdir %D/share/locale/es/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/es 2>/dev/null || true
-@unexec rmdir %D/share/locale/fr/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/fr 2>/dev/null || true
-@unexec rmdir %D/share/locale/ko/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/ko 2>/dev/null || true
-@unexec rmdir %D/share/locale/nl/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/nl 2>/dev/null || true
-@unexec rmdir %D/share/locale/no/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/no 2>/dev/null || true
-@unexec rmdir %D/share/locale/pl/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/pl 2>/dev/null || true
-@unexec rmdir %D/share/locale/ru/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/ru 2>/dev/null || true
-@unexec rmdir %D/share/locale/sk/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/sk 2>/dev/null || true
-@unexec rmdir %D/share/locale/sv/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/sv 2>/dev/null || true
-@unexec rmdir %D/share/locale/zh/LC_MESSAGES 2>/dev/null || true
-@unexec rmdir %D/share/locale/zh 2>/dev/null || true
-@unexec rmdir %D/share/locale 2>/dev/null || true