Use the configure script

Fix perl path for configure and scripts, and add dependency for opml2snow over
p5-XML-LibXML

Bump PKGREVISION
This commit is contained in:
tonio 2005-10-26 12:44:21 +00:00
parent c439d81404
commit 6b5ff3183f
3 changed files with 25 additions and 5 deletions

View file

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.19 2005/10/22 22:06:21 tonio Exp $ # $NetBSD: Makefile,v 1.20 2005/10/26 12:44:21 tonio Exp $
DISTNAME= snownews-1.5.7 DISTNAME= snownews-1.5.7
PKGREVISION= 1 PKGREVISION= 2
CATEGORIES= www CATEGORIES= www
MASTER_SITES= http://kiza.kcore.de/software/snownews/download/ MASTER_SITES= http://kiza.kcore.de/software/snownews/download/
@ -9,14 +9,20 @@ MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://kiza.kcore.de/software/snownews/ HOMEPAGE= http://kiza.kcore.de/software/snownews/
COMMENT= Small, curses based RSS feed reader COMMENT= Small, curses based RSS feed reader
DEPENDS+= p5-XML-LibXML>=1.58:../../textproc/p5-XML-LibXML
USE_MSGFMT_PLURALS= YES USE_MSGFMT_PLURALS= YES
BUILD_USES_MSGFMT= YES BUILD_USES_MSGFMT= YES
HAS_CONFIGURE= YES
USE_NCURSES= # missing WA_BOLD, WA_REVERSE, KEY_RESIZE USE_NCURSES= # missing WA_BOLD, WA_REVERSE, KEY_RESIZE
USE_PKGLOCALEDIR= YES USE_PKGLOCALEDIR= YES
USE_TOOLS+= perl:run
MAKE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR:Q} REPLACE_PERL+= configure opml2snow snowsync
MAKE_ENV+= EXTRA_CFLAGS=${CFLAGS:Q} LOCALBASE=${LOCALBASE:Q}
CONFIGURE_ARGS+= --prefix=${PREFIX}
MAKE_ENV+= PKG_LOCALEDIR=${PKGLOCALEDIR:Q}
MAKE_ENV+= EXTRA_CFLAGS=${CFLAGS:Q}
# XXX -lintl hack suggested by Jeremy C. Reed: blocking on PR #23369 # XXX -lintl hack suggested by Jeremy C. Reed: blocking on PR #23369
.include "../../devel/gettext-lib/buildlink3.mk" .include "../../devel/gettext-lib/buildlink3.mk"

View file

@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.8 2005/10/22 22:06:21 tonio Exp $ $NetBSD: distinfo,v 1.9 2005/10/26 12:44:21 tonio Exp $
SHA1 (snownews-1.5.7.tar.gz) = d732c056d8c193339cae4c07dfaf0093607c90c0 SHA1 (snownews-1.5.7.tar.gz) = d732c056d8c193339cae4c07dfaf0093607c90c0
RMD160 (snownews-1.5.7.tar.gz) = 5aa839bb92a8ee51b2b1fda74ddf22279665061b RMD160 (snownews-1.5.7.tar.gz) = 5aa839bb92a8ee51b2b1fda74ddf22279665061b
Size (snownews-1.5.7.tar.gz) = 161504 bytes Size (snownews-1.5.7.tar.gz) = 161504 bytes
SHA1 (patch-aa) = 6dd14f7f9baaecc51b0cd74f6e433396e4025a38
SHA1 (patch-ac) = 1083665b2a989f51227866d61ca44c208d2a3721 SHA1 (patch-ac) = 1083665b2a989f51227866d61ca44c208d2a3721

View file

@ -0,0 +1,13 @@
$NetBSD: patch-aa,v 1.6 2005/10/26 12:44:21 tonio Exp $
--- configure.orig 2005-06-05 11:50:22.000000000 +0200
+++ configure
@@ -5,7 +5,7 @@ use strict;
# The defaults. Change here if you need.
my($prefix) = "/usr/local";
-my($cflags) = '-Wall -Wno-format-y2k -O2 -DLOCALEPATH="\"$(LOCALEPATH)\"" -DOS=\"$(shell uname)\" `xml2-config --cflags` $(EXTRA_CFLAGS) ';
+my($cflags) = '-Wall -Wno-format-y2k -O2 -DLOCALEPATH="\"$(LOCALEPATH)\"" -DOS=\"`uname`\" `xml2-config --cflags` $(EXTRA_CFLAGS) ';
my($ldflags) = '-lncurses `xml2-config --libs` $(EXTRA_LDFLAGS) ';
parse_cmdl_line();