Re: UPDATE: liba52 0.7.5

2012-05-22 Thread Brad Smith
On Tue, May 15, 2012 at 04:33:56PM -0400, Brad Smith wrote:
 Here is an update to a snapshot of liba52 which was intended to be
 0.7.5. The upstream project is essentially dead but I think the fixes
 and improvements since 0.7.4 are worth getting in.
 
 Tested with a handful of DVDs on amd64 with Xine-lib and Ogle. All
 dependent ports build Ok.

Tested with same DVDs on sparc64 with Ogle.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



UPDATE: liba52 0.7.5

2012-05-15 Thread Brad Smith
Here is an update to a snapshot of liba52 which was intended to be
0.7.5. The upstream project is essentially dead but I think the fixes
and improvements since 0.7.4 are worth getting in.

Tested with a handful of DVDs on amd64 with Xine-lib and Ogle. All
dependent ports build Ok.


Index: Makefile
===
RCS file: /home/cvs/ports/audio/liba52/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- Makefile29 Mar 2012 13:38:13 -  1.17
+++ Makefile15 May 2012 20:32:52 -
@@ -1,30 +1,32 @@
-#$OpenBSD: Makefile,v 1.17 2012/03/29 13:38:13 sthen Exp $
+# $OpenBSD: Makefile,v 1.17 2012/03/29 13:38:13 sthen Exp $
 
+COMMENT =  free library for decoding ATSC A/52 streams, aka AC-3
+
+DISTFILES =a52dec-snapshot.tar.gz
+DISTNAME = a52dec-0.7.5-cvs
+PKGNAME =  liba52-0.7.5
 CATEGORIES =   audio
+MASTER_SITES = http://comstyle.com/source/
+
+SHARED_LIBS =  a52 1.0
 
-COMMENT =  AC-3 decoding library
-DISTNAME = a52dec-0.7.4
-PKGNAME =  liba52-0.7.4
-REVISION = 2
-MASTER_SITES = http://liba52.sourceforge.net/files/
 HOMEPAGE = http://liba52.sourceforge.net/
-SHARED_LIBS += a52  0.0  # .0.0
 
 MAINTAINER =   Marc Espie es...@openbsd.org
 
-CONFIGURE_STYLE =  gnu
-CONFIGURE_ARGS +=  ${CONFIGURE_SHARED}
-MODGNU_CONFIG_GUESS_DIRS = ${WRKSRC}/autotools
-SEPARATE_BUILD =   Yes
-USE_LIBTOOL =  Yes
-USE_GROFF =Yes
-
-# GPL
+# GPLv2+
 PERMIT_DISTFILES_CDROM = Yes
-PERMIT_DISTFILES_FTP = Yes
-PERMIT_PACKAGE_CDROM = Yes
-PERMIT_PACKAGE_FTP = Yes
-
-WANTLIB =  c m ossaudio
+PERMIT_DISTFILES_FTP = Yes
+PERMIT_PACKAGE_CDROM = Yes
+PERMIT_PACKAGE_FTP =   Yes
+
+WANTLIB =  c m ossaudio
+
+USE_LIBTOOL =  Yes
+SEPARATE_BUILD = Yes
+CONFIGURE_STYLE = autoconf
+AUTOCONF_VERSION = 2.59
+CONFIGURE_ARGS += ${CONFIGURE_SHARED}
+MODGNU_CONFIG_GUESS_DIRS = ${WRKSRC}/autotools
 
 .include bsd.port.mk
