1 # $NetBSD: Makefile,v 1.16 2012/09/11 23:59:29 asau Exp $
6 MASTER_SITES
= # ${HOMEPAGE}
8 MAINTAINER
= pkgsrc-users@NetBSD.org
9 HOMEPAGE
= http
://mask.tf.hut.fi
/~flu
/hacks
/cplay
/
10 COMMENT
= Curses front-end for various audio players
13 DEPENDS
+= ${PYPKGPREFIX}-curses-
[0-9]*:..
/..
/devel
/py-curses
15 PYTHON_PATCH_SCRIPTS
= cplay
21 PKGLOCALES
= da de hu pl
22 EGDIR
= ${PREFIX}/share
/examples
/cplay
23 CONF_FILES
= ${EGDIR}/cplayrc
${PKG_SYSCONFDIR}/cplayrc
26 SUBST_STAGE.paths
= pre-build
27 SUBST_FILES.paths
= cplay cplay
.1
28 SUBST_SED.paths
= -e
's,/etc/cplayrc,${PKG_SYSCONFDIR}/cplayrc,g'
29 SUBST_SED.paths
+= -e
's,/usr/local/share/locale,${PREFIX}/${PKGLOCALEDIR}/locale,g'
31 INSTALLATION_DIRS
= bin
${PKGMANDIR}/man1 share
/examples
/cplay
32 .for l in
${PKGLOCALES}
33 INSTALLATION_DIRS
+= ${PKGLOCALEDIR}/locale
/${l}/LC_MESSAGES
37 cd
${WRKSRC} && ${MAKE_PROGRAM} cplayrc
38 .for m in
${PKGLOCALES}
39 msgfmt
-o
${WRKSRC}/po
/${m}.mo
${WRKSRC}/po
/${m}.po
43 ${INSTALL_SCRIPT} ${WRKSRC}/cplay
${DESTDIR}${PREFIX}/bin
/
44 ${INSTALL_MAN} ${WRKSRC}/cplay
.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
/
45 ${INSTALL_DATA} ${WRKSRC}/cplayrc
${DESTDIR}${EGDIR}
46 .for l in
${PKGLOCALES}
47 ${INSTALL_DATA} ${WRKSRC}/po
/${l}.mo
${DESTDIR}${PREFIX}/${PKGLOCALEDIR}/locale
/${l}/LC_MESSAGES
/cplay.mo
50 .
include "../../lang/python/application.mk"
51 .
include "../../mk/bsd.pkg.mk"