2008-04-16 10:54:28 +02:00
|
|
|
# $NetBSD: Makefile,v 1.33 2008/04/16 08:54:28 wiz Exp $
|
2003-12-28 00:04:23 +01:00
|
|
|
|
2008-04-16 10:54:28 +02:00
|
|
|
DISTNAME= snownews-1.5.9
|
2004-01-23 22:55:48 +01:00
|
|
|
CATEGORIES= www
|
2005-10-20 17:31:20 +02:00
|
|
|
MASTER_SITES= http://kiza.kcore.de/software/snownews/download/
|
2003-12-28 00:04:23 +01:00
|
|
|
|
2008-04-16 10:54:28 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2005-10-20 17:31:20 +02:00
|
|
|
HOMEPAGE= http://kiza.kcore.de/software/snownews/
|
2004-01-23 22:55:48 +01:00
|
|
|
COMMENT= Small, curses based RSS feed reader
|
2003-12-28 00:04:23 +01:00
|
|
|
|
2005-10-26 14:44:21 +02:00
|
|
|
DEPENDS+= p5-XML-LibXML>=1.58:../../textproc/p5-XML-LibXML
|
2003-12-28 00:04:23 +01:00
|
|
|
|
2008-02-21 23:42:29 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
USE_NCURSES= yes # missing WA_BOLD, WA_REVERSE, KEY_RESIZE
|
|
|
|
USE_PKGLOCALEDIR= yes
|
2006-04-13 20:23:29 +02:00
|
|
|
USE_TOOLS+= msgfmt perl:run
|
2003-12-28 00:04:23 +01:00
|
|
|
|
2005-10-26 14:44:21 +02:00
|
|
|
REPLACE_PERL+= configure opml2snow snowsync
|
|
|
|
|
2007-04-16 06:14:15 +02:00
|
|
|
CONFIG_SHELL= perl
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
|
2008-02-21 23:42:29 +01:00
|
|
|
MAKE_ENV+= PKG_LOCALEDIR=${PKGLOCALEDIR:Q}
|
|
|
|
MAKE_ENV+= EXTRA_CFLAGS=${CFLAGS:Q}
|
2003-12-28 00:04:23 +01:00
|
|
|
|
|
|
|
# XXX -lintl hack suggested by Jeremy C. Reed: blocking on PR #23369
|
2004-05-04 06:26:43 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
2007-09-14 01:24:04 +02:00
|
|
|
MAKE_ENV+= EXTRA_LDFLAGS=${LDFLAGS:Q}" "${BUILDLINK_LDADD.gettext:Q}
|
2003-12-28 00:04:23 +01:00
|
|
|
|
2007-01-07 10:13:46 +01:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
2005-06-17 05:50:19 +02:00
|
|
|
|
2007-09-14 01:24:04 +02:00
|
|
|
.include "options.mk"
|
|
|
|
|
2004-04-09 02:04:23 +02:00
|
|
|
do-install:
|
2008-02-21 23:42:29 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/snownews ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/opml2snow ${DESTDIR}${PREFIX}/bin
|
2007-09-14 01:24:04 +02:00
|
|
|
.for lang in de fr it nl ru_RU.KOI8-R
|
2008-02-21 23:42:29 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/${lang}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/${lang}/snownews.1 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/${lang}/man1
|
2004-04-09 02:04:23 +02:00
|
|
|
.endfor
|
2008-02-21 23:42:29 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/snownews.1 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/opml2snow.1 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
2007-09-14 01:24:04 +02:00
|
|
|
.for lang in de es ja nl pl pt_BR ru sl zh_TW zh_CN
|
2008-02-21 23:42:29 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${PKGLOCALEDIR}/locale/${lang}/LC_MESSAGES
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGLOCALEDIR}/locale/${lang}/LC_MESSAGES/snownews.mo
|
2004-04-09 02:04:23 +02:00
|
|
|
.endfor
|
2004-02-16 00:52:29 +01:00
|
|
|
|
2004-05-04 06:26:43 +02:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
|
|
.include "../../textproc/libxml2/buildlink3.mk"
|
2003-12-28 00:04:23 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|