1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- # $OpenBSD: Makefile,v 1.27 2017/04/26 20:34:32 ian 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.1
- 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
- .for release in ${REL_LIST}
- DISTFILES += song${release}.mp3
- .endfor
- PKG_ARCH = *
- 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 = http://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>
|