diff options
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/subtitleripper/DESCR | 6 | ||||
-rw-r--r-- | textproc/subtitleripper/Makefile | 31 | ||||
-rw-r--r-- | textproc/subtitleripper/PLIST | 15 | ||||
-rw-r--r-- | textproc/subtitleripper/distinfo | 5 | ||||
-rw-r--r-- | textproc/subtitleripper/patches/patch-aa | 15 |
5 files changed, 72 insertions, 0 deletions
diff --git a/textproc/subtitleripper/DESCR b/textproc/subtitleripper/DESCR new file mode 100644 index 00000000000..b8801a0ec8d --- /dev/null +++ b/textproc/subtitleripper/DESCR @@ -0,0 +1,6 @@ +This package extracts DVD subtitles from a subtitle stream and +converts it to pgm or ppm images or into VobSub format. The main +purpose is to provide the required input to OCR software to convert +the subtitle images into ASCII text. Please note that the conversion +into ASCII is not part of this package but requires an OCR program +like gocr. diff --git a/textproc/subtitleripper/Makefile b/textproc/subtitleripper/Makefile new file mode 100644 index 00000000000..519576618cc --- /dev/null +++ b/textproc/subtitleripper/Makefile @@ -0,0 +1,31 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/06/23 07:20:55 mrg Exp $ +# + +DISTNAME= subtitleripper-0.3-1 +CATEGORIES= textproc graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=subtitleripper/} +EXTRACT_SUFX= .tgz +WRKSRC= ${WRKDIR}/subtitleripper + +MAINTAINER= tech-pkg@netbsd.org +HOMEPAGE= http://sourceforge.net/projects/subtitleripper/ +COMMENT= sub title ripping program + +DEPENDS+= gocr-[0-9]*:../../textproc/gocr + +USE_BUILDLINK2= yes +USE_GMAKE= yes + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/pgm2txt ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/subtitle2pgm ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/srttool ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/subtitle2vobsub ${PREFIX}/bin + ${INSTALL_DATA_DIR} ${LOCALBASE}/share/doc/subtitleripper + cd ${WRKSRC}; ${INSTALL_DATA} README README.gocr README.srttool \ + README.subtitle2pgm README.vobsub gocrfilter_en.sed \ + gocrfilter_fr.sed gocrfilter_nl.sed gocrfilter_none.sed \ + ${LOCALBASE}/share/doc/subtitleripper + +.include "../../graphics/netpbm/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/subtitleripper/PLIST b/textproc/subtitleripper/PLIST new file mode 100644 index 00000000000..0586a9530fa --- /dev/null +++ b/textproc/subtitleripper/PLIST @@ -0,0 +1,15 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/06/23 07:20:55 mrg Exp $ +bin/pgm2txt +bin/srttool +bin/subtitle2pgm +bin/subtitle2vobsub +share/doc/subtitleripper/README +share/doc/subtitleripper/README.gocr +share/doc/subtitleripper/README.srttool +share/doc/subtitleripper/README.subtitle2pgm +share/doc/subtitleripper/README.vobsub +share/doc/subtitleripper/gocrfilter_en.sed +share/doc/subtitleripper/gocrfilter_fr.sed +share/doc/subtitleripper/gocrfilter_nl.sed +share/doc/subtitleripper/gocrfilter_none.sed +@dirrm share/doc/subtitleripper diff --git a/textproc/subtitleripper/distinfo b/textproc/subtitleripper/distinfo new file mode 100644 index 00000000000..294941c641a --- /dev/null +++ b/textproc/subtitleripper/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/06/23 07:20:54 mrg Exp $ + +SHA1 (subtitleripper-0.3-1.tgz) = d34aac07e834fd462c89484db8fcb27bebcb8ef5 +Size (subtitleripper-0.3-1.tgz) = 42382 bytes +SHA1 (patch-aa) = c4db981ea9591e2be215637521486f8d977bedd8 diff --git a/textproc/subtitleripper/patches/patch-aa b/textproc/subtitleripper/patches/patch-aa new file mode 100644 index 00000000000..cb9d887343f --- /dev/null +++ b/textproc/subtitleripper/patches/patch-aa @@ -0,0 +1,15 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/06/23 07:20:55 mrg Exp $ + +--- Makefile.orig 2003-06-21 05:16:27.000000000 +1000 ++++ Makefile 2003-06-21 05:18:45.000000000 +1000 +@@ -4,8 +4,8 @@ + + # use always: + DEFINES := +-LIBS := -lm +-INCLUDES := ++LIBS := ${BUILDLINK_LDFLAGS} -lm ++INCLUDES := ${BUILDLINK_CPPFLAGS} + + ### enable ppm support ### + DEFINES += -D_HAVE_LIB_PPM_ |