blob: b982405a1628c162b695cad9420235a45a02e630 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# $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"
|