aboutsummaryrefslogtreecommitdiffstats
path: root/audio/shntool/Makefile
blob: 6d3d2b5688e50dad0dfd652c9383f9fbb1371e1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# New ports collection makefile for:    shntool
# Date created:     2 November 2000
# Whom:         Bill Fenner <fenner@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   shntool
PORTVERSION=    3.0.7
CATEGORIES= audio
MASTER_SITES=   http://www.etree.org/shnutils/shntool/dist/src/ CENKES

MAINTAINER= infofarmer@FreeBSD.org
COMMENT=    Multi-purpose .wav processing utility

GNU_CONFIGURE=  yes
SHN_ALIASES=    tool len fix hash pad join split cat cmp cue conv info strip gen trim
PLIST_FILES=    ${SHN_ALIASES:S|^|bin/shn|}
MAN1=       shntool.1

OPTIONS=    AIFF "AIFF support via sox" off \
        SHN "Shorten support" off \
        FLAC "FLAC support" off \
        APE "Monkey's Audio support" off \
        OFR "OptimFROG support" off \
        LPAC "LPAC support" off \
        WV "WavPack support" off \
        ALAC "Apple Lossless Audio support" off \
        LA "Laudio support" off \
        TTA "TTA Lossless Audio support" off \
        BONK "Bonk lossy/lossless audio support" off \
        KXS "Kexis support" off
#       ALS "MPEG-4 Audio Lossless Coding support" off \
RDEP=   AIFF:sox SHN:shorten FLAC APE:mac OFR:ofr:optimfrog LPAC WV:wavpack \
    ALAC:alac LA:laudio TTA:ttaenc:tta ALS:mp4als BONK KXS:kexis

.include <bsd.port.pre.mk>

.for i in ${RDEP}
o=  ${i:C/:.*//}
.   ifdef WITH_${o}
b=  ${i:C/^[A-Z]*://:C/:.*//:L}
p=  ${i:C/^[A-Z]*://:C/.*://:L}
RUN_DEPENDS+=   ${b}:${PORTSDIR}/audio/${p}
RUN_DEPENDS:=   ${RUN_DEPENDS}
.   endif
.endfor

.include <bsd.port.post.mk>