Date: Wed, 5 Feb 2003 02:49:53 +0100 (CET) From: Michael Nottebrock <lofi@lofi.dyndns.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: lioux@FreeBSD.org, Christoph Sold <cheasy@web.de> Subject: ports/47923: enable subtitleripper in graphics/transcode Message-ID: <200302050149.h151nrP1078872@lofi.dyndns.org>
next in thread | raw e-mail | index | archive | help
>Number: 47923 >Category: ports >Synopsis: enable subtitleripper in graphics/transcode >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Feb 04 18:00:33 PST 2003 >Closed-Date: >Last-Modified: >Originator: Michael Nottebrock >Release: FreeBSD 5.0-RELEASE i386 >Organization: >Environment: System: FreeBSD lofi.dyndns.org 5.0-RELEASE FreeBSD 5.0-RELEASE #0: Mon Feb 3 13:19:13 CET 2003 root@lofi.dyndns.org:/usr/obj/usr/src/sys/LOFI i386 >Description: This patch adds a switch to optionally build and install subtitleripper, which comes with transcode. It is needed by multimedia/dvdrip. The new switch is WITH_SUBRIP. Noticed by: Christoph Sold <cheasy@web.de> >How-To-Repeat: >Fix: diff -urN transcode-orig/Makefile transcode/Makefile --- transcode-orig/Makefile Tue Feb 4 06:03:43 2003 +++ transcode/Makefile Wed Feb 5 02:35:23 2003 @@ -201,6 +201,12 @@ PLIST_SUB+= WITH_MJPEG="@comment " .endif +.if defined(WITH_SUBRIP) +PLIST_SUB+= WITH_SUBRIP="" +.else +PLIST_SUB+= WITH_SUBRIP="@comment " +.endif + pre-everything:: .if !defined(WITH_OPTIMIZED_CFLAGS) @${ECHO_MSG} @@ -272,7 +278,11 @@ .endif .if !defined(WITH_MJPEG) @${ECHO_MSG} - @${ECHO_MSG} "You can enable support for the MJPEG toolkit by defining WITH_MJPEG" + @${ECHO_MSG} "You can enable support for the MJPEG toolkit by defining WITH_MJPEG." +.endif +.if !defined(WITH_SUBRIP) + @${ECHO_MSG} + @${ECHO_MSG} "You can enable compilation of subtitleripper by defining WITH_SUBRIP." .endif post-patch: @@ -300,6 +310,12 @@ @${LN} -sf ${LOCALBASE}/lib/libxvidcore.so \ ${PREFIX}/lib/transcode/libxvidcore.so .endif + +.if defined(WITH_SUBRIP) + @cd ${WRKSRC}/contrib/subrip; ${GMAKE} clean all; \ + ${INSTALL_PROGRAM} srttool subtitle2pgm subtitle2vobsub ${PREFIX}/bin +.endif + @${RM} ${PREFIX}/lib/transcode/*.la .include <bsd.port.post.mk> diff -urN transcode-orig/files/patch-contrib:subrip:Makefile transcode/files/patch-contrib:subrip:Makefile --- transcode-orig/files/patch-contrib:subrip:Makefile Thu Jan 1 01:00:00 1970 +++ transcode/files/patch-contrib:subrip:Makefile Wed Feb 5 02:24:01 2003 @@ -0,0 +1,13 @@ +--- contrib/subrip/Makefile.orig Wed Feb 5 02:23:45 2003 ++++ contrib/subrip/Makefile Wed Feb 5 02:23:56 2003 +@@ -8,8 +8,8 @@ + INCLUDES := + + ### enable ppm support ### +-DEFINES += -D_HAVE_LIB_PPM_ +-LIBS += -lppm ++#DEFINES += -D_HAVE_LIB_PPM_ ++#LIBS += -lppm + + ### enable zlib support ### + DEFINES += -D_HAVE_ZLIB_ diff -urN transcode-orig/pkg-plist transcode/pkg-plist --- transcode-orig/pkg-plist Tue Feb 4 06:03:43 2003 +++ transcode/pkg-plist Wed Feb 5 02:22:23 2003 @@ -2,6 +2,9 @@ bin/avimerge bin/avisplit bin/avisync +%%WITH_SUBRIP%%bin/srttool +%%WITH_SUBRIP%%bin/subtitle2pgm +%%WITH_SUBRIP%%bin/subtitle2vobsub bin/tccat bin/tcdecode bin/tcdemux >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302050149.h151nrP1078872>