44 lines
1004 B
Makefile
Raw Normal View History

2013-05-06 19:22:23 +00:00
# $OpenBSD: Makefile,v 1.15 2013/05/06 19:22:23 naddy Exp $
COMMENT = add OpenBSD songs to Asterisk music-on-hold
2013-05-06 19:22:23 +00:00
PKGNAME = asterisk-openbsd-moh-5.3
REL_LIST = 30 31 32 33 34 35 36 37 38 39 \
40 41 42 43 44 45 46 47 48 49 \
2013-05-06 19:22:23 +00:00
50 51 52 53
.for release in ${REL_LIST}
DISTFILES += song${release}.mp3
.endfor
EXTRACT_ONLY=
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
MASTER_SITES = ftp://ftp.openbsd.org/pub/OpenBSD/songs/
2010-11-20 19:56:47 +00:00
BUILD_DEPENDS = audio/madplay
DIST_SUBDIR = openbsd_songs
2013-03-11 11:35:43 +00:00
NO_TEST = 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>