Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # $OpenBSD: Makefile,v 1.27 2017/04/26 20:34:32 ian Exp $
  2. # strictly speaking not, as they are just sound files, but packaging
  3. # these on arch which don't build asterisk is a waste of cycles on build
  4. # machines and disk space on mirrors
  5. BUILD_DEPENDS = telephony/asterisk
  6. # No distfiles here that can get outdated, skip it.
  7. PORTROACH= ignore:1
  8. COMMENT = add OpenBSD songs to Asterisk music-on-hold
  9. PKGNAME = asterisk-openbsd-moh-6.1
  10. REL_LIST = 30 31 32 33 34 35 36 37 38 39 \
  11. 40 41 42 43 44 45 46 47 48 49 \
  12. 50 51 52 53 54 55 56 57 \
  13. 58a 58b 58c 58d 59a 59b \
  14. 60a 60b 60c 60d 60e 60f 60g 61
  15. .for release in ${REL_LIST}
  16. DISTFILES += song${release}.mp3
  17. .endfor
  18. PKG_ARCH = *
  19. EXTRACT_ONLY=
  20. CATEGORIES = telephony
  21. HOMEPAGE = http://www.openbsd.org/lyrics.html
  22. MAINTAINER= Ian Darwin <ian@openbsd.org>
  23. # Copyright held by Theo; ok for non-commercial-redistribution
  24. PERMIT_PACKAGE_CDROM = Yes
  25. MASTER_SITES = http://ftp.openbsd.org/pub/OpenBSD/songs/
  26. BUILD_DEPENDS = audio/madplay
  27. DIST_SUBDIR = openbsd_songs
  28. NO_TEST = Yes
  29. MOH = ${PREFIX}/share/asterisk/moh
  30. do-build:
  31. .for release in ${REL_LIST}
  32. ${PREFIX}/bin/madplay -a -1.5 -Q -z -o raw:- --mono -R 8000 -a -12 \
  33. ${FULLDISTDIR}/song${release}.mp3 > ${WRKDIR}/song${release}.sln
  34. .endfor
  35. do-install:
  36. ${INSTALL_DATA_DIR} ${MOH}
  37. ${INSTALL_DATA} ${WRKDIR}/song*.sln ${MOH}
  38. .include <bsd.port.mk>