blob: 8f3988ba574a00ab197a10039f3b32a75f82f441 (
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
49
50
|
# $NetBSD: Makefile,v 1.25 2006/03/04 21:31:03 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
USE_MSGFMT_PLURALS= YES
BUILD_USES_MSGFMT= YES
HAS_CONFIGURE= YES
USE_NCURSES= # missing WA_BOLD, WA_REVERSE, KEY_RESIZE
USE_PKGLOCALEDIR= YES
USE_TOOLS+= 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"
|