[Midnightbsd-cvs] mports: mports/multimedia: oh happy day!
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Aug 24 18:15:38 EDT 2008
Log Message:
-----------
oh happy day!
Modified Files:
--------------
mports/multimedia:
Makefile (r1.42 -> r1.43)
Added Files:
-----------
mports/multimedia/x264:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-plist (r1.1)
mports/multimedia/x264/files:
patch-Makefile (r1.1)
patch-configure (r1.1)
patch-gtk_Makefile (r1.1)
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/multimedia/Makefile,v
retrieving revision 1.42
retrieving revision 1.43
diff -L multimedia/Makefile -L multimedia/Makefile -u -r1.42 -r1.43
--- multimedia/Makefile
+++ multimedia/Makefile
@@ -44,6 +44,7 @@
SUBDIR += v4l_compat
SUBDIR += vcdimager
SUBDIR += win32-codecs
+ SUBDIR += x264
SUBDIR += xanim
SUBDIR += xine
SUBDIR += xmms
--- /dev/null
+++ multimedia/x264/pkg-descr
@@ -0,0 +1,13 @@
+x264 is a free library for encoding H.264/AVC (aka MPEG-4 Part 10)
+video streams.
+
+Encoder features
+ * CAVLC/CABAC
+ * Multi-references
+ * Intra: all modes (4x4 and 16x16 with all predictions)
+ * Inter P: all partitions (from 16x16 down to 4x4)
+ * Inter B: partitions from 16x16 down to 8x8 (including SKIP/DIRECT)
+ * Ratecontrol: constant quantizer, constant bitrate, or multipass ABR
+ * Scene cut detection
+
+WWW: http://www.videolan.org/x264.html
--- /dev/null
+++ multimedia/x264/pkg-plist
@@ -0,0 +1,6 @@
+bin/x264
+include/x264.h
+lib/libx264.a
+lib/libx264.so
+lib/libx264.so.50
+libdata/pkgconfig/x264.pc
--- /dev/null
+++ multimedia/x264/Makefile
@@ -0,0 +1,103 @@
+# New ports collection makefile for: x264
+# Date created: 2005-01-11
+# Whom: Michael Johnson <ahze at FreeBSD.org>
+#
+# $MidnightBSD: mports/multimedia/x264/Makefile,v 1.1 2008/08/24 22:15:36 laffer1 Exp $
+# $FreeBSD: ports/multimedia/x264/Makefile,v 1.63 2008/06/06 14:33:38 edwin Exp $
+# $Id: Makefile 30 2006-10-30 22:15:26Z buhnux $
+
+PORTNAME= x264
+PORTVERSION= 0.0.20080409
+CATEGORIES= multimedia
+MASTER_SITES= http://downloads.videolan.org/pub/videolan/x264/snapshots/
+DISTNAME= ${PORTNAME}-snapshot-${PORTVERSION:S/0.0.//}-2245
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT?= Multimedia library and tool for encoding H.264/AVC video streams
+LICENSE= gpl2
+
+BUILD_DEPENDS= yasm>=0.6.0:${PORTSDIR}/devel/yasm
+
+WANT_GNOME= yes
+USE_BZIP2= yes
+EXTRACT_AFTER_ARGS?= | ${TAR} -xf - --exclude .svn
+WRKSRC= ${WRKDIR}/${DISTNAME}
+USE_GMAKE= yes
+ALL_TARGET= default
+USE_LDCONFIG= yes
+HAS_CONFIGURE= yes
+
+OPTIONS= DEBUG "Enable Debugging" Off \
+ OPTIMIZED_CFLAGS "Enable Optimized CFLAGS" Off
+
+CONFIGURE_ARGS+= --extra-cflags="${CPPFLAGS} ${CFLAGS} -fPIC -I${LOCALBASE}/include -I${LOCALBASE}/include" \
+ --extra-ldflags="${LDFLAGS} -L${LOCALBASE}/lib -L${LOCALBASE}/lib" \
+ --enable-shared
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd6.0 \
+ --host=${ARCH}-portbld-freebsd6.0 \
+ --target=${ARCH}-portbld-freebsd6.0
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_GTK2) && ${SLAVE_PORT:L}=="yes"
+LIB_DEPENDS+= x264.50:${PORTSDIR}/multimedia/x264
+BUILD_WRKSRC= ${WRKSRC}/gtk
+INSTALL_WRKSRC= ${WRKSRC}/gtk
+ALL_TARGET= all
+USE_GETTEXT= yes
+USE_GNOME= gtk20
+CONFIGURE_ARGS+= --enable-gtk
+.else
+OPTIONS+= GPAC "Enable MPEG-4 Output" On \
+ X11_OUTPUT "Enable X11 Output" Off
+.endif
+
+.if ${ARCH}=="i386"
+MAKE_ENV+= ARCH_X86="1"
+.endif
+
+MAKE_ENV+= ARCH=${ARCH}
+
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+= --enable-debug
+.endif
+
+.if defined(WITH_OPTIMIZED_CFLAGS)
+CFLAGS+= -O2 -funroll-loops -ffast-math
+.endif
+
+.if !defined(WITHOUT_GPAC)
+BUILD_DEPENDS+= gpac-libgpac>=0.4.2.r2,1:${PORTSDIR}/multimedia/gpac-libgpac
+LIB_DEPENDS+= gpac.1:${PORTSDIR}/multimedia/gpac-libgpac
+CONFIGURE_ARGS+= --enable-mp4-output
+.endif
+
+.if defined(WITH_X11_OUTPUT)
+CONFIGURE_ARGS+= --enable-visualize
+USE_XORG= x11
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|; \
+ s|-lpthread|${PTHREAD_LIBS}|g' \
+ ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|; \
+ s|$${libdir}/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
+ ${WRKSRC}/Makefile \
+ ${WRKSRC}/*/Makefile
+
+.if ${SLAVE_PORT:L}=="no"
+.if 0 # BROKEN
+post-build:
+ cd ${WRKSRC}/tools && ${MAKE} avc2avi
+
+pre-install:
+ @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
+ ${WRKSRC}/x264.pc
+
+post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/tools/avc2avi ${PREFIX}/bin
+.endif # BROKEN
+.endif
+
+.include <bsd.port.post.mk>
--- /dev/null
+++ multimedia/x264/distinfo
@@ -0,0 +1,3 @@
+MD5 (x264-snapshot-20080409-2245.tar.bz2) = 2a1b0ad913885cfde72159671ad51280
+SHA256 (x264-snapshot-20080409-2245.tar.bz2) = 6a921b0fc21cf508fd4df003b400903dee50cc046e3d4a8570aef34f4a000b32
+SIZE (x264-snapshot-20080409-2245.tar.bz2) = 1919929
--- /dev/null
+++ multimedia/x264/files/patch-configure
@@ -0,0 +1,29 @@
+--- configure.orig 2008-04-09 16:45:06.000000000 -0400
++++ configure 2008-04-09 20:48:37.722733173 -0400
+@@ -248,7 +248,7 @@
+ fi
+ as_check || AS="nasm"
+ ;;
+- x86_64)
++ x86_64 | amd64)
+ ARCH="X86_64"
+ AS="yasm"
+ if [ "$SYS" = MACOSX ];then
+@@ -372,7 +372,7 @@
+ LDFLAGS="$LDFLAGS $libpthread"
+ fi
+
+-MP4_LDFLAGS="-lgpac_static"
++MP4_LDFLAGS="-lgpac"
+ if [ $SYS = MINGW ]; then
+ MP4_LDFLAGS="$MP4_LDFLAGS -lwinmm"
+ fi
+@@ -458,7 +458,7 @@
+ cp config.mak gtk/config.mak
+
+ if [ "$shared" = "yes" ]; then
+- API=$(grep '#define X264_BUILD' < x264.h | cut -f 3 -d ' ')
++ API=50
+ if [ "$SYS" = "MINGW" ]; then
+ echo "SONAME=libx264-$API.dll" >> config.mak
+ echo 'IMPLIBNAME=libx264.dll.a' >> config.mak
--- /dev/null
+++ multimedia/x264/files/patch-Makefile
@@ -0,0 +1,20 @@
+--- Makefile.orig 2008-04-09 16:45:06.000000000 -0400
++++ Makefile 2008-04-09 20:47:32.490510083 -0400
+@@ -26,7 +26,7 @@
+ cpu-32.asm dct-32.asm
+ X86SRC = $(X86SRC0:%=common/x86/%)
+
+-ifeq ($(ARCH),X86)
++ifeq ($(ARCH),i386)
+ SRCS += common/x86/mc-c.c common/x86/predict-c.c
+ ASMSRC = $(X86SRC) common/x86/pixel-32.asm
+ OBJASM = $(ASMSRC:%.asm=%.o)
+@@ -35,7 +35,7 @@
+ checkasm: tools/checkasm-32.o
+ endif
+
+-ifeq ($(ARCH),X86_64)
++ifeq ($(ARCH),amd64)
+ SRCS += common/x86/mc-c.c common/x86/predict-c.c
+ ASMSRC = $(X86SRC:-32.asm=-64.asm)
+ OBJASM = $(ASMSRC:%.asm=%.o)
--- /dev/null
+++ multimedia/x264/files/patch-gtk_Makefile
@@ -0,0 +1,20 @@
+--- gtk/Makefile.orig Fri Jun 1 08:18:59 2007
++++ gtk/Makefile Fri Jun 1 08:19:28 2007
+@@ -46,14 +46,14 @@
+
+ X264GTK_PC = x264gtk.pc
+
+-EXTERNAL_DEPS= ../muxers.o ../matroska.o ../libx264.a
++EXTERNAL_DEPS= ../muxers.o ../matroska.o
+
+
+ all: $(ENCODE_BIN) $(TEST_BIN) $(MO_FILES) $(X264GTK_PC)
+
+ # Already provides iconv/intl
+-CPPFLAGS = -g `pkg-config --cflags gtk+-2.0 gthread-2.0` -I.. -DX264_DATA_DIR=\"${datadir}\"
+-LDFLAGS += `pkg-config --libs gtk+-2.0 gthread-2.0` ../libx264.a
++CPPFLAGS = -g `pkg-config --cflags gtk+-2.0 gthread-2.0 x264` -I.. -DX264_DATA_DIR=\"${datadir}\"
++LDFLAGS += `pkg-config --libs gtk+-2.0 gthread-2.0 x264`
+
+
+ # gettext rules
More information about the Midnightbsd-cvs
mailing list