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

File: [cvs.NetBSD.org] / pkgsrc / audio / distmp3 / Makefile (download)

Revision 1.13, Tue Sep 11 23:59:30 2012 UTC (6 years, 11 months ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3
Changes since 1.12: +1 -3 lines

"user-destdir" is default these days

# $NetBSD: Makefile,v 1.13 2012/09/11 23:59:30 asau Exp $
#

DISTNAME=		distmp3-0.1.9
CATEGORIES=		audio
MASTER_SITES=	http://distfiles.aydogan.net/audio/		
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		pkgsrc-users@NetBSD.org
COMMENT=		Distributed mp3 encoding across multiple hosts

USE_LANGUAGES=		# empty
USE_TOOLS+=		perl:run
NO_BUILD=		yes

EGDIR=			${PREFIX}/share/examples/distmp3
CONF_FILES=		${EGDIR}/distmp3.conf ${PKG_SYSCONFDIR}/distmp3.conf
REPLACE_PERL=		distmp3 distmp3host

SUBST_CLASSES+=		paths
SUBST_MESSAGE.paths=	Fixing configuration file path.
SUBST_STAGE.paths=	post-configure
SUBST_FILES.paths=	distmp3 distmp3.1 distmp3host distmp3host.1
SUBST_SED.paths=	-e 's,/etc/distmp3,${PKG_SYSCONFDIR},'

SUBST_CLASSES+=		config
SUBST_MESSAGE.config=	Fixing configuration file parameters.
SUBST_STAGE.config=	post-configure
SUBST_FILES.config=	distmp3.conf
SUBST_SED.config+=	-e 's,^SERVER_PROGRAM,; SERVER_PROGRAM,'
SUBST_SED.config+=	-e 's,/usr/local,${PREFIX},'

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/distmp3 ${DESTDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/distmp3host ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/distmp3.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_MAN} ${WRKSRC}/distmp3host.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/distmp3.conf ${DESTDIR}${EGDIR}

.include "../../mk/bsd.pkg.mk"