Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / audio / cplay / Makefile
blob1dd5fd3f50c14d0506586fbbd153066cb7d85e3e
1 # $NetBSD: Makefile,v 1.16 2012/09/11 23:59:29 asau Exp $
3 DISTNAME= cplay-1.49
4 PKGREVISION= 4
5 CATEGORIES= audio
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
11 LICENSE= gnu-gpl-v2
13 DEPENDS+= ${PYPKGPREFIX}-curses-[0-9]*:../../devel/py-curses
15 PYTHON_PATCH_SCRIPTS= cplay
17 USE_PKGLOCALEDIR= yes
18 USE_TOOLS+= msgfmt
19 USE_LANGUAGES= # none
21 PKGLOCALES= da de hu pl
22 EGDIR= ${PREFIX}/share/examples/cplay
23 CONF_FILES= ${EGDIR}/cplayrc ${PKG_SYSCONFDIR}/cplayrc
25 SUBST_CLASSES+= paths
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
34 .endfor
36 do-build:
37 cd ${WRKSRC} && ${MAKE_PROGRAM} cplayrc
38 .for m in ${PKGLOCALES}
39 msgfmt -o ${WRKSRC}/po/${m}.mo ${WRKSRC}/po/${m}.po
40 .endfor
42 do-install:
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
48 .endfor
50 .include "../../lang/python/application.mk"
51 .include "../../mk/bsd.pkg.mk"