summaryrefslogtreecommitdiff
path: root/audio/wavpack/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/wavpack/Makefile')
-rw-r--r--audio/wavpack/Makefile21
1 files changed, 16 insertions, 5 deletions
diff --git a/audio/wavpack/Makefile b/audio/wavpack/Makefile
index 4022b4ffbfa5..51ce05abdad3 100644
--- a/audio/wavpack/Makefile
+++ b/audio/wavpack/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= wavpack
-PORTVERSION= 4.60.1
-PORTREVISION= 3
+PORTVERSION= 5.1.0
CATEGORIES= audio
MASTER_SITES= http://www.wavpack.com/
@@ -11,7 +10,7 @@ MAINTAINER= multimedia@FreeBSD.org
COMMENT= Audio codec for lossless, lossy, and hybrid compression
LICENSE= BSD3CLAUSE
-LICENSE_FILE= ${WRKSRC}/license.txt
+LICENSE_FILE= ${WRKSRC}/COPYING
USES= iconv libtool pathfix pkgconfig tar:bzip2
USE_LDCONFIG= yes
@@ -20,8 +19,20 @@ CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
-.if ${MACHINE_CPU:Mmmx}
-CONFIGURE_ARGS= --enable-mmx
+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>