Import celt-0.5.0.
[pkgsrc.git] / audio / distmp3 / Makefile
1 # $NetBSD$
2 #
3
4 DISTNAME=               distmp3-0.1.9
5 CATEGORIES=             audio
6 MASTER_SITES=           http://distro.ibiblio.org/pub/linux/distributions/sorcerer/sources/distmp3/0.1.9/
7 EXTRACT_SUFX=           .tar.bz2
8
9 MAINTAINER=             grant@NetBSD.org
10 COMMENT=                Distributed mp3 encoding across multiple hosts
11
12 USE_BUILDLINK3=         yes
13 USE_LANGUAGES=          # empty
14 USE_PERL5=              # defined
15 USE_PKGINSTALL=         yes
16 NO_BUILD=               # defined
17
18 EGDIR=                  ${PREFIX}/share/examples/distmp3
19 CONF_FILES=             ${EGDIR}/distmp3.conf ${PKG_SYSCONFDIR}/distmp3.conf
20 REPLACE_PERL=           distmp3 distmp3host
21
22 SUBST_CLASSES+=         paths
23 SUBST_MESSAGE.paths=    "Fixing configuration file path."
24 SUBST_STAGE.paths=      post-configure
25 SUBST_FILES.paths=      distmp3 distmp3.1 distmp3host distmp3host.1
26 SUBST_SED.paths=        -e 's,/etc/distmp3,${PKG_SYSCONFDIR},'
27
28 SUBST_CLASSES+=         config
29 SUBST_MESSAGE.config=   "Fixing configuration file parameters."
30 SUBST_STAGE.config=     post-configure
31 SUBST_FILES.config=     distmp3.conf
32 SUBST_SED.config+=      -e 's,^SERVER_PROGRAM,; SERVER_PROGRAM,'
33 SUBST_SED.config+=      -e 's,/usr/local,${PREFIX},'
34
35 #HOMEPAGE=
36 do-install:
37         ${INSTALL_SCRIPT} ${WRKSRC}/distmp3 ${PREFIX}/bin
38         ${INSTALL_SCRIPT} ${WRKSRC}/distmp3host ${PREFIX}/bin
39         ${INSTALL_MAN} ${WRKSRC}/distmp3.1 ${PREFIX}/man/man1
40         ${INSTALL_MAN} ${WRKSRC}/distmp3host.1 ${PREFIX}/man/man1
41         ${INSTALL_DATA_DIR} ${EGDIR}
42         ${INSTALL_DATA} ${WRKSRC}/distmp3.conf ${EGDIR}
43
44 .include "../../mk/bsd.pkg.mk"