DEB amarok: Switch to cmake.

Enable building of aKode engine and Konqueror sidebar.
Do not install broken kubuntu-media-amarok and install-mp3.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit a315d266d2)
pull/92/head
Slávek Banko 5 years ago
parent 2d431168ce
commit 7267ea146a
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1,14 +1,7 @@
debian/install-mp3 /usr/lib/amarok debian/install-mp3 /usr/lib/amarok
amarok/src/engine/xine/amarok_xine-mp3_install.desktop /usr/share/services amarok/src/engine/xine/amarok_xine-mp3_install.desktop /usr/share/services
Depend on amarok-xine | amarok-engine Depend on amarok-xine | amarok-engine
export KUBUNTU_DESKTOP_POT=extragear-multimedia_amarok
install debian/kubuntu-media-amarok and debian/amarok_play_audiocd.desktop in amarok.install install debian/kubuntu-media-amarok and debian/amarok_play_audiocd.desktop in amarok.install
chmod x debian/amarok/usr/bin/kubuntu-media-amarok in debian/rules in section chmod x debian/amarok/usr/bin/kubuntu-media-amarok in debian/rules in section
common-binary-post-install-arch:: common-binary-post-install-arch::
remove amarok-common.lintian, amarok.lintian remove amarok-common.lintian, amarok.lintian
make watch file actually work
#### due to removal of KDE 3 packages ####
remove tdemultimedia-dev, tdebase-dev from Build-Depends
remove amarok-konqsidebar, tdemultimedia-tdeio-plugins from Recommends
remove complete amarok-konqsidebar package

@ -0,0 +1,3 @@
debian/tmp/opt/trinity/share/services/amarok_aKode-engine.desktop
debian/tmp/opt/trinity/lib/trinity/libamarok_aKode-engine.so
debian/tmp/opt/trinity/lib/trinity/libamarok_aKode-engine.la

@ -0,0 +1,5 @@
debian/tmp/opt/trinity/lib/trinity/konqsidebar_universalamarok.la
debian/tmp/opt/trinity/lib/trinity/konqsidebar_universalamarok.so
debian/tmp/opt/trinity/share/apps/konqsidebartng/add/amarok.desktop
debian/tmp/opt/trinity/share/apps/konqsidebartng/entries/amarok.desktop
debian/tmp/opt/trinity/share/apps/konqsidebartng/kicker_entries/amarok.desktop

