summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@math.sfu.ca>2014-02-01 18:26:27 -0800
committerKevin Mitchell <kevmitch@math.sfu.ca>2014-02-01 20:43:53 -0800
commit21b84f6d0e56646ecb6c60f7538d32409ec38753 (patch)
treeaf063fcd9093b25a8eb27096194fc729a34f30d1
parentb83761f7d9fc0fff88b7e782658a498060cff12a (diff)
downloadmpv-build-21b84f6d0e56646ecb6c60f7538d32409ec38753.tar.bz2
mpv-build-21b84f6d0e56646ecb6c60f7538d32409ec38753.tar.xz
debian changelog hack
put dummy UNRELEASED entry in changelog before build with dch -v "version" "localbuild". This has the "papercut" of repeating the "local build" bullet in the same entry each time the package is built.
-rw-r--r--debian/changelog13
-rw-r--r--debian/control2
-rwxr-xr-xdebian/rules7
3 files changed, 18 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index e7475cc..011ebdf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,11 +1,20 @@
-mpv (1:0.3.3-1) UNRELEASED; urgency=medium
+mpv (0:0.3.4) stable; urgency=medium
+
+ * changelog hack: add an "UNRELEASED" changelog entry by the
+ current user when the package is built with the currently checked
+ out mpv version. This has the "papercut" of repeating the
+ "local build" bullet in the same entry each time the package is built.
+
+ -- Kevin Mitchell <kevmitch@trapezoid> Sat, 01 Feb 2014 19:09:11 -0800
+
+mpv (0:0.3.3-1) stable; urgency=medium
* enable libx264 and libmp3lame in ffmpeg build
* make building on multiple cores actually work
-- Kevin Mitchell <kevmitch@gmail.com> Wed, 29 Jan 2014 18:46:08 -0800
-mpv (1:0.3.3) UNRELEASED; urgency=low
+mpv (0:0.3.3) stable; urgency=low
* reimagine for waf build system
* test building on saucy,precise,stable,sid amd64
diff --git a/debian/control b/debian/control
index d961d69..7f7f2e3 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,9 @@ Build-Depends:
automake,
c-compiler,
debhelper (>= 7),
+ devscripts,
gcc-4.8 [powerpc powerpcspe sparc],
+ git,
ladspa-sdk,
libasound2-dev [linux-any],
libbluray-dev,
diff --git a/debian/rules b/debian/rules
index 737a744..996041a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,4 @@
#! /usr/bin/make -f
-
# from official debian package: testing welcome!
ifeq ($(DEB_HOST_ARCH_CPU),$(filter $(DEB_HOST_ARCH_CPU),powerpc sparc))
export CC=gcc-4.8 # fixes #73363
@@ -22,7 +21,7 @@ endif
# Apparently, the above isn't enough because of the "%" target. Make the problematic targets explicit
clean:
exec dh $@
-build:
+build: update_version
exec dh $@
install:
exec dh $@
@@ -32,6 +31,10 @@ install:
%:
exec dh $@
+MPV_VERSION=$(shell cd mpv && git describe --tags | sed 's/^v//';)
+update_version:
+ dch -v "1:$(MPV_VERSION)" "local build"
+
# this should really create multiple shared object debian packages but
# this will do for now
# the dependencies must be built before mpv is configured