56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.29 2018/12/21 21:27:44 naddy Exp $
|
|
|
|
# strictly speaking not, as they are just sound files, but packaging
|
|
# these on arch which don't build asterisk is a waste of cycles on build
|
|
# machines and disk space on mirrors
|
|
BUILD_DEPENDS = telephony/asterisk
|
|
|
|
# No distfiles here that can get outdated, skip it.
|
|
PORTROACH= ignore:1
|
|
|
|
COMMENT = add OpenBSD songs to Asterisk music-on-hold
|
|
|
|
PKGNAME = asterisk-openbsd-moh-6.2
|
|
REL_LIST = 30 31 32 33 34 35 36 37 38 39 \
|
|
40 41 42 43 44 45 46 47 48 49 \
|
|
50 51 52 53 54 55 56 57 \
|
|
58a 58b 58c 58d 59a 59b \
|
|
60a 60b 60c 60d 60e 60f 60g 61 62
|
|
.for release in ${REL_LIST}
|
|
DISTFILES += song${release}.mp3
|
|
.endfor
|
|
|
|
PKG_ARCH = *
|
|
EXTRACT_ONLY=
|
|
|
|
CATEGORIES = telephony
|
|
|
|
HOMEPAGE = https://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 = https://ftp.openbsd.org/pub/OpenBSD/songs/
|
|
|
|
BUILD_DEPENDS = audio/madplay
|
|
|
|
DIST_SUBDIR = openbsd_songs
|
|
|
|
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>
|