aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2017-08-18 15:57:58 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2017-08-18 15:57:58 +0000
commit63b27a25e962723ba6058d819c98a708aaa50edb (patch)
treebf7454d33e3cb4b32cc86ab5c9e014f7230fa42d
parenta3fd9131d379645784212c5c86cada3687b83a50 (diff)
downloadports-63b27a25e962723ba6058d819c98a708aaa50edb.tar.gz
ports-63b27a25e962723ba6058d819c98a708aaa50edb.zip
Convert to options dependency helper
- While I'm here, fix ALAC_RUN_DEPENDS Approved by: portmgr (blanket)
Notes
Notes: svn path=/head/; revision=448250
-rw-r--r--audio/shntool/Makefile26
1 files changed, 11 insertions, 15 deletions
diff --git a/audio/shntool/Makefile b/audio/shntool/Makefile
index 11721d3ee218..1580e17e327f 100644
--- a/audio/shntool/Makefile
+++ b/audio/shntool/Makefile
@@ -26,20 +26,16 @@ LPAC_DESC= LPAC audio format support
OFR_DESC= OptimFROG audio format support
SHN_DESC= Shorten audio compressor support
-RDEP_MAPPING= AIFF:sox ALAC:alac APE:mac FLAC KXS:kexis \
- LA:laudio:linux-laudio LPAC OFR:ofr:optimfrog \
- SHN:shorten TTA:ttaenc:tta WAVPACK
-
-.include <bsd.port.options.mk>
-
-.for o in ${PORT_OPTIONS}
-m= ${RDEP_MAPPING:M${o}*}
-.if ${m}
-b= ${m:C/^[A-Z]*://:C/:.*//:tl}
-p= ${m:C/^[A-Z]*://:C/.*://:tl}
-RUN_DEPENDS+= ${b}:audio/${p}
-RUN_DEPENDS:= ${RUN_DEPENDS}
-.endif
-.endfor
+AIFF_RUN_DEPENDS= sox:audio/sox
+ALAC_RUN_DEPENDS= alacconvert:audio/alac
+APE_RUN_DEPENDS= mac:audio/mac
+FLAC_RUN_DEPENDS= flac:audio/flac
+KXS_RUN_DEPENDS= kexis:audio/kexis
+LA_RUN_DEPENDS= laudio:audio/linux-laudio
+LPAC_RUN_DEPENDS= lpac:audio/lpac
+OFR_RUN_DEPENDS= ofr:audio/optimfrog
+SHN_RUN_DEPENDS= shorten:audio/shorten
+TTA_RUN_DEPENDS= ttaenc:audio/tta
+WAVPACK_RUN_DEPENDS= wavpack:audio/wavpack
.include <bsd.port.mk>