pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/transcode repair some damages:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b35f80b29898
branches:  trunk
changeset: 475217:b35f80b29898
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Wed May 12 16:19:32 2004 +0000

description:
repair some damages:
-properly libtoolize some libraries to get dynamically loadable modules,
 use a hack from SDL to make libtool work with nasm (thanks wiz for
 the hint)
-run aclocal and autoconf, otherwise the autoconf version skew scews
 things up
 XXX we shouldn't use autoconf et al for the build but commit
 patches to configure and Makefile.in
-make sure we don't get trapped by the X11R6 freetype2 nonsense

diffstat:

 multimedia/transcode/Makefile            |   6 +++-
 multimedia/transcode/PLIST               |  12 ++++++----
 multimedia/transcode/distinfo            |   4 ++-
 multimedia/transcode/files/strip_fPIC.sh |  18 +++++++++++++++++
 multimedia/transcode/patches/patch-at    |  33 ++++++++++++++++++++++++++++++++
 multimedia/transcode/patches/patch-au    |  31 ++++++++++++++++++++++++++++++
 6 files changed, 96 insertions(+), 8 deletions(-)

diffs (185 lines):

diff -r 5fbd52175921 -r b35f80b29898 multimedia/transcode/Makefile
--- a/multimedia/transcode/Makefile     Wed May 12 15:27:51 2004 +0000
+++ b/multimedia/transcode/Makefile     Wed May 12 16:19:32 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/05/10 13:47:07 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2004/05/12 16:19:32 drochner Exp $
 
 DISTNAME=      transcode-0.6.12
 PKGREVISION=   1
@@ -24,6 +24,7 @@
 # when libmpeg3 is a shlib.
 CONFIGURE_ARGS+=       --without-libmpeg3
 CONFIGURE_ARGS+=       --with-default-xvid=xvid4
+CONFIGURE_ARGS+=       --with-ft-prefix=${BUILDLINK_PREFIX.freetype2}
 
 .if exists(${X11BASE}/lib/libXv.so)
 PLIST_SUBST+=          FILTERPV=filter_pv.so
@@ -34,10 +35,11 @@
 # this used to operate on acinclude.m4 and run aclocal, but running
 # aclocal here breaks due to missing DLFCN checking
 post-patch:
+       -cd ${WRKSRC} && ${ACLOCAL} && ${AUTOCONF} && ${AUTOMAKE}
        cd ${WRKSRC} && \
        ${SED} "s|/usr/local|${PREFIX}|g; s|include/libmpeg3|include/mpeg3|g; s|-ldl -lm|-lm|g" configure > configure.new && \
        ${MV} configure.new configure && ${CHMOD} a+x configure
-       -cd ${WRKSRC} && ${AUTOMAKE}
+       ${CP} ${FILESDIR}/strip_fPIC.sh ${WRKSRC}
 
 post-install:
        ${LN} -sf ../libxvidcore.so.4.0  ${PREFIX}/lib/transcode/libxvidcore.so.4
diff -r 5fbd52175921 -r b35f80b29898 multimedia/transcode/PLIST
--- a/multimedia/transcode/PLIST        Wed May 12 15:27:51 2004 +0000
+++ b/multimedia/transcode/PLIST        Wed May 12 16:19:32 2004 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2004/05/10 13:47:08 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2004/05/12 16:19:32 drochner Exp $
 bin/avifix
 bin/aviindex
 bin/avimerge
@@ -50,10 +50,10 @@
 lib/transcode/export_mp2enc.so
 lib/transcode/export_mp1e.la
 lib/transcode/export_mp1e.so
-lib/transcode/export_mpeg.a
 lib/transcode/export_mpeg.la
-lib/transcode/export_mpeg2enc.a
+lib/transcode/export_mpeg.so
 lib/transcode/export_mpeg2enc.la
+lib/transcode/export_mpeg2enc.so
 lib/transcode/export_net.la
 lib/transcode/export_net.so
 lib/transcode/export_null.la
@@ -77,8 +77,8 @@
 lib/transcode/export_xvid3.so
 lib/transcode/export_xvid4.la
 lib/transcode/export_xvid4.so
-lib/transcode/export_yuv4mpeg.a
 lib/transcode/export_yuv4mpeg.la
+lib/transcode/export_yuv4mpeg.so
 lib/transcode/filter_29to23.la
 lib/transcode/filter_29to23.so
 lib/transcode/filter_32detect.la
@@ -174,10 +174,12 @@
 lib/transcode/filter_tc_audio.so
 lib/transcode/filter_tc_video.la
 lib/transcode/filter_tc_video.so
-lib/transcode/filter_test.a
 lib/transcode/filter_test.la
+lib/transcode/filter_test.so
 lib/transcode/filter_testframe.la
 lib/transcode/filter_testframe.so
+lib/transcode/filter_text.la
+lib/transcode/filter_text.so
 lib/transcode/filter_unsharp.la
 lib/transcode/filter_unsharp.so
 lib/transcode/filter_videocore.la
diff -r 5fbd52175921 -r b35f80b29898 multimedia/transcode/distinfo
--- a/multimedia/transcode/distinfo     Wed May 12 15:27:51 2004 +0000
+++ b/multimedia/transcode/distinfo     Wed May 12 16:19:32 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/05/10 13:47:08 wiz Exp $
+$NetBSD: distinfo,v 1.2 2004/05/12 16:19:32 drochner Exp $
 
 SHA1 (transcode-0.6.12.tar.gz) = 3d9b223f804253a6a76d9645feb86609b0a2499a
 Size (transcode-0.6.12.tar.gz) = 3454807 bytes
@@ -17,3 +17,5 @@
 SHA1 (patch-aq) = 3a8bd7888460880767204239ac783bff3d6814a9
 SHA1 (patch-ar) = df0bf12044741c586b0168ead6aa0fa71a23aea1
 SHA1 (patch-as) = d673ec6009d96f55afcf8382f834edc2cadd2ae3
+SHA1 (patch-at) = f598541e1ea9c7e6fcd93d7f2704397b5bdb5cd8
+SHA1 (patch-au) = 0e9731f693f209d1c2bd4b28e71c03cab94020ea
diff -r 5fbd52175921 -r b35f80b29898 multimedia/transcode/files/strip_fPIC.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/transcode/files/strip_fPIC.sh  Wed May 12 16:19:32 2004 +0000
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# libtool assumes that the compiler can handle the -fPIC flag
+# This isn't always true (for example, nasm can't handle it)
+command=""
+while [ $# -gt 0 ]; do
+    case "$1" in
+        -?PIC)
+            # Ignore -fPIC and -DPIC options
+            ;;
+        *)
+            command="$command $1"
+            ;;
+    esac
+    shift
+done
+echo $command
+exec $command
diff -r 5fbd52175921 -r b35f80b29898 multimedia/transcode/patches/patch-at
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/transcode/patches/patch-at     Wed May 12 16:19:32 2004 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-at,v 1.1 2004/05/12 16:19:32 drochner Exp $
+
+--- bbmpeg/Makefile.am.orig    2003-09-15 16:30:20.000000000 +0200
++++ bbmpeg/Makefile.am 2004-05-12 18:38:26.000000000 +0200
+@@ -3,7 +3,7 @@
+ AUTOMAKE_OPTIONS = 1.3 foreign
+ DEFAULT_INCLUDES = -I$(top_srcdir) -I$(srcdir) -I$(top_builddir) -I. 
+ 
+-noinst_LIBRARIES = libbbmpeg.a
++noinst_LTLIBRARIES = libbbmpeg.la
+ 
+ if HAVE_ASM_NASM
+ BB_SRC2 = fdct_mmx.s idct_mmx.s quant_mmx.s motion_mmx.s variance_mmx.s
+@@ -20,7 +20,7 @@
+ 
+ CFLAGS = -funroll-loops -ffast-math @CFLAGS@ $(MMX)
+ 
+-libbbmpeg_a_SOURCES = dovideo.c params.c bits.c puthdr.c putpic.c putmpg.c putvlc.c stats.c quantize.c predict.c ratectl.c idct.c motion.c transfrm.c fdctref.c resize.c $(BB_SRC1) $(BB_SRC2) 
$(BB_SRC3)
++libbbmpeg_la_SOURCES = dovideo.c params.c bits.c puthdr.c putpic.c putmpg.c putvlc.c stats.c quantize.c predict.c ratectl.c idct.c motion.c transfrm.c fdctref.c resize.c $(BB_SRC1) $(BB_SRC2) 
$(BB_SRC3)
+ 
+ noinst_HEADERS = mtable.h mplex.h mmx.h main.h imgresample.h gmo_read.h encaudio.h consts.h consts1.h common.h bbencode.h 
+ 
+@@ -60,7 +60,9 @@
+ ASM = @NASM@
+ ASMFLAGS = @NASMFLAGS@
+ 
+-%.o: %.s ;    $(ASM) -g $(ASMFLAGS) -o $@ $<
++STRIP_FPIC = sh $(top_srcdir)/strip_fPIC.sh
++
++%.lo: %.s ;   $(LIBTOOL) --tag=CC --mode=compile $(STRIP_FPIC) $(ASM) $(ASMFLAGS) -o $@ $<
+ 
+ 
+ 
diff -r 5fbd52175921 -r b35f80b29898 multimedia/transcode/patches/patch-au
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/transcode/patches/patch-au     Wed May 12 16:19:32 2004 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-au,v 1.1 2004/05/12 16:19:32 drochner Exp $
+
+--- aclib/Makefile.am.orig     2003-09-15 16:30:20.000000000 +0200
++++ aclib/Makefile.am  2004-05-12 18:27:06.000000000 +0200
+@@ -2,7 +2,7 @@
+ 
+ AUTOMAKE_OPTIONS = 1.3 foreign
+ 
+-noinst_LIBRARIES = libac.a
++noinst_LTLIBRARIES = libac.la
+ 
+ if HAVE_ASM_NASM
+ ASM_SRC = memcpy.s rescale.s average.s swap.s asm_io.s
+@@ -10,7 +10,7 @@
+ 
+ CFLAGS = -funroll-loops -ffast-math -DLINUX @CFLAGS@
+ 
+-libac_a_SOURCES = cputest.c $(ASM_SRC)
++libac_la_SOURCES = cputest.c $(ASM_SRC)
+ 
+ EXTRA_DIST = \
+   ac.h \
+@@ -26,5 +26,7 @@
+ ASM = @NASM@
+ ASMFLAGS = @NASMFLAGS@ -g
+ 
+-%.o: %.s ;    $(ASM) $(ASMFLAGS) -o $@ $<
++STRIP_FPIC = sh $(top_srcdir)/strip_fPIC.sh
++
++%.lo: %.s ;   $(LIBTOOL) --tag=CC --mode=compile $(STRIP_FPIC) $(ASM) $(ASMFLAGS) -o $@ $<
+ 



Home | Main Index | Thread Index | Old Index