4 DISTNAME= distmp3-0.1.9
6 MASTER_SITES= http://distro.ibiblio.org/pub/linux/distributions/sorcerer/sources/distmp3/0.1.9/
9 MAINTAINER= grant@NetBSD.org
10 COMMENT= Distributed mp3 encoding across multiple hosts
13 USE_LANGUAGES= # empty
18 EGDIR= ${PREFIX}/share/examples/distmp3
19 CONF_FILES= ${EGDIR}/distmp3.conf ${PKG_SYSCONFDIR}/distmp3.conf
20 REPLACE_PERL= distmp3 distmp3host
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},'
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},'
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}
44 .include "../../mk/bsd.pkg.mk"