aboutsummaryrefslogtreecommitdiff
path: root/audio/liba52-devel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/liba52-devel/Makefile')
-rw-r--r--audio/liba52-devel/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/audio/liba52-devel/Makefile b/audio/liba52-devel/Makefile
index d1018169f9ba..8244356da9d5 100644
--- a/audio/liba52-devel/Makefile
+++ b/audio/liba52-devel/Makefile
@@ -6,15 +6,13 @@
#
PORTNAME= liba52
-PORTVERSION= 0.7.1.b
-PORTREVISION= 1
+PORTVERSION= 0.7.2
CATEGORIES= audio
MASTER_SITES= http://liba52.sourceforge.net/files/
DISTNAME= a52dec-${PORTVERSION:S/.b/b/}
MAINTAINER= lioux@FreeBSD.org
-USE_AUTOMAKE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-oss --enable-shared
@@ -24,10 +22,6 @@ MAN1= a52dec.1 extract_a52.1
HEADER_FILES= liba52/a52_internal.h
-.ifndef(WITH_OPTIMIZED_CFLAGS)
-EXTRA_PATCHES= ${FILESDIR}/extra-patch-configure.in
-.endif
-
pre-everything::
.ifndef(WITH_OPTIMIZED_CFLAGS)
@${ECHO_MSG} ">>>"
@@ -36,6 +30,12 @@ pre-everything::
@${ECHO_MSG} ">>>"
.endif
+post-patch:
+.ifndef(WITH_OPTIMIZED_CFLAGS)
+ @${PERL} -pi.orig -e 's!-O3!${CFLAGS}!;s!-mcpu=[^"]+"!"!' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+.endif
+
post-configure:
@${LN} -sf ${LOCALBASE}/bin/libtool ${WRKSRC}