aboutsummaryrefslogtreecommitdiffstats
path: root/audio/shntool/Makefile
blob: 9e676b1885cd46fa276a79a70772172e9feca2f8 (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
50
# New ports collection makefile for:    shntool
# Date created:     2 November 2000
# Whom:         Bill Fenner <fenner@FreeBSD.org>
#
# $FreeBSD$
#

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

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

GNU_CONFIGURE=  yes
MAKE_JOBS_SAFE= 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>