Index: distinfo
===
RCS file: /home/cvs/ports/audio/liba52/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- distinfo5 Apr 2007 15:37:43 -   1.5
+++ distinfo3 Jul 2011 13:47:35 -
@@ -1,5 +1,5 @@
-MD5 (a52dec-0.7.4.tar.gz) = yqn1vEQjLciu6nc/6la+gA==
-RMD160 (a52dec-0.7.4.tar.gz) = W2OzTFhA5xgrczytQekWqNSHXrE=
-SHA1 (a52dec-0.7.4.tar.gz) = ebM72NidrXQ2+FuRVK01ZnqjcyE=
-SHA256 (a52dec-0.7.4.tar.gz) = oh1ySrOzkzMwGUNTaH34LEdbXfuZdRPu9MJd5shl7DM=
-SIZE (a52dec-0.7.4.tar.gz) = 241507
+MD5 (a52dec-snapshot.tar.gz) = FynHUH92sNTMBFQJJsXQ1w==
+RMD160 (a52dec-snapshot.tar.gz) = d3yeskVYwXuHgAdyCjlzGpYKHHM=
+SHA1 (a52dec-snapshot.tar.gz) = LmSHj9xbzXnia4AgnnpEOyAT6cE=
+SHA256 (a52dec-snapshot.tar.gz) = kETGWygUNg+s8B1Ndn17M8oXRlQLNa3158bZDkeFb/4=
+SIZE (a52dec-snapshot.tar.gz) = 389367
Index: patches/patch-configure
===
RCS file: patches/patch-configure
diff -N patches/patch-configure
--- patches/patch-configure 7 Feb 2006 07:43:11 -   1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,14 +0,0 @@
-$OpenBSD: patch-configure,v 1.1 2006/02/07 07:43:11 steven Exp $
 configure.orig Sun Jul 28 05:50:42 2002
-+++ configure  Tue Feb  7 01:03:57 2006
-@@ -2751,9 +2751,8 @@ if test x$GCC = xyes; then
- 
- 
- 
--OPT_CFLAGS=`echo $CFLAGS|sed s/-O[0-9]*//g`
-+OPT_CFLAGS=$CFLAGS
- 
--OPT_CFLAGS=$OPT_CFLAGS -O3
- echo $as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags 5
- echo $ECHO_N checking if $CC supports $OPT_CFLAGS flags... $ECHO_C 6
- SAVE_CFLAGS=$CFLAGS
Index: patches/patch-configure_in
===
RCS file: patches/patch-configure_in
diff -N patches/patch-configure_in
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-configure_in  15 May 2012 06:34:23 -
@@ -0,0 +1,40 @@
+$OpenBSD$
+--- configure.in.orig  Tue May 15 02:33:28 2012
 configure.in   Tue May 15 02:34:15 2012
+@@ -30,13 +30,6 @@ if test x$GCC = xyes; then
+ TRY_CFLAGS=$OPT_CFLAGS -Wall
+ AC_TRY_CFLAGS([$TRY_CFLAGS $CFLAGS],[OPT_CFLAGS=$TRY_CFLAGS])
+ 
+-dnl -O3
+-changequote(,)
+-TRY_CFLAGS=`echo $OPT_CFLAGS $CFLAGS|sed s/-O[0-9]*//g`
+-changequote([,])
+-TRY_CFLAGS=$TRY_CFLAGS -O3
+-AC_TRY_CFLAGS([$TRY_CFLAGS],[OPT_CFLAGS=$TRY_CFLAGS; CFLAGS=])
+-
+ AC_ARG_ENABLE([debug],
+   [  --enable-debug  debug mode configuration])
+ if test x$enable_debug = xyes; then
+@@ -50,22 +43,6 @@ if test x$GCC = xyes; then
+ dnl -fno-common
+ TRY_CFLAGS=$OPT_CFLAGS -fno-common
+ AC_TRY_CFLAGS([$TRY_CFLAGS $CFLAGS],[OPT_CFLAGS=$TRY_CFLAGS])
+-
+-dnl arch-specific flags
+-case $host in
+-i?86-* | k?-*)
+-  case $host in
+-  i386-*) TRY_CFLAGS=$OPT_CFLAGS -mcpu=i386;;
+-  i486-*) TRY_CFLAGS=$OPT_CFLAGS -mcpu=i486;;
+-  i586-*) TRY_CFLAGS=$OPT_CFLAGS