From owner-freebsd-ports-bugs Tue Feb 4 18: 0:48 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72A4837B4B7 for ; Tue, 4 Feb 2003 18:00:36 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CA3D43F79 for ; Tue, 4 Feb 2003 18:00:34 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h1520XNS078400 for ; Tue, 4 Feb 2003 18:00:33 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h1520XcC078399; Tue, 4 Feb 2003 18:00:33 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DA3837B401; Tue, 4 Feb 2003 17:50:10 -0800 (PST) Received: from meitner.wh.uni-dortmund.de (meitner.wh.Uni-Dortmund.DE [129.217.129.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C17D43F93; Tue, 4 Feb 2003 17:50:09 -0800 (PST) (envelope-from lofi@lofi.dyndns.org) Received: from lofi.dyndns.org ([10.3.12.105]) by meitner.wh.uni-dortmund.de (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with ESMTP id h151o7c00388; Wed, 5 Feb 2003 02:50:07 +0100 Received: from lofi.dyndns.org (lofi@localhost [127.0.0.1]) by lofi.dyndns.org (8.12.6/8.12.6) with ESMTP id h151nr3L078873 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 5 Feb 2003 02:49:55 +0100 (CET) (envelope-from lofi@lofi.dyndns.org) Received: (from lofi@localhost) by lofi.dyndns.org (8.12.6/8.12.6/Submit) id h151nrP1078872; Wed, 5 Feb 2003 02:49:53 +0100 (CET) (envelope-from lofi) Message-Id: <200302050149.h151nrP1078872@lofi.dyndns.org> Date: Wed, 5 Feb 2003 02:49:53 +0100 (CET) From: Michael Nottebrock Reply-To: Michael Nottebrock To: FreeBSD-gnats-submit@FreeBSD.org Cc: lioux@FreeBSD.org, Christoph Sold X-Send-Pr-Version: 3.113 Subject: ports/47923: enable subtitleripper in graphics/transcode Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 >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 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