@ -4,24 +4,23 @@ Priority: optional
Maintainer: Timothy Pearson <kb9vqf@pearsoncomputing.net> Maintainer: Timothy Pearson <kb9vqf@pearsoncomputing.net>
XSBC-Original-Maintainer: Modestas Vainius <modestas@vainius.eu> XSBC-Original-Maintainer: Modestas Vainius <modestas@vainius.eu>
Uploaders: Ana Beatriz Guerrero Lopez <ana@debian.org> Uploaders: Ana Beatriz Guerrero Lopez <ana@debian.org>
Build-Depends: cdbs, debhelper (>= 7.0.50~), quilt, bzip2, Build-Depends: cdbs, debhelper (>= 7.0.50~), quilt, cmake, bzip2,
tdelibs14-trinity-dev, tdelibs14-trinity-dev, tdebase-trinity-dev,
libxine2-dev | libxine-dev, libdbus-tqt-1-dev, libakode-dev, libxine2-dev | libxine-dev, libdbus-tqt-1-dev,
libtag1-dev, libsqlite3-dev, libtag1-dev, libsqlite3-dev,
default-libmysqlclient-dev | libmysqlclient-dev, libpq-dev, default-libmysqlclient-dev | libmysqlclient-dev, libpq-dev,
libvisual-0.4-dev, libsdl1.2-dev, libvisual-0.4-dev, libsdl1.2-dev,
libifp-dev, libusb-dev, libgpod-nogtk-dev (>= 0.4.2) | libgpod-dev (>> 0.8.3-8), libnjb-dev, libmtp-dev, libmp4v2-dev, libifp-dev, libusb-dev, libgpod-nogtk-dev (>= 0.4.2) | libgpod-dev (>> 0.8.3-8), libnjb-dev, libmtp-dev, libmp4v2-dev,
ruby, ruby-dev, ruby, ruby-dev
automake, autoconf, libtool, libltdl-dev
Standards-Version: 3.8.4 Standards-Version: 3.8.4
Homepage: http://amarok.kde.org Homepage: http://amarok.kde.org
Package: amarok-trinity Package: amarok-trinity
Architecture: any Architecture: any
Depends: amarok-common-trinity (>= ${source:Version}), amarok-engine-xine-trinity (= ${binary:Version}) | amarok-engine-yauap-trinity (= ${binary:Version}), unzip, ${shlibs:Depends} Depends: amarok-common-trinity (>= ${source:Version}), amarok-engine-xine-trinity (= ${binary:Version}) | amarok-engines-trinity, unzip, ${shlibs:Depends}
Replaces: amarok-trinity (<< 4:14.0.0~) Replaces: amarok-trinity (<< 4:14.0.0~)
Breaks: amarok-trinity (<< 4:14.0.0~) Breaks: amarok-trinity (<< 4:14.0.0~)
Suggests: amarok-engines-trinity, moodbar, konqueror-trinity | www-browser, Suggests: amarok-konqsidebar-trinity, moodbar, konqueror-trinity | www-browser,
python-all, python-tqt, libqt0-ruby-trinity, libvisual-0.4-plugins python-all, python-tqt, libqt0-ruby-trinity, libvisual-0.4-plugins
Description: versatile and easy to use audio player for Trinity Description: versatile and easy to use audio player for Trinity
Amarok tries to be a little different, providing a simple drag and drop Amarok tries to be a little different, providing a simple drag and drop
@ -62,10 +61,18 @@ Description: architecture independent files for Amarok [Trinity]
and/or playlist2html scripts. You will also need python-qt3 for the and/or playlist2html scripts. You will also need python-qt3 for the
WebControl script. WebControl script.
Package: amarok-konqsidebar-trinity
Architecture: any
Depends: amarok-trinity (= ${binary:Version}), konqueror-trinity (>= 4:3.0.0), ${shlibs:Depends}
Description: Amarok sidebar for konqueror [Trinity]
This package contains the Amarok sidebar plugin for konqueror from Trinity.
The sidebar provides a convenient way for a user to control amarok directly
from the running konqueror instance.
Package: amarok-engines-trinity Package: amarok-engines-trinity
Architecture: all Architecture: all
Depends: amarok-engine-xine-trinity (>= ${source:Version}) Depends: amarok-engine-xine-trinity (>= ${source:Version}) | amarok-engine-akode-trinity (>= ${source:Version})
Recommends: amarok-engine-yauap-trinity (>= ${source:Version}) Recommends: amarok-engine-xine-trinity (>= ${source:Version}), amarok-engine-akode-trinity (>= ${source:Version}), amarok-engine-yauap-trinity (>= ${source:Version})
Replaces: amarok-engines-trinity (<< 4:14.0.0~) Replaces: amarok-engines-trinity (<< 4:14.0.0~)
Breaks: amarok-engines-trinity (<< 4:14.0.0~) Breaks: amarok-engines-trinity (<< 4:14.0.0~)
Description: output engines for the Amarok music player [Trinity] Description: output engines for the Amarok music player [Trinity]
@ -74,6 +81,14 @@ Description: output engines for the Amarok music player [Trinity]
generally can be used by most users. You can safely remove this metapackage generally can be used by most users. You can safely remove this metapackage
as you can remove the amarok-engine-$engine packages that you don't use. as you can remove the amarok-engine-$engine packages that you don't use.
Package: amarok-engine-akode-trinity
Architecture: any
Depends: ${shlibs:Depends}
Recommends: amarok-trinity (= ${binary:Version}), libakode2-mpeg
Description: aKode engine for the Amarok audio player, providing aRts support [Trinity]
This package provides the aKode engine for Amarok, which will output sound to
the TDE sound system, the aRts daemon.
Package: amarok-engine-xine-trinity Package: amarok-engine-xine-trinity
Architecture: any Architecture: any
Depends: ${shlibs:Depends} Depends: ${shlibs:Depends}

