Contents of /branches/branch-xorg18/extras/subtitleripper/subtitleripper-0.3.4-r3.smage2
Parent Directory | Revision Log
Revision 5192 -
(show annotations)
(download)
Tue Apr 6 21:54:10 2010 UTC (14 years, 5 months ago) by niro
File size: 1899 byte(s)
Tue Apr 6 21:54:10 2010 UTC (14 years, 5 months ago) by niro
File size: 1899 byte(s)
created branch 'branch-xorg18'
1 | # $Id$ |
2 | |
3 | PNAME="subtitleripper" |
4 | PVER="0.3.4" |
5 | PBUILD="r3" |
6 | |
7 | PCATEGORIE="media-video" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="DVD Subtitle Ripper for Linux." |
11 | HOMEPAGE="http://subtitleripper.sourceforge.net/" |
12 | |
13 | DEPEND=">= media-libs/netpbm-10.48 |
14 | >= media-libs/libpng-1.2 |
15 | >= sys-libs/zlib-1.2 |
16 | >= app-text/gocr-0.45" |
17 | |
18 | SRCFILE="${PNAME}-${PVER:0:3}-${PVER:4}.tgz" |
19 | SRCDIR="${BUILDDIR}/${PNAME}" |
20 | |
21 | sminclude mtools |
22 | |
23 | SRC_URI=( |
24 | sourceforge://${PNAME}/${SRCFILE} |
25 | mirror://${PNAME}/${SRCFILE} |
26 | mirror://${PNAME}/${PNAME}-${PVER}-linkingorder.patch |
27 | mirror://${PNAME}/${PNAME}-${PVER}-glibc210.patch |
28 | mirror://${PNAME}/${PNAME}-${PVER}-libpng.patch |
29 | ) |
30 | |
31 | # fake it |
32 | UPDATE="echo ${PVER}" |
33 | |
34 | src_prepare() |
35 | { |
36 | munpack ${SRCFILE} || die |
37 | cd ${SRCDIR} |
38 | |
39 | # removes dependency on libppm, seems to be broken atm |
40 | sed -i -e 's|^\(.*lppm.*\)$|#\1|' \ |
41 | -e 's|^\(.*D_HAVE_LIB_PPM.*\)$|#\1|' Makefile || die |
42 | |
43 | # ppm library is libnetppm |
44 | sed -i "s:ppm:netpbm:g" Makefile || die |
45 | # fix ppm includes |
46 | sed -i "s:#include <ppm.h>:#include <netpbm/ppm.h>:g" spudec.c subtitle2pgm.c || die |
47 | |
48 | # change gocrfilters location to /usr/share/subtitleripper |
49 | sed -i 's:~/sourceforge/subtitleripper/src/:/usr/share/subtitleripper:' pgm2txt || die |
50 | |
51 | # correct linking order to fix builds with --as-needed |
52 | mpatch ${PNAME}-${PVER}-linkingorder.patch || die |
53 | |
54 | # fix compilation against newer libpng |
55 | mpatch ${PNAME}-${PVER}-libpng.patch || die |
56 | |
57 | # fix compilation against newer glibc |
58 | mpatch ${PNAME}-${PVER}-glibc210.patch || die |
59 | } |
60 | |
61 | src_compile() |
62 | { |
63 | cd ${SRCDIR} |
64 | mmake || die |
65 | } |
66 | |
67 | src_install () |
68 | { |
69 | cd ${SRCDIR} |
70 | |
71 | minstalldir /usr/share/subtitleripper || die |
72 | |
73 | minstallexec pgm2txt || die |
74 | minstallexec srttool || die |
75 | minstallexec subtitle2pgm || die |
76 | minstallexec subtitle2vobsub || die |
77 | minstallexec vobsub2pgm || die |
78 | |
79 | minstallfile gocrfilter_\*.sed /usr/share/subtitleripper || die |
80 | |
81 | minstalldocs AUTHORS ChangeLog Copyright LICENSE README || die |
82 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |