Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2007 02:00:29 +0500
From:      Volkov <support@nolty.ru>
To:        multimedia@FreeBSD.org
Subject:   port multimedia/transcode update
Message-ID:  <47434AED.4080907@nolty.ru>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------010207060403020103060005
Content-Type: text/plain; charset=windows-1251; format=flowed
Content-Transfer-Encoding: 7bit

Hello!

I want to share my patch (Makefile) for FreeBSD port 
multimedia/transcode 1.0.4_1

This patch prevents transcode to be compiled with X when WITHOUT_X11 is set.
Transcode 1.0.4 compiles and works perfectly  without heavy X11 libraries.

I also introduced variable WITHOUT_DVDREAD. It is used to prevent 
libdvdread to be installed as a dependency. According to the 'configure' 
script, it is not required.

This patch is very useful when transcode is used on a server.

--
Best regards,
Andrey Volkov

Russia,
BSD User Group Ekaterinburg
http://bsdekaterinburg.ru/


--------------010207060403020103060005
Content-Type: text/x-diff;
 name="Makefile.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Makefile.diff"

--- Makefile.orig	2007-11-21 01:50:54.000000000 +0500
+++ Makefile	2007-11-21 01:51:14.000000000 +0500
@@ -14,8 +14,7 @@
 MAINTAINER=	multimedia@FreeBSD.org
 COMMENT=	A text-console utility for video stream processing
 
-LIB_DEPENDS=	dvdread.5:${PORTSDIR}/multimedia/libdvdread \
-		jpeg.9:${PORTSDIR}/graphics/jpeg \
+LIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg \
 		mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 \
 		avcodec.1:${PORTSDIR}/multimedia/ffmpeg
 BUILD_DEPENDS=	iconv:${PORTSDIR}/converters/libiconv
@@ -24,7 +23,6 @@
 FAKEDIR=	${WRKDIR}/fake
 PLIST=		${WRKDIR}/plist
 USE_GETOPT_LONG=yes
-USE_XLIB=	yes
 USE_GMAKE=	yes
 USE_LDCONFIG=	yes
 WANT_SDL=	yes
@@ -35,7 +33,6 @@
 		SDL_CONFIG="${SDL_CONFIG}"
 CONFIGURE_ARGS+=	--with-libavcodec-includes=${LOCALBASE}/include/ffmpeg \
 			--with-libavcodec-libs=${LOCALBASE}/lib \
-			--with-libdvdread-prefix=${LOCALBASE} \
 			--with-libiconv-prefix=${LOCALBASE} \
 			--enable-oss \
 			--enable-gtk=no
@@ -64,6 +61,18 @@
 CONFIGURE_ARGS+=	--enable-bktr
 .endif
 
+.if !defined(WITHOUT_X11)
+USE_XLIB=	yes
+CONFIGURE_ARGS+=	--with-x
+.endif
+
+.if !defined(WITHOUT_DVDREAD)
+LIB_DEPENDS+=	dvdread.5:${PORTSDIR}/multimedia/libdvdread
+CONFIGURE_ARGS+=	--with-libdvdread-prefix=${LOCALBASE} --enable-libdvdread
+.else
+CONFIGURE_ARGS+=	--enable-libdvdread=no
+.endif
+
 .if defined(WITH_VORBIS) || exists(${LOCALBASE}/lib/libvorbis.so)
 LIB_DEPENDS+=	vorbis.4:${PORTSDIR}/audio/libvorbis
 CONFIGURE_ARGS+=	--with-vorbis-prefix=${LOCALBASE} --enable-vorbis
@@ -178,6 +187,14 @@
 	@${ECHO_MSG}
 	@${ECHO_MSG} "You can enable extra optimizations by defining WITH_OPTIMIZED_CFLAGS."
 .endif
+.if !defined(WITHOUT_X11)
+	@${ECHO_MSG}
+	@${ECHO_MSG} "You can disable X modules by defining WITHOUT_X11."
+.endif
+.if !defined(WITHOUT_DVDREAD)
+	@${ECHO_MSG}
+	@${ECHO_MSG} "You can disable dvdread modules by defining WITHOUT_DVDREAD."
+.endif
 .if !defined(WITH_FREETYPE)
 	@${ECHO_MSG}
 	@${ECHO_MSG} "You can enable text/subtitler modules by defining WITH_FREETYPE."

--------------010207060403020103060005--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47434AED.4080907>