Commit dcb0719f authored by Urs Fleisch's avatar Urs Fleisch
Browse files

debian package works out of the box for Ubuntu hardy, jaunty and Debian lenny,...

debian package works out of the box for Ubuntu hardy, jaunty and Debian lenny, make noopt DEB_BUILD_OPTIONS work, fix lintian warnings
parent faa5fc67
#!/bin/sh
# Build Debian package for KDE 3.
if mv -T deb debian; then
dpkg-buildpackage -rfakeroot -tc
mv -T debian deb
# Build Debian package.
mkdir debian
cp deb/* debian/
if test $(lsb_release -is) = "Ubuntu"; then
if test $(lsb_release -cs) != "hardy"; then
sedcmds="s/^# Ubuntu://; s/^# KDE4://"
else
sedcmds="s/^# Ubuntu://; s/^# KDE3://"
fi
else
sedcmds="s/^# KDE3://"
fi
sed -i "$sedcmds" debian/control
dpkg-buildpackage -rfakeroot
......@@ -3,11 +3,12 @@ Section: kde
Priority: optional
Maintainer: Debian KDE Extras Team <pkg-kde-extras@lists.alioth.debian.org>
Uploaders: Ana Beatriz Guerrero Lopez <ana@debian.org>, Mark Purcell <msp@debian.org>
Build-Depends: debhelper (>= 5), xsltproc, docbook-xsl,
cmake, libqt4-dev, kdelibs5-dev,
libqt3-mt-dev, libqt3-i18n, kdelibs4-dev,
libid3-3.8.3-dev, libtunepimp-dev | libtunepimp3-dev, libflac++-dev,
libvorbis-dev, libtag1-dev, libmp4v2-dev,
Build-Depends: debhelper (>= 5), xsltproc, docbook-xsl, lsb-release,
# Ubuntu: libmp4v2-dev,
# KDE4: cmake, libqt4-dev, kdelibs5-dev,
# KDE3: libqt3-mt-dev, libqt3-i18n, kdelibs4-dev,
libid3-3.8.3-dev, libtunepimp-dev, libflac++-dev,
libvorbis-dev, libtag1-dev
Standards-Version: 3.8.0
Homepage: http://kid3.sourceforge.net/
Vcs-Svn: svn://svn.debian.org/pkg-kde/kde-extras/kid3/trunk/
......
#!/usr/bin/make -f
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS = -g3 -O0
CXXFLAGS = -g3 -O0
else
CFLAGS = -g -O2
CXXFLAGS = -g -O2
endif
pixmaps = $(CURDIR)/debian/kid3/usr/share/pixmaps
bindir = $(CURDIR)/debian/kid3/usr/bin
kdedocs = $(CURDIR)/debian/kid3/usr/share/doc/kde/HTML
......
#!/usr/bin/make -f
# For Ubuntu <=8.04 use this:
#DEB_CMAKE_PREFIX = /usr/lib/kde4
#DEB_CONFIG_INSTALL_DIR = $(DEB_CMAKE_PREFIX)/etc/kde4
#DEB_HTML_INSTALL_DIR = $(DEB_CMAKE_PREFIX)/share/doc/kde4/HTML
# For Ubuntu >=8.10, Debian use this:
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS = -g3 -O0
CXXFLAGS = -g3 -O0
else
CFLAGS = -g -O2
CXXFLAGS = -g -O2
endif
ifneq ($(filter hardy,$(shell lsb_release -cs)),)
DEB_CMAKE_PREFIX = /usr/lib/kde4
DEB_CONFIG_INSTALL_DIR = $(DEB_CMAKE_PREFIX)/etc/kde4
DEB_HTML_INSTALL_DIR = $(DEB_CMAKE_PREFIX)/share/doc/kde4/HTML
else
DEB_CMAKE_PREFIX ?= /usr
DEB_CONFIG_INSTALL_DIR ?= $(DEB_CMAKE_PREFIX)/share/kde4/config
DEB_HTML_INSTALL_DIR ?= $(DEB_CMAKE_PREFIX)/share/doc/kde/HTML
endif
DEB_CMAKE_EXTRA_FLAGS += \
-DCMAKE_BUILD_TYPE=Debian \
......
#!/usr/bin/make -f
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
CONFIGURE_DEBUG_OPTIONS = --enable-debug
endif
QMAKE = qmake-qt3
DEB_CONFIGURE_PREFIX = /usr
......@@ -12,7 +21,7 @@ kid3-qt3.build-stamp: kid3-qt/configure
mkdir kid3-qt3; \
cd kid3-qt3; \
../kid3-qt/configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
--prefix=$(DEB_CONFIGURE_PREFIX) --with-qmake=$(QMAKE); \
--prefix=$(DEB_CONFIGURE_PREFIX) --with-qmake=$(QMAKE) $(CONFIGURE_DEBUG_OPTIONS); \
cd ..; \
$(MAKE) -C kid3-qt3
......@@ -24,5 +33,6 @@ clean:
install: build
$(MAKE) -C kid3-qt3 install INSTALL_ROOT=$(CURDIR)/debian/kid3-qt
chmod 644 $(CURDIR)/debian/kid3-qt/usr/share/kid3-qt/translations/qt_*.qm
.PHONY: build clean install
#!/usr/bin/make -f
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
CONFIGURE_DEBUG_OPTIONS = --enable-debug
endif
QMAKE = qmake-qt4
DEB_CONFIGURE_PREFIX = /usr
......@@ -12,7 +21,7 @@ kid3-qt4.build-stamp: kid3-qt/configure
mkdir kid3-qt4; \
cd kid3-qt4; \
../kid3-qt/configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
--prefix=$(DEB_CONFIGURE_PREFIX) --with-qmake=$(QMAKE); \
--prefix=$(DEB_CONFIGURE_PREFIX) --with-qmake=$(QMAKE) $(CONFIGURE_DEBUG_OPTIONS); \
cd ..; \
$(MAKE) -C kid3-qt4
......
......@@ -3,13 +3,11 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# For Ubuntu <=8.04 use this:
#PACKAGE_MAKEFILES = kid3-kde3.mk kid3-qt3.mk
# For Ubuntu >=8.10, Debian use this:
ifneq ($(filter hardy lenny,$(shell lsb_release -cs)),)
PACKAGE_MAKEFILES = kid3-kde3.mk kid3-qt3.mk
else
PACKAGE_MAKEFILES = kid3-kde4.mk kid3-qt4.mk
INSTALL_DIR = install -p -d -o root -g root -m 755
INSTALL_FILE = install -p -o root -g root -m 644
endif
DEBVERSION:=$(shell head -n 1 debian/changelog \
| sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
......@@ -19,11 +17,6 @@ FILENAME := kid3_$(UPVERSION).orig.tar.gz
UPFILENAME := kid3-$(UPVERSION).tar.gz
URL = http://heanet.dl.sourceforge.net/kid3/$(UPFILENAME)
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g
endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment