aboutsummaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-10-15 04:48:23 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-10-15 04:48:23 +0000
commit1d920ad4475b669430c9508db7f19c18b5ce2425 (patch)
treeb2a0e6f1ecad5d3479ba4935d6a25379c5bf0128 /multimedia
parent2c170dd9270cd3227654715f7e5ddb65293ac64c (diff)
downloadports-1d920ad4475b669430c9508db7f19c18b5ce2425.tar.gz
ports-1d920ad4475b669430c9508db7f19c18b5ce2425.zip
Notes
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/Makefile1
-rw-r--r--multimedia/subtitleripper/Makefile108
-rw-r--r--multimedia/subtitleripper/distinfo2
-rw-r--r--multimedia/subtitleripper/pkg-descr18
4 files changed, 129 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile
index ef61565ca429..aaa35033044d 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -154,6 +154,7 @@
SUBDIR += splitmpg
SUBDIR += streamdvd
SUBDIR += subconv
+ SUBDIR += subtitleripper
SUBDIR += tcmplex-panteltje
SUBDIR += tkxanim
SUBDIR += tosvcd
diff --git a/multimedia/subtitleripper/Makefile b/multimedia/subtitleripper/Makefile
new file mode 100644
index 000000000000..e8c58dfdc069
--- /dev/null
+++ b/multimedia/subtitleripper/Makefile
@@ -0,0 +1,108 @@
+# New ports collection makefile for: Subtitle Ripper
+# Date created: Fri Oct 14 04:49:22 UTC 2005
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= subtitleripper
+DISTVERSION= 0.3-4
+CATEGORIES= multimedia
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= lioux@FreeBSD.org
+COMMENT= Convert DVD subtitles into text format (subrip srt) or VobSub format
+
+LIB_DEPENDS= netpbm:${PORTSDIR}/graphics/netpbm \
+ png:${PORTSDIR}/graphics/png
+RUN_DEPENDS= gocr:${PORTSDIR}/graphics/gocr \
+ xv:${PORTSDIR}/graphics/xv \
+ transcode:${PORTSDIR}/multimedia/transcode
+
+USE_GMAKE= yes
+USE_REINPLACE= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+DOC_FILES= \
+ ChangeLog \
+ README \
+ README.gocr \
+ README.srttool \
+ README.subtitle2pgm \
+ README.vobsub
+EXAMPLES_FILES= \
+ gocrfilter_en.sed \
+ gocrfilter_fr.sed \
+ gocrfilter_nl.sed \
+ gocrfilter_none.sed
+PROGRAM_FILES= \
+ srttool \
+ subtitle2pgm \
+ subtitle2vobsub \
+ vobsub2pgm
+SCRIPT_FILES= \
+ pgm2txt
+
+post-patch:
+ @${REINPLACE_CMD} -E \
+ -e 's|^(CC[[:space:]]*=).*$$|\1${CC}|' \
+ -e 's|^(COPT[[:space:]]*=).*$$|\1${CFLAGS}|' \
+ -e 's|^(INCLUDES[[:space:]]*:=).*$$|\1 -I${LOCALBASE}/include|' \
+ -e 's|^(LIBS[[:space:]]*:=).*$$|\1 -lm -L${LOCALBASE}/lib|' \
+ -e 's|-lppm|-lnetpbm|' \
+ ${BUILD_WRKSRC}/${MAKEFILE}
+ @${REINPLACE_CMD} -E \
+ -e 's|^(DB_PATH[[:space:]]*=).*$$|\1\$${HOME}/.db/|' \
+ -e 's|^(IMAGE_VIWER[[:space:]]*=).*$$|\1${X11BASE}/bin/xv|' \
+ -e 's|^(PATH_TO_LANGUAGE_FILTER[[:space:]]*=).*$$|\1${EXAMPLESDIR}/|' \
+ -e 's|(gocr[[:space:]]+)|${LOCALBASE}/bin/\1|' \
+ ${WRKSRC}/pgm2txt
+
+.include <bsd.port.pre.mk>
+
+##
+# PLIST
+##
+.ifndef(NOPORTDOCS)
+. for file in ${DOC_FILES}
+PORTDOCS+= ${file}
+. endfor
+.endif
+#
+PLIST_DIRS+= %%EXAMPLESDIR%%
+.for file in ${EXAMPLES_FILES}
+PLIST_FILES+= %%EXAMPLESDIR%%/${file}
+.endfor
+#
+.for file in ${PROGRAM_FILES}
+PLIST_FILES+= bin/${file}
+.endfor
+#
+.for file in ${SCRIPT_FILES}
+PLIST_FILES+= bin/${file}
+.endfor
+
+##
+# install
+##
+do-install:
+.ifndef(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+. for file in ${DOC_FILES}
+ @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+. endfor
+.endif
+ @${MKDIR} ${EXAMPLESDIR}
+.for file in ${EXAMPLES_FILES}
+ @${INSTALL_SCRIPT} ${WRKSRC}/${file} ${EXAMPLESDIR}
+.endfor
+.for file in ${PROGRAM_FILES}
+ @${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
+.endfor
+.for file in ${SCRIPT_FILES}
+ @${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin
+.endfor
+
+.include <bsd.port.post.mk>
diff --git a/multimedia/subtitleripper/distinfo b/multimedia/subtitleripper/distinfo
new file mode 100644
index 000000000000..6877e6651dfa
--- /dev/null
+++ b/multimedia/subtitleripper/distinfo
@@ -0,0 +1,2 @@
+MD5 (subtitleripper-0.3-4.tgz) = c0bd49a88f667c68c4430ad25bbed510
+SIZE (subtitleripper-0.3-4.tgz) = 47299
diff --git a/multimedia/subtitleripper/pkg-descr b/multimedia/subtitleripper/pkg-descr
new file mode 100644
index 000000000000..23d31b688a30
--- /dev/null
+++ b/multimedia/subtitleripper/pkg-descr
@@ -0,0 +1,18 @@
+[ excerpt from developer's www site ]
+
+If you want to convert DVD subtitles into text format (e.g. subrip
+format) or VobSub format this program could be useful for you.
+However, it is only one tiny tool that you need in the process of
+producing srt files. This software depends heavily on transcode
+for its input and is therefore part of the transcode package (see
+transcode's contrib directory). So, if you want to convert some
+subtitles, grap a copy of the lates transcode distribution.
+
+For srt file production the output of this program should be processed
+by some OCR software. Currently, I work with GOCR for this purpose.
+
+For VobSub output no other tools are required.
+
+WWW: http://subtitleripper.sourceforge.net/
+
+-- lioux@FreeBSD.org