[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / www / snownews

File: [cvs.NetBSD.org] / pkgsrc / www / snownews / Makefile (download)

Revision 1.22, Mon Dec 5 23:55:23 2005 UTC (17 years, 2 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2005Q4-base, pkgsrc-2005Q4
Changes since 1.21: +2 -2 lines

Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.

# $NetBSD: Makefile,v 1.22 2005/12/05 23:55:23 rillig Exp $

DISTNAME=	snownews-1.5.7
PKGREVISION=	2
CATEGORIES=	www
MASTER_SITES=	http://kiza.kcore.de/software/snownews/download/

MAINTAINER=	tech-pkg@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"