openbsd-ports/telephony/asterisk-openbsd-moh/Makefile
2008-05-01 08:18:35 +00:00

45 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.2 2008/05/01 08:18:35 sthen Exp $
COMMENT = add OpenBSD songs to Asterisk music-on-hold
PKGNAME = asterisk-openbsd-moh-4.3
REL_LIST = 30 31 32 33 34 35 36 37 38 39 40 41 42 43
.for release in ${REL_LIST}
DISTFILES += song${release}.mp3
.endfor
EXTRACT_CASES+= *);;
CATEGORIES = telephony
HOMEPAGE = http://www.openbsd.org/lyrics.html
MAINTAINER= Ian Darwin <ian@openbsd.org>
# Copyright held by Theo; ok for non-commercial-redistribution
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ftp://ftp.openbsd.org/pub/OpenBSD/songs/
BUILD_DEPENDS = ::audio/madplay
DIST_SUBDIR = openbsd_songs
NO_REGRESS = Yes
MOH = ${PREFIX}/share/asterisk/moh
do-build:
.for release in ${REL_LIST}
${PREFIX}/bin/madplay -a -1.5 -Q -z -o raw:- --mono -R 8000 -a -12 \
${FULLDISTDIR}/song${release}.mp3 > ${WRKDIR}/song${release}.sln
.endfor
do-install:
${INSTALL_DATA_DIR} ${MOH}
${INSTALL_DATA} ${WRKDIR}/song*.sln ${MOH}
.include <bsd.port.mk>