@ -1,116 +1,19 @@
#!/usr/bin/make -f #!/usr/bin/make -f
### CDBS INCLUDES
include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk
include debian/cdbs/debian-tde.mk include debian/cdbs/debian-tde.mk
DEB_CONFIGURE_INCLUDEDIR := /opt/trinity/include/tde DEB_CMAKE_EXTRA_FLAGS := \
DEB_CONFIGURE_MANDIR := /opt/trinity/share/man -DCMAKE_INSTALL_PREFIX="/opt/trinity" \
DEB_CONFIGURE_PREFIX := /opt/trinity -DCONFIG_INSTALL_DIR="/etc/trinity" \
DEB_CONFIGURE_INFODIR := /opt/trinity/share/info -DSYSCONF_INSTALL_DIR="/etc/trinity" \
-DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \
cdbs_configure_flags := --with-qt-dir=/usr/share/qt3 --with-xinerama $(cdbs_kde_enable_final) $(cdbs_kde_enable_debug) -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_VERBOSE_MAKEFILE="ON" \
-DCMAKE_SKIP_RPATH="OFF" \
-DBUILD_ALL="ON" \
-DWITH_ALL_OPTIONS="ON"
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \ DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
&& echo xz || echo bzip2) && echo xz || echo bzip2)
### VARIABLES
# Exempt amarok engines from being handled as proper public libraries
# by dh_makeshlibs
DEB_DH_MAKESHLIBS_ARGS_ALL = -Xlibamarok_\\w*-engine-trinity
export KUBUNTU_DESKTOP_POT=extragear-multimedia_amarok-trinity
DEB_CONFIGURE_EXTRA_FLAGS := --without-included-sqlite \
--disable-final \
--without-akode \
--without-gstreamer10 \
--without-libkarma \
--with-ifp \
--with-libgpod \
--with-libnjb \
--with-libmtp \
--with-mp4v2 \
--enable-mysql \
--enable-postgresql \
--with-yauap \
--prefix=/opt/trinity \
--with-extra-libs=/usr/lib/mesa
# Ship upstream README in amarok docs
DEB_INSTALL_DOCS_ALL =
DEB_INSTALL_DOCS_amarok-trinity = $(DEB_SRCDIR)/README
# Amarok engines should not auto-depend on amarok.
# Appropriate relationships are set manually in the control file.
DEB_DH_SHLIBDEPS_ARGS_amarok-engine-xine-trinity = -- -xamarok-trinity
DEB_DH_SHLIBDEPS_ARGS_amarok-engine-yauap-trinity = -- -xamarok-trinity
### Libtool and Automake updates
# Autoguess automake /usr/share subdirectory. Insure from failures
DEB_AUTOMAKE_SHARE_DIR = /usr/share/automake-$(shell automake --version | head -n 1 | sed 's/^automake (GNU automake) \([0-9]\+\.[0-9]\+\).*/\1/')
ifneq ($(words $(DEB_AUTOMAKE_SHARE_DIR)),1)
DEB_AUTOMAKE_SHARE_DIR =
endif
post-patches:: debian/stamp-automake
debian/stamp-automake:
touch debian/stamp-automake-started
if test -n "$(DEB_AUTOMAKE_SHARE_DIR)"; then \
for f in $(DEB_AUTOMAKE_SHARE_DIR)/*; do \
if test -f $$f && \
test -f $(DEB_SRCDIR)/admin/`basename $$f`; then \
cp -f $$f $(DEB_SRCDIR)/admin; \
fi; \
done; \
fi
$(MAKE) -C $(DEB_SRCDIR) -f admin/Makefile.common
touch $@
# Install ${curpkg}.install as lintian overrides
$(patsubst %,binary-install/%,$(DEB_PACKAGES))::
if test -e debian/$(cdbs_curpkg).lintian; then \
install -p -D -m644 debian/$(cdbs_curpkg).lintian \
debian/$(cdbs_curpkg)/usr/share/lintian/overrides/$(cdbs_curpkg); \
fi
clean::
if test -d $(DEB_SRCDIR) && test -f debian/stamp-automake-started; then \
cd $(DEB_SRCDIR); \
find . -name Makefile.in -print | \
xargs --no-run-if-empty rm -f; \
rm -f Makefile.am acinclude.m4 aclocal.m4 config.h.in \
configure configure.files configure.in stamp-h.in \
subdirs; \
fi
rm -f debian/stamp-automake*
binary-fixup/amarok-common-trinity::
# Fix permissions of some amarok scripts
chmod a+x \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/lyrics_astraweb/lyrics_astraweb.rb \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/playlist2html/Playlist.py \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/ruby_debug/debug.rb \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/templates/python_qt_template.py \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/templates/ruby_qt_template.rb \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/webcontrol/Playlist.py \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/webcontrol/RequestHandler.py
binary-post-install/amarok-common-trinity::
# Remove excess COPYING files from script directories
rm -f \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/lyrics_astraweb/COPYING \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/lyrics_lyrc/COPYING \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/score_default/COPYING \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/score_impulsive/COPYING
# Remove Mac OSX resource fork file
rm -f debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/ruby_lib/rubygems/._gem_commands.rb
### POST-INSTALL HACKING
common-binary-post-install-arch::
# Check for not installed files
dh_install --no-act --list-missing
chmod a+x debian/amarok-trinity/opt/trinity/lib/amarok/install-mp3
chmod +x debian/amarok-trinity/opt/trinity/bin/kubuntu-media-amarok
ln -s /opt/trinity/bin/amarokapp debian/amarok-trinity/opt/trinity/lib/amarok/amarokapp

@ -1,2 +0,0 @@
version=3
opts=pasv ftp://ftp.kde.org/pub/kde/stable/amarok/([0-9.]+)/src/amarok-([0-9.]+)\.tar\.bz2

@ -1,14 +1,7 @@
debian/install-mp3 /usr/lib/amarok debian/install-mp3 /usr/lib/amarok
amarok/src/engine/xine/amarok_xine-mp3_install.desktop /usr/share/services amarok/src/engine/xine/amarok_xine-mp3_install.desktop /usr/share/services
Depend on amarok-xine | amarok-engine Depend on amarok-xine | amarok-engine
export KUBUNTU_DESKTOP_POT=extragear-multimedia_amarok
install debian/kubuntu-media-amarok and debian/amarok_play_audiocd.desktop in amarok.install install debian/kubuntu-media-amarok and debian/amarok_play_audiocd.desktop in amarok.install
chmod x debian/amarok/usr/bin/kubuntu-media-amarok in debian/rules in section chmod x debian/amarok/usr/bin/kubuntu-media-amarok in debian/rules in section
common-binary-post-install-arch:: common-binary-post-install-arch::
remove amarok-common.lintian, amarok.lintian remove amarok-common.lintian, amarok.lintian
make watch file actually work
#### due to removal of KDE 3 packages ####
remove tdemultimedia-dev, tdebase-dev from Build-Depends
remove amarok-konqsidebar, tdemultimedia-tdeio-plugins from Recommends
remove complete amarok-konqsidebar package

@ -0,0 +1,3 @@
debian/tmp/opt/trinity/share/services/amarok_aKode-engine.desktop
debian/tmp/opt/trinity/lib/trinity/libamarok_aKode-engine.so
debian/tmp/opt/trinity/lib/trinity/libamarok_aKode-engine.la

@ -0,0 +1,5 @@
debian/tmp/opt/trinity/lib/trinity/konqsidebar_universalamarok.la
debian/tmp/opt/trinity/lib/trinity/konqsidebar_universalamarok.so
debian/tmp/opt/trinity/share/apps/konqsidebartng/add/amarok.desktop
debian/tmp/opt/trinity/share/apps/konqsidebartng/entries/amarok.desktop
debian/tmp/opt/trinity/share/apps/konqsidebartng/kicker_entries/amarok.desktop

@ -4,24 +4,23 @@ Priority: optional
Maintainer: Timothy Pearson <kb9vqf@pearsoncomputing.net> Maintainer: Timothy Pearson <kb9vqf@pearsoncomputing.net>
XSBC-Original-Maintainer: Modestas Vainius <modestas@vainius.eu> XSBC-Original-Maintainer: Modestas Vainius <modestas@vainius.eu>
Uploaders: Ana Beatriz Guerrero Lopez <ana@debian.org> Uploaders: Ana Beatriz Guerrero Lopez <ana@debian.org>
Build-Depends: cdbs, debhelper (>= 7.0.50~), quilt, bzip2, Build-Depends: cdbs, debhelper (>= 7.0.50~), quilt, cmake, bzip2,
tdelibs14-trinity-dev, tdelibs14-trinity-dev, tdebase-trinity-dev,
libxine2-dev | libxine-dev, libdbus-tqt-1-dev, libakode-dev, libxine2-dev | libxine-dev, libdbus-tqt-1-dev,
libtag1-dev, libsqlite3-dev, libtag1-dev, libsqlite3-dev,
default-libmysqlclient-dev | libmysqlclient-dev, libpq-dev, default-libmysqlclient-dev | libmysqlclient-dev, libpq-dev,
libvisual-0.4-dev, libsdl1.2-dev, libvisual-0.4-dev, libsdl1.2-dev,
libifp-dev, libusb-dev, libgpod-nogtk-dev (>= 0.4.2) | libgpod-dev (>> 0.8.3-8), libnjb-dev, libmtp-dev, libmp4v2-dev, libifp-dev, libusb-dev, libgpod-nogtk-dev (>= 0.4.2) | libgpod-dev (>> 0.8.3-8), libnjb-dev, libmtp-dev, libmp4v2-dev,
ruby, ruby-dev, ruby, ruby-dev
automake, autoconf, libtool, libltdl-dev
Standards-Version: 3.8.4 Standards-Version: 3.8.4
Homepage: http://amarok.kde.org Homepage: http://amarok.kde.org
Package: amarok-trinity Package: amarok-trinity
Architecture: any Architecture: any
Depends: amarok-common-trinity (>= ${source:Version}), amarok-engine-xine-trinity (= ${binary:Version}) | amarok-engine-yauap-trinity (= ${binary:Version}), unzip, ${shlibs:Depends} Depends: amarok-common-trinity (>= ${source:Version}), amarok-engine-xine-trinity (= ${binary:Version}) | amarok-engines-trinity, unzip, ${shlibs:Depends}
Replaces: amarok-kde3 (<< 4:14.0.0~), amarok-trinity (<< 4:14.0.0~) Replaces: amarok-kde3 (<< 4:14.0.0~), amarok-trinity (<< 4:14.0.0~)
Breaks: amarok-kde3 (<< 4:14.0.0~), amarok-trinity (<< 4:14.0.0~) Breaks: amarok-kde3 (<< 4:14.0.0~), amarok-trinity (<< 4:14.0.0~)
Suggests: amarok-engines-trinity, moodbar, konqueror-trinity | www-browser, Suggests: amarok-konqsidebar-trinity, moodbar, konqueror-trinity | www-browser,
python-all, python-tqt, libqt0-ruby-trinity, libvisual-0.4-plugins python-all, python-tqt, libqt0-ruby-trinity, libvisual-0.4-plugins
Description: versatile and easy to use audio player for Trinity Description: versatile and easy to use audio player for Trinity
Amarok tries to be a little different, providing a simple drag and drop Amarok tries to be a little different, providing a simple drag and drop
@ -62,10 +61,18 @@ Description: architecture independent files for Amarok [Trinity]
and/or playlist2html scripts. You will also need python-qt3 for the and/or playlist2html scripts. You will also need python-qt3 for the
WebControl script. WebControl script.
Package: amarok-konqsidebar-trinity
Architecture: any
Depends: amarok-trinity (= ${binary:Version}), konqueror-trinity (>= 4:3.0.0), ${shlibs:Depends}
Description: Amarok sidebar for konqueror [Trinity]
This package contains the Amarok sidebar plugin for konqueror from Trinity.
The sidebar provides a convenient way for a user to control amarok directly
from the running konqueror instance.
Package: amarok-engines-trinity Package: amarok-engines-trinity
Architecture: all Architecture: all
Depends: amarok-engine-xine-trinity (>= ${source:Version}) Depends: amarok-engine-xine-trinity (>= ${source:Version}) | amarok-engine-akode-trinity (>= ${source:Version})
Recommends: amarok-engine-yauap-trinity (>= ${source:Version}) Recommends: amarok-engine-xine-trinity (>= ${source:Version}), amarok-engine-akode-trinity (>= ${source:Version}), amarok-engine-yauap-trinity (>= ${source:Version})
Replaces: amarok-engines-kde3 (<< 4:14.0.0~), amarok-engines-trinity (<< 4:14.0.0~) Replaces: amarok-engines-kde3 (<< 4:14.0.0~), amarok-engines-trinity (<< 4:14.0.0~)
Breaks: amarok-engines-kde3 (<< 4:14.0.0~), amarok-engines-trinity (<< 4:14.0.0~) Breaks: amarok-engines-kde3 (<< 4:14.0.0~), amarok-engines-trinity (<< 4:14.0.0~)
Description: output engines for the Amarok music player [Trinity] Description: output engines for the Amarok music player [Trinity]
@ -74,6 +81,14 @@ Description: output engines for the Amarok music player [Trinity]
generally can be used by most users. You can safely remove this metapackage generally can be used by most users. You can safely remove this metapackage
as you can remove the amarok-engine-$engine packages that you don't use. as you can remove the amarok-engine-$engine packages that you don't use.
Package: amarok-engine-akode-trinity
Architecture: any
Depends: ${shlibs:Depends}
Recommends: amarok-trinity (= ${binary:Version}), libakode2-mpeg
Description: aKode engine for the Amarok audio player, providing aRts support [Trinity]
This package provides the aKode engine for Amarok, which will output sound to
the TDE sound system, the aRts daemon.
Package: amarok-engine-xine-trinity Package: amarok-engine-xine-trinity
Architecture: any Architecture: any
Depends: ${shlibs:Depends} Depends: ${shlibs:Depends}

@ -1,116 +1,19 @@
#!/usr/bin/make -f #!/usr/bin/make -f
### CDBS INCLUDES
include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk
include debian/cdbs/debian-tde.mk include debian/cdbs/debian-tde.mk
DEB_CONFIGURE_INCLUDEDIR := /opt/trinity/include/tde DEB_CMAKE_EXTRA_FLAGS := \
DEB_CONFIGURE_MANDIR := /opt/trinity/share/man -DCMAKE_INSTALL_PREFIX="/opt/trinity" \
DEB_CONFIGURE_PREFIX := /opt/trinity -DCONFIG_INSTALL_DIR="/etc/trinity" \
DEB_CONFIGURE_INFODIR := /opt/trinity/share/info -DSYSCONF_INSTALL_DIR="/etc/trinity" \
-DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \
cdbs_configure_flags := --with-qt-dir=/usr/share/qt3 --with-xinerama $(cdbs_kde_enable_final) $(cdbs_kde_enable_debug) -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_VERBOSE_MAKEFILE="ON" \
-DCMAKE_SKIP_RPATH="OFF" \
-DBUILD_ALL="ON" \
-DWITH_ALL_OPTIONS="ON"
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \ DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
&& echo xz || echo bzip2) && echo xz || echo bzip2)
### VARIABLES
# Exempt amarok engines from being handled as proper public libraries
# by dh_makeshlibs
DEB_DH_MAKESHLIBS_ARGS_ALL = -Xlibamarok_\\w*-engine-trinity
export KUBUNTU_DESKTOP_POT=extragear-multimedia_amarok-trinity
DEB_CONFIGURE_EXTRA_FLAGS := --without-included-sqlite \
--disable-final \
--without-akode \
--without-gstreamer10 \
--without-libkarma \
--with-ifp \
--with-libgpod \
--with-libnjb \
--with-libmtp \
--with-mp4v2 \
--enable-mysql \
--enable-postgresql \
--with-yauap \
--prefix=/opt/trinity \
--with-extra-libs=/usr/lib/mesa
# Ship upstream README in amarok docs
DEB_INSTALL_DOCS_ALL =
DEB_INSTALL_DOCS_amarok-trinity = $(DEB_SRCDIR)/README
# Amarok engines should not auto-depend on amarok.
# Appropriate relationships are set manually in the control file.
DEB_DH_SHLIBDEPS_ARGS_amarok-engine-xine-trinity = -- -xamarok-trinity
DEB_DH_SHLIBDEPS_ARGS_amarok-engine-yauap-trinity = -- -xamarok-trinity
### Libtool and Automake updates
# Autoguess automake /usr/share subdirectory. Insure from failures
DEB_AUTOMAKE_SHARE_DIR = /usr/share/automake-$(shell automake --version | head -n 1 | sed 's/^automake (GNU automake) \([0-9]\+\.[0-9]\+\).*/\1/')
ifneq ($(words $(DEB_AUTOMAKE_SHARE_DIR)),1)
DEB_AUTOMAKE_SHARE_DIR =
endif
post-patches:: debian/stamp-automake
debian/stamp-automake:
touch debian/stamp-automake-started
if test -n "$(DEB_AUTOMAKE_SHARE_DIR)"; then \
for f in $(DEB_AUTOMAKE_SHARE_DIR)/*; do \
if test -f $$f && \
test -f $(DEB_SRCDIR)/admin/`basename $$f`; then \
cp -f $$f $(DEB_SRCDIR)/admin; \
fi; \
done; \
fi
$(MAKE) -C $(DEB_SRCDIR) -f admin/Makefile.common
touch $@
# Install ${curpkg}.install as lintian overrides
$(patsubst %,binary-install/%,$(DEB_PACKAGES))::
if test -e debian/$(cdbs_curpkg).lintian; then \
install -p -D -m644 debian/$(cdbs_curpkg).lintian \
debian/$(cdbs_curpkg)/usr/share/lintian/overrides/$(cdbs_curpkg); \
fi
clean::
if test -d $(DEB_SRCDIR) && test -f debian/stamp-automake-started; then \
cd $(DEB_SRCDIR); \
find . -name Makefile.in -print | \
xargs --no-run-if-empty rm -f; \
rm -f Makefile.am acinclude.m4 aclocal.m4 config.h.in \
configure configure.files configure.in stamp-h.in \
subdirs; \
fi
rm -f debian/stamp-automake*
binary-fixup/amarok-common-trinity::
# Fix permissions of some amarok scripts
chmod a+x \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/lyrics_astraweb/lyrics_astraweb.rb \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/playlist2html/Playlist.py \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/ruby_debug/debug.rb \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/templates/python_qt_template.py \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/templates/ruby_qt_template.rb \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/webcontrol/Playlist.py \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/webcontrol/RequestHandler.py
binary-post-install/amarok-common-trinity::
# Remove excess COPYING files from script directories
rm -f \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/lyrics_astraweb/COPYING \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/lyrics_lyrc/COPYING \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/score_default/COPYING \
debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/scripts/score_impulsive/COPYING
# Remove Mac OSX resource fork file
rm -f debian/$(cdbs_curpkg)/opt/trinity/share/apps/amarok/ruby_lib/rubygems/._gem_commands.rb
### POST-INSTALL HACKING
common-binary-post-install-arch::
# Check for not installed files
dh_install --no-act --list-missing
chmod a+x debian/amarok-trinity/opt/trinity/lib/amarok/install-mp3
chmod +x debian/amarok-trinity/opt/trinity/bin/kubuntu-media-amarok
ln -s /opt/trinity/bin/amarokapp debian/amarok-trinity/opt/trinity/lib/amarok/amarokapp

@ -1,2 +0,0 @@
version=3
opts=pasv ftp://ftp.kde.org/pub/kde/stable/amarok/([0-9.]+)/src/amarok-([0-9.]+)\.tar\.bz2
Loading…
Cancel
Save