aboutsummaryrefslogtreecommitdiffstats
path: root/audio/wavpack/Makefile
blob: 51ce05abdad353a15add720cc7af069e6d58203a (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
# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$

PORTNAME=   wavpack
PORTVERSION=    5.1.0
CATEGORIES= audio
MASTER_SITES=   http://www.wavpack.com/

MAINTAINER= multimedia@FreeBSD.org
COMMENT=    Audio codec for lossless, lossy, and hybrid compression

LICENSE=    BSD3CLAUSE
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       iconv libtool pathfix pkgconfig tar:bzip2
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip

OPTIONS_DEFINE= ASM
OPTIONS_DEFAULT_amd64=  ASM
OPTIONS_DEFAULT_armv6=  ASM

ASM_CONFIGURE_OFF=  --disable-asm
ASM_DESC=   Optimized assembler routines (requires MMX on x86)

.include <bsd.port.options.mk>

# ASM needs clang 3.8+
# depend on llvm39 since it's more likely to be installed already than 3.8
.if ${OSVERSION} < 1100101 && ${PORT_OPTIONS:MASM}
BUILD_DEPENDS+= clang39:devel/llvm39
CC=     clang39
.endif

.include <bsd.port.mk>