summaryrefslogtreecommitdiff
path: root/sysutils/news
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2012-03-01 16:30:31 +0000
committerhans <hans@pkgsrc.org>2012-03-01 16:30:31 +0000
commit1d698cce808e651da7c589aff313e47198bbb14b (patch)
treeb665fa24870375e0750122dfccd176a1d6c1d9b1 /sysutils/news
parente48ea951afbad6ca6634a72a81d9c2b33d96f6b1 (diff)
downloadpkgsrc-1d698cce808e651da7c589aff313e47198bbb14b.tar.gz
Fix build on SunOS.
- uses fts functions - use pkgsrc-provided LDFLAGS and LIBS
Diffstat (limited to 'sysutils/news')
-rw-r--r--sysutils/news/Makefile6
-rw-r--r--sysutils/news/distinfo3
-rw-r--r--sysutils/news/patches/patch-Makefile13
3 files changed, 19 insertions, 3 deletions
diff --git a/sysutils/news/Makefile b/sysutils/news/Makefile
index e6953eeb2d7..f5d49bd4ea4 100644
--- a/sysutils/news/Makefile
+++ b/sysutils/news/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2009/02/16 13:39:13 joerg Exp $
+# $NetBSD: Makefile,v 1.11 2012/03/01 16:30:31 hans Exp $
#
DISTNAME= news-0.2
@@ -11,7 +11,9 @@ COMMENT= System V news(1)
PKG_DESTDIR_SUPPORT= user-destdir
-USE_FEATURES= utimes
+USE_FEATURES= utimes fts_open
+
+MAKE_ENV+= LIBS=${LIBS:Q}
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
diff --git a/sysutils/news/distinfo b/sysutils/news/distinfo
index e3ac4c57dc8..fb48b2cfab8 100644
--- a/sysutils/news/distinfo
+++ b/sysutils/news/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.5 2006/11/28 16:46:16 tv Exp $
+$NetBSD: distinfo,v 1.6 2012/03/01 16:30:31 hans Exp $
SHA1 (news-0.2.tar.gz) = 4c6b8cdae58eb3c57d78b14d45104eb96098d052
RMD160 (news-0.2.tar.gz) = 091c2c7b3502fad33984035a6589986cbc4b018a
Size (news-0.2.tar.gz) = 3812 bytes
+SHA1 (patch-Makefile) = 1bac0f44111bc5dbd1a6e0399950f19e8d273661
SHA1 (patch-aa) = f6550129bb13741e2eb10dfcdb74067dca020609
diff --git a/sysutils/news/patches/patch-Makefile b/sysutils/news/patches/patch-Makefile
new file mode 100644
index 00000000000..44d1b244746
--- /dev/null
+++ b/sysutils/news/patches/patch-Makefile
@@ -0,0 +1,13 @@
+$NetBSD: patch-Makefile,v 1.1 2012/03/01 16:30:31 hans Exp $
+
+--- Makefile.orig 2004-09-12 19:09:17.000000000 +0200
++++ Makefile 2012-03-01 16:29:15.402613772 +0100
+@@ -6,7 +6,7 @@ INSTALL= install
+ all: ${PROG}
+
+ ${PROG}: ${OFILES}
+- ${CC} ${CFLAGS} -o ${PROG} ${OFILES}
++ ${CC} ${CFLAGS} -o ${PROG} ${OFILES} ${LDFLAGS} ${LIBS}
+
+ install:
+ install -c -m 755 ${PROG} ${PREFIX}/bin/${PROG}