1cf9796f3c
USE_TOOLS+=msgfmt.
48 lines
1.7 KiB
Makefile
48 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.26 2006/04/13 18:23:39 jlam Exp $
|
|
|
|
DISTNAME= snownews-1.5.7
|
|
PKGREVISION= 4
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://kiza.kcore.de/software/snownews/download/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://kiza.kcore.de/software/snownews/
|
|
COMMENT= Small, curses based RSS feed reader
|
|
|
|
DEPENDS+= p5-XML-LibXML>=1.58:../../textproc/p5-XML-LibXML
|
|
|
|
HAS_CONFIGURE= YES
|
|
USE_NCURSES= # missing WA_BOLD, WA_REVERSE, KEY_RESIZE
|
|
USE_PKGLOCALEDIR= YES
|
|
USE_TOOLS+= msgfmt perl:run
|
|
|
|
REPLACE_PERL+= configure opml2snow snowsync
|
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
|
|
MAKE_ENV+= PKG_LOCALEDIR=${PKGLOCALEDIR:Q}
|
|
MAKE_ENV+= EXTRA_CFLAGS=${CFLAGS:M*:Q}
|
|
|
|
# XXX -lintl hack suggested by Jeremy C. Reed: blocking on PR #23369
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
MAKE_ENV+= EXTRA_LDFLAGS="${LDFLAGS} ${BUILDLINK_LDADD.gettext}"
|
|
|
|
INSTALLATION_DIRS= bin man/man1
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/snownews ${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/opml2snow ${PREFIX}/bin
|
|
.for M in de fr it nl ru_RU.KOI8-R
|
|
${INSTALL_DATA_DIR} ${PREFIX}/man/${M}/man1
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/${M}/snownews.1 ${PREFIX}/man/${M}/man1
|
|
.endfor
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/snownews.1 ${PREFIX}/man/man1
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/opml2snow.1 ${PREFIX}/man/man1
|
|
.for L in de es ja nl pl pt_BR ru sl zh_TW zh_CN
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${PKGLOCALEDIR}/locale/${L}/LC_MESSAGES
|
|
${INSTALL_DATA} ${WRKSRC}/po/${L}.mo ${PREFIX}/${PKGLOCALEDIR}/locale/${L}/LC_MESSAGES/snownews.mo
|
|
.endfor
|
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
.include "../../textproc/libxml2/buildlink3.mk"
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|