Switch amarok, kmplayer, ksplash-engine-moodin,
tde-systemsettings, tdesudo and tdmtheme to CMake.
Backport patches to tdesudo to resolve FTBFS.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 08dc2d3a90
)
pull/158/head
parent
746eb0ba7a
commit
97b2476606
@ -1,40 +1,47 @@
|
||||
# Contributor: e1z0 <justinas at eofnet dot lt>
|
||||
|
||||
pkgname=tde-amarok
|
||||
pkgver=14.0.5
|
||||
pkgver=14.0.10
|
||||
pkgrel=1
|
||||
pkgdesc="TDE Amarok"
|
||||
arch=('i686' 'x86_64')
|
||||
url='http://scm.trinitydesktop.org/scm/git/applications/amarok'
|
||||
url='https://scm.trinitydesktop.org/scm/git/applications/amarok'
|
||||
license=('GPL')
|
||||
groups=('tde-extra')
|
||||
depends=('tde-tdebase' 'taglib')
|
||||
depends=('tde-tdebase' 'taglib' 'xine-lib')
|
||||
makedepends=('pkgconfig' 'cmake')
|
||||
#provides=('tde-amarok')
|
||||
#conflicts=('tde-amarok')
|
||||
#replaces=('tde-amarok')
|
||||
options=('staticlibs' 'libtool' '!strip')
|
||||
source=("http://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/applications/amarok-R${pkgver}.tar.bz2")
|
||||
md5sums=('0351b0d4ee54ae266e2a3ec47cd3accf')
|
||||
source=("https://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/main/applications/amarok-trinity-${pkgver}.tar.xz")
|
||||
md5sums=('fab4ed783d4027711e4aaca098bb04b1')
|
||||
# install=''
|
||||
|
||||
[ -n "$TDEDIR" ] || TDEDIR=/opt/trinity
|
||||
|
||||
build() {
|
||||
## Generate config files and update with autoreconf
|
||||
cd ${srcdir}/applications/${pkgname#*-}
|
||||
cd $srcdir
|
||||
msg "Creating out-of-source build directory: ${srcdir}/build"
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
msg "Running make -f admin/Makefile.common ...."
|
||||
make -f admin/Makefile.common
|
||||
export PKG_CONFIG_PATH=${TDEDIR}/lib/pkgconfig:${PKG_CONFIG_PATH}
|
||||
|
||||
## configure
|
||||
msg "Configuring - ${pkgname}..."
|
||||
msg "Starting cmake..."
|
||||
cmake ${srcdir}/${pkgname#*-}-trinity-${pkgver} \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=${TDEDIR} \
|
||||
-DBUILD_ALL=ON \
|
||||
-DWITH_EMBEDDED_SQLITE=ON \
|
||||
-DWITH_OPENGL=ON
|
||||
|
||||
./configure --prefix=${TDEDIR}
|
||||
make $NUMJOBS
|
||||
msg "Building - ${pkgname#*-}..."
|
||||
make $NUMJOBS
|
||||
}
|
||||
|
||||
package() {
|
||||
msg "Packaging - $pkgname-$pkgver"
|
||||
cd ${srcdir}/applications/${pkgname#*-}
|
||||
|
||||
cd ${srcdir}/build
|
||||
make -j1 DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
@ -1,35 +0,0 @@
|
||||
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:
|
@ -1,56 +1,46 @@
|
||||
# Contributor: e1z0 <justinas at eofnet dot lt>
|
||||
|
||||
pkgname=tde-ksplash-engine-moodin
|
||||
pkgver=14.0.5
|
||||
pkgver=14.0.10
|
||||
pkgrel=1
|
||||
pkgdesc="TDE KSplash Engine Moodin"
|
||||
arch=('i686' 'x86_64')
|
||||
url='http://scm.trinitydesktop.org/scm/git/applications/ksplash-engine-moodin'
|
||||
url='https://scm.trinitydesktop.org/scm/git/applications/ksplash-engine-moodin'
|
||||
license=('GPL')
|
||||
groups=('tde-extra')
|
||||
depends=('tde-tdebase')
|
||||
makedepends=('pkgconfig' 'automake')
|
||||
makedepends=('pkgconfig' 'cmake')
|
||||
#provides=('ksplash-engine-moodin')
|
||||
#conflicts=('ksplash-engine-moodin')
|
||||
#replaces=('ksplash-engine-moodin')
|
||||
options=('staticlibs' 'libtool' '!strip')
|
||||
source=("http://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/applications/ksplash-engine-moodin-R${pkgver}.tar.bz2")
|
||||
md5sums=('fb580976442327d34fbfcd2fcab63e9e')
|
||||
source=("https://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/main/applications/ksplash-engine-moodin-trinity-${pkgver}.tar.xz")
|
||||
md5sums=('3a10d2089ed4e165ff74994e9efbf262')
|
||||
# install=''
|
||||
|
||||
build() {
|
||||
# old ruby1.8 path
|
||||
export PATH=/opt/ruby1.8/bin:$PATH
|
||||
## Generate config files and update with autoreconf
|
||||
cd ${srcdir}/applications/${pkgname#*-}
|
||||
|
||||
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
|
||||
[ -n "$TDEDIR" ] || TDEDIR=/opt/trinity
|
||||
|
||||
## 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
|
||||
build() {
|
||||
cd $srcdir
|
||||
msg "Creating out-of-source build directory: ${srcdir}/build"
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
export PKG_CONFIG_PATH=${TDEDIR}/lib/pkgconfig:${PKG_CONFIG_PATH}
|
||||
|
||||
msg "Starting cmake..."
|
||||
cmake ${srcdir}/${pkgname#*-}-trinity-${pkgver} \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=${TDEDIR} \
|
||||
-DBUILD_ALL=ON \
|
||||
-DWITH_ALL_OPTIONS=ON
|
||||
|
||||
msg "Building - ${pkgname#*-}..."
|
||||
make $NUMJOBS
|
||||
}
|
||||
|
||||
package() {
|
||||
msg "Packaging - $pkgname-$pkgver"
|
||||
cd ${srcdir}/applications/${pkgname#*-} # use for libtool
|
||||
|
||||
make -j1 DESTDIR="${pkgdir}" install
|
||||
msg "Packaging - $pkgname-$pkgver"
|
||||
cd ${srcdir}/build
|
||||
make -j1 DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
@ -1,56 +1,49 @@
|
||||
# Contributor: e1z0 <justinas at eofnet dot lt>
|
||||
|
||||
pkgname=tde-tdesudo
|
||||
pkgver=14.0.5
|
||||
pkgver=14.0.10
|
||||
pkgrel=1
|
||||
pkgdesc="TDE Sudo"
|
||||
arch=('i686' 'x86_64')
|
||||
url='http://scm.trinitydesktop.org/scm/git/applications/tdesudo'
|
||||
url='https://scm.trinitydesktop.org/scm/git/applications/tdesudo'
|
||||
license=('GPL')
|
||||
groups=('tde-extra')
|
||||
depends=('tde-tdebase')
|
||||
makedepends=('pkgconfig' 'automake')
|
||||
makedepends=('pkgconfig' 'cmake')
|
||||
#provides=('tdesudo')
|
||||
#conflicts=('tdesudo')
|
||||
#replaces=('tdesudo')
|
||||
options=('staticlibs' 'libtool' '!strip')
|
||||
source=("http://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/applications/tdesudo-R${pkgver}.tar.bz2")
|
||||
md5sums=('8f86b7b497a9575979b27fd2911b0106')
|
||||
source=("https://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/main/applications/tdesudo-trinity-${pkgver}.tar.xz"
|
||||
'bp000-1136b8150f.diff')
|
||||
md5sums=('ff1b28acd12998c216e4256ca94f795b'
|
||||
'6ba546544bfab644bbbba972f31a137b')
|
||||
# install=''
|
||||
|
||||
[ -n "$TDEDIR" ] || TDEDIR=/opt/trinity
|
||||
|
||||
build() {
|
||||
# old ruby1.8 path
|
||||
export PATH=/opt/ruby1.8/bin:$PATH
|
||||
## Generate config files and update with autoreconf
|
||||
cd ${srcdir}/applications/${pkgname#*-}
|
||||
|
||||
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
|
||||
cd ${srcdir}/${pkgname#*-}-trinity-${pkgver}
|
||||
patch -p1 < $srcdir/bp000-1136b8150f.diff
|
||||
|
||||
msg "Creating out-of-source build directory: ${srcdir}/build"
|
||||
mkdir -p $srcdir/build
|
||||
cd $srcdir/build
|
||||
|
||||
#export PKG_CONFIG_PATH=${TDEDIR}/lib/pkgconfig:${PKG_CONFIG_PATH}
|
||||
|
||||
msg "Starting cmake..."
|
||||
cmake ${srcdir}/${pkgname#*-}-trinity-${pkgver} \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=${TDEDIR} \
|
||||
-DBUILD_ALL=ON
|
||||
|
||||
msg "Building - ${pkgname#*-}..."
|
||||
make $NUMJOBS
|
||||
}
|
||||
|
||||
package() {
|
||||
msg "Packaging - $pkgname-$pkgver"
|
||||
cd ${srcdir}/applications/${pkgname#*-} # use for libtool
|
||||
|
||||
make -j1 DESTDIR="${pkgdir}" install
|
||||
msg "Packaging - $pkgname-$pkgver"
|
||||
cd ${srcdir}/build
|
||||
make -j1 DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
@ -0,0 +1,31 @@
|
||||
From 1136b8150f58e909eaa094d991dcefa81b8f6a60 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= <francois.andriot@free.fr>
|
||||
Date: Tue, 11 May 2021 19:45:01 +0200
|
||||
Subject: Fix ftbfs on Fedora 34
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
error: ordered comparison of pointer with integer zero ('char*' and 'int')
|
||||
|
||||
Signed-off-by: François Andriot <francois.andriot@free.fr>
|
||||
---
|
||||
tdesudo/tdesudo.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tdesudo/tdesudo.cpp b/tdesudo/tdesudo.cpp
|
||||
index c255d0f..83158ab 100644
|
||||
--- a/tdesudo/tdesudo.cpp
|
||||
+++ b/tdesudo/tdesudo.cpp
|
||||
@@ -205,7 +205,7 @@ TdeSudo::TdeSudo(TQWidget *parent, const char *name,const TQString& icon, const
|
||||
chmod(m_tmpname.ascii(),0644);
|
||||
|
||||
QCStringList output;
|
||||
- while (fgets(buf, 1024, f) > 0)
|
||||
+ while (fgets(buf, 1024, f) != NULL)
|
||||
output += buf;
|
||||
if (pclose(f) < 0) {
|
||||
kdError() << k_lineinfo << "Could not run xauth.\n";
|
||||
--
|
||||
cgit v1.2.1
|
||||
|
@ -1,56 +1,42 @@
|
||||
# Contributor: e1z0 <justinas at eofnet dot lt>
|
||||
|
||||
pkgname=tde-tdmtheme
|
||||
pkgver=14.0.5
|
||||
pkgver=14.0.10
|
||||
pkgrel=1
|
||||
pkgdesc="TDM Theme"
|
||||
arch=('i686' 'x86_64')
|
||||
url='http://scm.trinitydesktop.org/scm/git/applications/tdmtheme'
|
||||
url='https://scm.trinitydesktop.org/scm/git/applications/tdmtheme'
|
||||
license=('GPL')
|
||||
groups=('tde-extra')
|
||||
depends=('tde-tdebase')
|
||||
makedepends=('pkgconfig' 'automake')
|
||||
makedepends=('pkgconfig' 'cmake')
|
||||
#provides=('tdmtheme')
|
||||
#conflicts=('tdmtheme')
|
||||
#replaces=('tdmtheme')
|
||||
options=('staticlibs' 'libtool' '!strip')
|
||||
source=("http://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/applications/tdmtheme-R${pkgver}.tar.bz2")
|
||||
md5sums=('dc202459e80fde7b469ef1cfb684803c')
|
||||
source=("https://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/main/applications/tdmtheme-trinity-${pkgver}.tar.xz")
|
||||
md5sums=('b085fa2792024415fb2174633875adbe')
|
||||
# install=''
|
||||
|
||||
build() {
|
||||
# old ruby1.8 path
|
||||
export PATH=/opt/ruby1.8/bin:$PATH
|
||||
## Generate config files and update with autoreconf
|
||||
cd ${srcdir}/applications/${pkgname#*-}
|
||||
|
||||
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
|
||||
[ -n "$TDEDIR" ] || TDEDIR=/opt/trinity
|
||||
|
||||
## 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
|
||||
build() {
|
||||
msg "Creating out-of-source build directory: ${srcdir}/build"
|
||||
mkdir -p $srcdir/build
|
||||
cd $srcdir/build
|
||||
|
||||
msg "Starting cmake..."
|
||||
cmake ${srcdir}/${pkgname#*-}-trinity-${pkgver} \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=${TDEDIR} \
|
||||
-DBUILD_ALL=ON
|
||||
|
||||
msg "Building - ${pkgname#*-}..."
|
||||
make $NUMJOBS
|
||||
}
|
||||
|
||||
package() {
|
||||
msg "Packaging - $pkgname-$pkgver"
|
||||
cd ${srcdir}/applications/${pkgname#*-} # use for libtool
|
||||
|
||||
make -j1 DESTDIR="${pkgdir}" install
|
||||
msg "Packaging - $pkgname-$pkgver"
|
||||
cd ${srcdir}/build
|
||||
make -j1 DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
Loading…
Reference in new issue