diff options
author | Michael Johnson <ahze@FreeBSD.org> | 2006-10-01 04:02:16 +0000 |
---|---|---|
committer | Michael Johnson <ahze@FreeBSD.org> | 2006-10-01 04:02:16 +0000 |
commit | d8b4427091b289652583e17fb82080946e7b3436 (patch) | |
tree | 93839bf63d2cef92ec87e701088056d5635150c7 /multimedia/x264/Makefile | |
parent | e451a3d821fd08f1d07fa135e306b7f297da2faf (diff) | |
download | ports-d8b4427091b289652583e17fb82080946e7b3436.tar.gz ports-d8b4427091b289652583e17fb82080946e7b3436.zip |
Notes
Diffstat (limited to 'multimedia/x264/Makefile')
-rw-r--r-- | multimedia/x264/Makefile | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/multimedia/x264/Makefile b/multimedia/x264/Makefile index b9a598596aca..facc242e47ee 100644 --- a/multimedia/x264/Makefile +++ b/multimedia/x264/Makefile @@ -3,10 +3,11 @@ # Whom: Michael Johnson <ahze@FreeBSD.org> # # $FreeBSD$ -# +# $Id: Makefile 12 2006-09-30 06:25:13Z buhnux $ PORTNAME= x264 -PORTVERSION= 0.0.20060808 +PORTVERSION= 0.0.20060926 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= http://downloads.videolan.org/pub/videolan/x264/snapshots/ DISTNAME= ${PORTNAME}-snapshot-${PORTVERSION:S/0.0.//}-2245 @@ -14,6 +15,7 @@ DISTNAME= ${PORTNAME}-snapshot-${PORTVERSION:S/0.0.//}-2245 MAINTAINER= multimedia@FreeBSD.org COMMENT= Multimedia library and tool for encoding H.264/AVC video streams +WANT_GNOME= yes USE_BZIP2= yes EXTRACT_AFTER_ARGS?= | ${TAR} -xf - --exclude .svn USE_GETOPT_LONG=yes @@ -23,14 +25,8 @@ ALL_TARGET= default USE_LDCONFIG= yes HAS_CONFIGURE= yes -PLIST_FILES= bin/x264 \ - include/x264.h \ - lib/libx264.a \ - lib/libx264.so \ - lib/libx264.so.49 \ - libdata/pkgconfig/x264.pc - OPTIONS= GPAC "Enable MPEG-4 Output" On \ + GTK2 "Enable GTK2+ Frontend" On \ DEBUG "Enable Debugging" Off \ OPTIMIZED_CFLAGS "Enable Optimized CFLAGS" Off \ X11_OUTPUT "Enable X11 Output" Off @@ -41,6 +37,15 @@ CONFIGURE_ARGS+= --extra-cflags="${CPPFLAGS} ${CFLAGS} -fPIC -I${LOCALBASE}/incl .include <bsd.port.pre.mk> +.if !defined(WITHOUT_GTK2) || ${HAVE_GNOME:Mgtk20}!="" +USE_GETTEXT= yes +USE_GNOME= gtk20 +CONFIGURE_ARGS+= --enable-gtk +PLIST_SUB+= GTK="" +.else +PLIST_SUB+= GTK="@comment " +.endif + .if ${OSVERSION} < 500000 WITHOUT_GPAC= yes .endif @@ -80,8 +85,10 @@ post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|; \ s|-lpthread|${PTHREAD_LIBS}|' \ ${WRKSRC}/configure - @${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ - ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|; \ + s|$${libdir}/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ + ${WRKSRC}/Makefile \ + ${WRKSRC}/*/Makefile pre-install: @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \ |