summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2019-12-13 14:20:46 +0100
committerDavid Seifert <soap@gentoo.org>2019-12-13 14:20:46 +0100
commit2f5ff6aee0647703cc08d45c9d570beacd30b1ea (patch)
tree37cde20e1c55d99d3a6ed10ff0c184fd8bed1fa2 /media-video
parentmedia-video/atomicparsley: Port to EAPI 7 (diff)
downloadgentoo-2f5ff6aee0647703cc08d45c9d570beacd30b1ea.tar.gz
gentoo-2f5ff6aee0647703cc08d45c9d570beacd30b1ea.tar.bz2
gentoo-2f5ff6aee0647703cc08d45c9d570beacd30b1ea.zip
media-video/subtitler-yuv: Port to EAPI 7
Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r--media-video/subtitler-yuv/files/subtitler-yuv-0.6.5-fix-build-system.patch55
-rw-r--r--media-video/subtitler-yuv/subtitler-yuv-0.6.5.ebuild28
2 files changed, 66 insertions, 17 deletions
diff --git a/media-video/subtitler-yuv/files/subtitler-yuv-0.6.5-fix-build-system.patch b/media-video/subtitler-yuv/files/subtitler-yuv-0.6.5-fix-build-system.patch
new file mode 100644
index 000000000000..da5ec86e40b3
--- /dev/null
+++ b/media-video/subtitler-yuv/files/subtitler-yuv-0.6.5-fix-build-system.patch
@@ -0,0 +1,55 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,28 +1,7 @@
+ #need -O2 for io in beep.c
+-CFLAGS = -O2 -Wall
+-
+-#CC = gcc
+-#CC=/usr/local/bin/gcc
+-
+-SRC1 = \
+-subtitler-yuv.c \
+-color_processor.c \
+-frame_list.c \
+-load_font.c \
+-load_pictures.c \
+-load_ppml_file.c \
+-object_list.c \
+-parser.c \
+-text_processing.c \
+-external_programs.c \
+-x11.c
+-
+-SRC2 = \
+-process_wave.c
+-
++CFLAGS += -Wall
+
+ OBJECT1 = \
+-subtitler-yuv.o \
+ color_processor.o \
+ frame_list.o \
+ load_font.o \
+@@ -34,20 +13,11 @@
+ external_programs.o \
+ x11.o
+
+-OBJECT2 = \
+-process_wave.o
+-
+-LIBRARY1 = -lm -lXt -lXpm -lXaw
+-LIBRARY2 =
++LDLIBS = -lm -lXt -lX11 -lXaw
+
+ #$(XLIB) $(XAWLIB) $(XTOOLLIB) $(XLIB)
+
+-all:
+- gcc $(CFLAGS) -c $(SRC1)
+- gcc $(CFLAGS) -c $(SRC2)
+-
+- gcc -o subtitler-yuv -L/usr/X11R6/lib/ $(OBJECT1) $(LIBRARY1)
+- gcc -o process_wave -L/usr/X11R6/lib/ $(OBJECT2) $(LIBRARY2)
++subtitler-yuv: $(OBJECT1)
+
+ # DEPENDENCIES
+
diff --git a/media-video/subtitler-yuv/subtitler-yuv-0.6.5.ebuild b/media-video/subtitler-yuv/subtitler-yuv-0.6.5.ebuild
index d1e7738874fe..37e21cbb86a2 100644
--- a/media-video/subtitler-yuv/subtitler-yuv-0.6.5.ebuild
+++ b/media-video/subtitler-yuv/subtitler-yuv-0.6.5.ebuild
@@ -1,41 +1,35 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=4
+EAPI=7
+
inherit toolchain-funcs
-DESCRIPTION="for mjpegtools for adding subtitles, pictures, and effects embedded in the picture"
+DESCRIPTION="for mjpegtools for adding subtitles, pictures & effects embedded in the picture"
HOMEPAGE="http://panteltje.com/panteltje/subtitles/"
SRC_URI="mirror://gentoo/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
-IUSE=""
-RDEPEND="x11-libs/libX11
+RDEPEND="
+ x11-libs/libX11
x11-libs/libXaw
x11-libs/libXt"
DEPEND="${RDEPEND}"
-src_prepare() {
- sed -i \
- -e '/^CFLAGS/s:= -O2:+=:' \
- -e '/CFLAGS/s:gcc:$(CC):' \
- -e 's:gcc -o:$(CC) $(LDFLAGS) -o:' \
- -e 's:-L/usr/X11R6/lib/::' \
- -e 's:-lXpm:-lX11:' \
- Makefile || die
-}
+PATCHES=( "${FILESDIR}"/${P}-fix-build-system.patch )
-src_compile() {
+src_configure() {
tc-export CC
- emake
}
src_install() {
dobin ${PN}
- dodoc CHANGES HOWTO_USE_THIS README*
+ einstalldocs
+ dodoc HOWTO_USE_THIS
+
insinto /usr/share/${PN}
doins *.{ppm,ppml,zip}
}