summaryrefslogtreecommitdiffstats
path: root/arch/tde-extra/tde-kmplayer
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-09-20 17:08:32 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-09-29 09:27:25 +0200
commit0ac2945504b4df71d0ac6777b2c956cd4921ad08 (patch)
tree301eb3b41ae6f4e78a8b5611040ba8d9c13af6dd /arch/tde-extra/tde-kmplayer
parent318e997cf4d25c5d2e7b4261a6017b653c1fa93c (diff)
downloadtde-packaging-0ac2945504b4df71d0ac6777b2c956cd4921ad08.tar.gz
tde-packaging-0ac2945504b4df71d0ac6777b2c956cd4921ad08.zip
ArchLinux: Take a newer state of pkgbuilds from Michael Manley
Clean old long-term not maintained pkgbuilds. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 018f946ee70600993c60a74046f417ca05bdb41b)
Diffstat (limited to 'arch/tde-extra/tde-kmplayer')
-rw-r--r--arch/tde-extra/tde-kmplayer/PKGBUILD60
-rw-r--r--arch/tde-extra/tde-kmplayer/callback-stub-fix.patch35
2 files changed, 95 insertions, 0 deletions
diff --git a/arch/tde-extra/tde-kmplayer/PKGBUILD b/arch/tde-extra/tde-kmplayer/PKGBUILD
new file mode 100644
index 000000000..a5b3bdcc5
--- /dev/null
+++ b/arch/tde-extra/tde-kmplayer/PKGBUILD
@@ -0,0 +1,60 @@
+# Maintainer: Michael Manley <mmanley@nasutek.com>
+# Contributor: David C. Rankin <drankinatty at gmail dot com>
+
+pkgname=tde-kmplayer
+pkgver=14.0.5
+pkgrel=1
+pkgdesc="TDE KMPlayer"
+arch=('i686' 'x86_64')
+url='http://scm.trinitydesktop.org/scm/git/applications/kmplayer'
+license=('GPL')
+groups=('tde-extra')
+depends=('tde-tdebase' 'dbus-glib')
+makedepends=('pkgconfig' 'cmake' 'mplayer')
+#provides=('kmplayer')
+#conflicts=('kmplayer')
+#replaces=('kmplayer')
+options=('staticlibs' 'libtool' '!strip')
+source=("http://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/applications/kmplayer-R${pkgver}.tar.bz2"
+ "callback-stub-fix.patch")
+md5sums=('968e2116b333ea646ce00fd2ab2038a8'
+ '31ed0b0814a3855c65541c058ac91a68')
+# install=''
+
+build() {
+ ## Generate config files and update with autoreconf
+ cd ${srcdir}/applications/${pkgname#*-}
+
+ msg "Patching for callback stub header..."
+ patch -p1 -i ${srcdir}/callback-stub-fix.patch
+
+ msg "Copying system libtool files...."
+ cp /usr/share/aclocal/libtool.m4 ./admin/libtool.m4.in
+ cp /usr/share/libtool/build-aux/ltmain.sh ./admin/ltmain.sh
+
+ msg "Running make -f admin/Makefile.common ...."
+ make -f admin/Makefile.common
+
+ ## configure
+ msg "Configuring - ${pkgname}..."
+ CFLAGS="${CFLAGS} -fpermissive" \
+ CXXFLAGS="${CXXFLAGS} -fpermissive" \
+ ./configure \
+ --prefix=${TDEDIR} \
+ --with-qt-dir=${QTDIR} \
+ --with-qt-includes=${QTDIR}/include \
+ --with-qt-libraries=${QTDIR}/lib \
+ --sysconfdir=${TDEDIR}/etc \
+ --localstatedir=/var \
+ --enable-closure
+
+ msg "Building - ${pkgname#*-}..."
+make $NUMJOBS
+}
+
+package() {
+msg "Packaging - $pkgname-$pkgver"
+ cd ${srcdir}/applications/${pkgname#*-} # use for libtool
+
+make -j1 DESTDIR="${pkgdir}" install
+}
diff --git a/arch/tde-extra/tde-kmplayer/callback-stub-fix.patch b/arch/tde-extra/tde-kmplayer/callback-stub-fix.patch
new file mode 100644
index 000000000..a2069defc
--- /dev/null
+++ b/arch/tde-extra/tde-kmplayer/callback-stub-fix.patch
@@ -0,0 +1,35 @@
+diff -Naur kmplayer-orig/src/Makefile.am kmplayer/src/Makefile.am
+--- kmplayer-orig/src/Makefile.am 2018-08-25 10:16:53.000000000 +0000
++++ kmplayer/src/Makefile.am 2019-01-31 21:26:36.000000000 +0000
+@@ -27,6 +27,7 @@
+ kmplayer_la_SOURCES= main.cpp kmplayerapp.cpp kmplayertvsource.cpp kmplayerbroadcast.cpp kmplayervdr.cpp
+ kmplayer_la_LIBADD= libkmplayercommon.la $(LIB_XTEST)
+ kmplayer_la_LDFLAGS= -module $(KDE_PLUGIN) $(LIB_QT)
++kmplayer_la_COMPILE_FIRST= kmplayer_backend_stub.h
+
+ EXTRA_PROGRAMS = kxineplayer kxvplayer kgstplayer
+ if include_kxineplayer
+@@ -48,14 +49,17 @@
+ kxineplayer_CFLAGS= $(CFLAGS_XINE)
+ kxineplayer_LDFLAGS= $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
+ kxineplayer_SOURCES= xineplayer.cpp
++kxineplayer_COMPILE_FIRST= kmplayer_callback_stub.h
+
+ kxvplayer_LDADD= libkmplayerbackend.la -lDCOP -lXv
+ kxvplayer_LDFLAGS= $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
+ kxvplayer_SOURCES= xvplayer.cpp
++kxvplayer_COMPILE_FIRST= kmplayer_callback_stub.h
+
+ kgstplayer_LDADD= libkmplayerbackend.la $(LIB_GST) $(LIB_GST_PLUGINS) $(LIB_GST_OVERLAY) -lDCOP
+ kgstplayer_LDFLAGS= $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
+ kgstplayer_SOURCES= gstplayer.cpp
++kgstplayer_COMPILE_FIRST= kmplayer_callback_stub.h
+
+ knpplayer_LDADD= $(LIBNSPR_LIBS)
+ knpplayer_LDFLAGS= -lX11 -lgmodule-2.0
+@@ -79,3 +83,5 @@
+
+ messages: rc.cpp
+ $(XGETTEXT) *.cpp -o $(podir)/kmplayer.pot
++
++.NOTPARALLEL: