transmission: build with cmake
This commit is contained in:
parent
0f9d14a48a
commit
8c092078bf
3 changed files with 2536 additions and 39 deletions
2462
srcpkgs/transmission/patches/add-missing-files.patch
Normal file
2462
srcpkgs/transmission/patches/add-missing-files.patch
Normal file
File diff suppressed because it is too large
Load diff
62
srcpkgs/transmission/patches/fix-makefiles.patch
Normal file
62
srcpkgs/transmission/patches/fix-makefiles.patch
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
From 642db5762b1f8e9d2bb8527b153b6c47d856cb9d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mike Gelfand <mikedld@mikedld.com>
|
||||||
|
Date: Sat, 23 May 2020 01:39:36 +0300
|
||||||
|
Subject: [PATCH] Add missing files that fail build from tarball
|
||||||
|
|
||||||
|
Fixes: #1246
|
||||||
|
---
|
||||||
|
libtransmission/Makefile.am | 3 +++
|
||||||
|
macosx/Makefile.am | 2 ++
|
||||||
|
po/LINGUAS | 1 +
|
||||||
|
third-party/Makefile.am | 3 +++
|
||||||
|
4 files changed, 9 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/libtransmission/Makefile.am b/libtransmission/Makefile.am
|
||||||
|
index 0885fab0d..d9a61c12f 100644
|
||||||
|
--- libtransmission/Makefile.am
|
||||||
|
+++ libtransmission/Makefile.am
|
||||||
|
@@ -316,3 +316,6 @@ watchdir_generic_test_CPPFLAGS = -DWATCHDIR_TEST_FORCE_GENERIC $(AM_CPPFLAGS)
|
||||||
|
rename_test_SOURCES = rename-test.c $(TEST_SOURCES)
|
||||||
|
rename_test_LDADD = ${apps_ldadd}
|
||||||
|
rename_test_LDFLAGS = ${apps_ldflags}
|
||||||
|
+
|
||||||
|
+EXTRA_DIST = \
|
||||||
|
+ subprocess-test.cmd
|
||||||
|
diff --git a/macosx/Makefile.am b/macosx/Makefile.am
|
||||||
|
index 27abb77b6..5a6fec9ef 100644
|
||||||
|
--- macosx/Makefile.am
|
||||||
|
+++ macosx/Makefile.am
|
||||||
|
@@ -95,6 +95,8 @@ EXTRA_DIST = \
|
||||||
|
InfoTabButtonBack.m \
|
||||||
|
InfoTabButtonCell.h \
|
||||||
|
InfoTabButtonCell.m \
|
||||||
|
+ InfoTabMatrix.h \
|
||||||
|
+ InfoTabMatrix.m \
|
||||||
|
InfoTextField.h \
|
||||||
|
InfoTextField.m \
|
||||||
|
InfoActivityViewController.h \
|
||||||
|
diff --git a/po/LINGUAS b/po/LINGUAS
|
||||||
|
index 08629cd1b..6b3145a37 100644
|
||||||
|
--- po/LINGUAS
|
||||||
|
+++ po/LINGUAS
|
||||||
|
@@ -68,6 +68,7 @@ pa
|
||||||
|
pl
|
||||||
|
pt
|
||||||
|
pt_BR
|
||||||
|
+pt_PT
|
||||||
|
ro
|
||||||
|
ru
|
||||||
|
si
|
||||||
|
diff --git a/third-party/Makefile.am b/third-party/Makefile.am
|
||||||
|
index 9f66878d9..33df96d42 100644
|
||||||
|
--- third-party/Makefile.am
|
||||||
|
+++ third-party/Makefile.am
|
||||||
|
@@ -22,5 +22,8 @@ SUBDIRS = \
|
||||||
|
$(UTP_DIR)
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
+ curl \
|
||||||
|
+ libevent \
|
||||||
|
+ openssl \
|
||||||
|
macosx-libevent-config.h \
|
||||||
|
macosx-libevent-event-config.h
|
|
@ -1,11 +1,11 @@
|
||||||
# Template file for 'transmission'
|
# Template file for 'transmission'
|
||||||
pkgname=transmission
|
pkgname=transmission
|
||||||
version=3.00
|
version=3.00
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=cmake
|
||||||
configure_args="--enable-nls --enable-cli --enable-daemon --enable-utp
|
configure_args="-DENABLE_CLI=ON"
|
||||||
--without-systemd-daemon"
|
hostmakedepends="autoconf automake intltool glib-devel libtool pkg-config
|
||||||
hostmakedepends="intltool pkg-config qt5-host-tools"
|
qt5-host-tools qt5-qmake"
|
||||||
makedepends="dbus-glib-devel gtk+3-devel libcurl-devel libevent-devel
|
makedepends="dbus-glib-devel gtk+3-devel libcurl-devel libevent-devel
|
||||||
qt5-tools-devel"
|
qt5-tools-devel"
|
||||||
short_desc="Fast, easy and free BitTorrent client"
|
short_desc="Fast, easy and free BitTorrent client"
|
||||||
|
@ -37,35 +37,6 @@ post_configure() {
|
||||||
-e "/#include <inttypes.h>.*/i #include <stdio.h> /* off_t */"
|
-e "/#include <inttypes.h>.*/i #include <stdio.h> /* off_t */"
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
|
||||||
make CXXFLAGS="${CXXFLAGS} -std=c++17" LDFLAGS="${LDFLAGS}" ${makejobs}
|
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
|
||||||
# Build the Qt frontend
|
|
||||||
cd qt
|
|
||||||
qmake-qt5 MOC=moc-qt5 QMAKE_CXXFLAGS="${CXXFLAGS}" QMAKE_LFLAGS="${LDFLAGS}" qtr.pro
|
|
||||||
lrelease-qt5 translations/*.ts
|
|
||||||
make ${makejobs} CXXFLAGS="${CXXFLAGS} -fPIC -std=c++17" LDFLAGS="${LDFLAGS}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
# Install CLI tools, daemon and web client
|
|
||||||
for dir in cli daemon utils web; do
|
|
||||||
make -C ${dir} DESTDIR=${DESTDIR} install
|
|
||||||
done
|
|
||||||
|
|
||||||
# Install GTK+ frontend
|
|
||||||
make -C gtk DESTDIR=${DESTDIR} install
|
|
||||||
make -C po DESTDIR=${DESTDIR} install
|
|
||||||
|
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
|
||||||
# Install Qt frontend
|
|
||||||
make -C qt INSTALL_ROOT=${DESTDIR}/usr install
|
|
||||||
vmkdir usr/share/qt5/translations
|
|
||||||
vcopy qt/translations/*.qm usr/share/qt5/translations
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
rm -f ${DESTDIR}/usr/share/${pkgname}/web/LICENSE
|
rm -f ${DESTDIR}/usr/share/${pkgname}/web/LICENSE
|
||||||
vsv transmission-daemon
|
vsv transmission-daemon
|
||||||
|
@ -78,10 +49,12 @@ transmission-qt_package() {
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/transmission-qt
|
vmove usr/bin/transmission-qt
|
||||||
vmove usr/share/man/man1/transmission-qt.1
|
vmove usr/share/man/man1/transmission-qt.1
|
||||||
vmove usr/share/qt5/translations
|
vmove usr/share/transmission/translations
|
||||||
sed -i '/Icon=/s/transmission/&-qt/' ${wrksrc}/qt/transmission-qt.desktop
|
sed -i '/Icon=/s/transmission/&-qt/' ${DESTDIR}/usr/share/applications/transmission-qt.desktop
|
||||||
vinstall ${wrksrc}/qt/icons/transmission.png 644 usr/share/pixmaps transmission-qt.png
|
vinstall ${wrksrc}/qt/icons/transmission.png 644 usr/share/pixmaps transmission-qt.png
|
||||||
vinstall ${wrksrc}/qt/transmission-qt.desktop 644 usr/share/applications
|
vinstall ${wrksrc}/gtk/icons/hicolor_apps_scalable_transmission.svg \
|
||||||
|
644 usr/share/icons/hicolor/scalable/apps transmission-qt.svg
|
||||||
|
vmove usr/share/applications/transmission-qt.desktop
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,8 +65,8 @@ transmission-gtk_package() {
|
||||||
vmove usr/bin/transmission-gtk
|
vmove usr/bin/transmission-gtk
|
||||||
vmove usr/share/man/man1/transmission-gtk.1
|
vmove usr/share/man/man1/transmission-gtk.1
|
||||||
vmove usr/share/icons/hicolor
|
vmove usr/share/icons/hicolor
|
||||||
vmove usr/share/applications
|
vmove usr/share/applications/transmission-gtk.desktop
|
||||||
vmove usr/share/pixmaps
|
vinstall ${wrksrc}/qt/icons/transmission.png 644 usr/share/pixmaps
|
||||||
# This install path seems to be used with musl libc
|
# This install path seems to be used with musl libc
|
||||||
if [ -d ${DESTDIR}/usr/lib/locale ]; then
|
if [ -d ${DESTDIR}/usr/lib/locale ]; then
|
||||||
mv ${DESTDIR}/usr/lib/locale ${DESTDIR}/usr/share
|
mv ${DESTDIR}/usr/lib/locale ${DESTDIR}/usr/share
|
||||||
|
|
Loading…
Reference in a new issue