[allegro5] 04/04: Generate *.install files for addons from templates.
Tobias Hansen
thansen at moszumanska.debian.org
Tue Dec 20 00:38:04 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository allegro5.
commit 1c6224757eb8652792ce6735b3f3b36d9e525f7f
Author: Tobias Hansen <thansen at debian.org>
Date: Mon Dec 19 23:55:50 2016 +0000
Generate *.install files for addons from templates.
---
debian/liballegro-ADDON5-dev.install.in | 3 +++
debian/liballegro-ADDON5.2.install.in | 1 +
debian/liballegro-acodec5-dev.install | 3 ---
debian/liballegro-acodec5.2.install | 1 -
debian/liballegro-audio5-dev.install | 3 ---
debian/liballegro-audio5.2.install | 1 -
debian/liballegro-image5-dev.install | 3 ---
debian/liballegro-image5.2.install | 1 -
debian/liballegro-physfs5-dev.install | 3 ---
debian/liballegro-physfs5.2.install | 1 -
debian/liballegro-ttf5-dev.install | 3 ---
debian/liballegro-ttf5.2.install | 1 -
debian/liballegro-video5-dev.install | 3 ---
debian/liballegro-video5.2.install | 1 -
debian/rules | 16 +++++++++++++++-
15 files changed, 19 insertions(+), 25 deletions(-)
diff --git a/debian/liballegro-ADDON5-dev.install.in b/debian/liballegro-ADDON5-dev.install.in
new file mode 100644
index 0000000..d573fa3
--- /dev/null
+++ b/debian/liballegro-ADDON5-dev.install.in
@@ -0,0 +1,3 @@
+usr/include/allegro5/allegro_ADDON.h
+usr/lib/*/liballegro_ADDON.so
+usr/lib/*/pkgconfig/allegro_ADDON-5.pc
diff --git a/debian/liballegro-ADDON5.2.install.in b/debian/liballegro-ADDON5.2.install.in
new file mode 100644
index 0000000..41c2e7a
--- /dev/null
+++ b/debian/liballegro-ADDON5.2.install.in
@@ -0,0 +1 @@
+usr/lib/*/liballegro_ADDON.so.*
diff --git a/debian/liballegro-acodec5-dev.install b/debian/liballegro-acodec5-dev.install
deleted file mode 100644
index 320c24c..0000000
--- a/debian/liballegro-acodec5-dev.install
+++ /dev/null
@@ -1,3 +0,0 @@
-usr/include/allegro5/allegro_acodec.h
-usr/lib/*/liballegro_acodec.so
-usr/lib/*/pkgconfig/allegro_acodec-5.pc
diff --git a/debian/liballegro-acodec5.2.install b/debian/liballegro-acodec5.2.install
deleted file mode 100644
index 09c8472..0000000
--- a/debian/liballegro-acodec5.2.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/*/liballegro_acodec.so.*
diff --git a/debian/liballegro-audio5-dev.install b/debian/liballegro-audio5-dev.install
deleted file mode 100644
index 2564102..0000000
--- a/debian/liballegro-audio5-dev.install
+++ /dev/null
@@ -1,3 +0,0 @@
-usr/include/allegro5/allegro_audio.h
-usr/lib/*/liballegro_audio.so
-usr/lib/*/pkgconfig/allegro_audio-5.pc
diff --git a/debian/liballegro-audio5.2.install b/debian/liballegro-audio5.2.install
deleted file mode 100644
index 86cfa7a..0000000
--- a/debian/liballegro-audio5.2.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/*/liballegro_audio.so.*
diff --git a/debian/liballegro-image5-dev.install b/debian/liballegro-image5-dev.install
deleted file mode 100644
index c1fe3d8..0000000
--- a/debian/liballegro-image5-dev.install
+++ /dev/null
@@ -1,3 +0,0 @@
-usr/include/allegro5/allegro_image.h
-usr/lib/*/liballegro_image.so
-usr/lib/*/pkgconfig/allegro_image-5.pc
diff --git a/debian/liballegro-image5.2.install b/debian/liballegro-image5.2.install
deleted file mode 100644
index 8d32289..0000000
--- a/debian/liballegro-image5.2.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/*/liballegro_image.so.*
diff --git a/debian/liballegro-physfs5-dev.install b/debian/liballegro-physfs5-dev.install
deleted file mode 100644
index bd6fbd4..0000000
--- a/debian/liballegro-physfs5-dev.install
+++ /dev/null
@@ -1,3 +0,0 @@
-usr/include/allegro5/allegro_physfs.h
-usr/lib/*/liballegro_physfs.so
-usr/lib/*/pkgconfig/allegro_physfs-5.pc
diff --git a/debian/liballegro-physfs5.2.install b/debian/liballegro-physfs5.2.install
deleted file mode 100644
index e6cd2e1..0000000
--- a/debian/liballegro-physfs5.2.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/*/liballegro_physfs.so.*
diff --git a/debian/liballegro-ttf5-dev.install b/debian/liballegro-ttf5-dev.install
deleted file mode 100644
index 8ddb260..0000000
--- a/debian/liballegro-ttf5-dev.install
+++ /dev/null
@@ -1,3 +0,0 @@
-usr/include/allegro5/allegro_ttf.h
-usr/lib/*/liballegro_ttf.so
-usr/lib/*/pkgconfig/allegro_ttf-5.pc
diff --git a/debian/liballegro-ttf5.2.install b/debian/liballegro-ttf5.2.install
deleted file mode 100644
index 5c585e5..0000000
--- a/debian/liballegro-ttf5.2.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/*/liballegro_ttf.so.*
diff --git a/debian/liballegro-video5-dev.install b/debian/liballegro-video5-dev.install
deleted file mode 100644
index 532927f..0000000
--- a/debian/liballegro-video5-dev.install
+++ /dev/null
@@ -1,3 +0,0 @@
-usr/include/allegro5/allegro_video.h
-usr/lib/*/liballegro_video.so
-usr/lib/*/pkgconfig/allegro_video-5.pc
diff --git a/debian/liballegro-video5.2.install b/debian/liballegro-video5.2.install
deleted file mode 100644
index 5b31609..0000000
--- a/debian/liballegro-video5.2.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/*/liballegro_video.so.*
diff --git a/debian/rules b/debian/rules
index 89f77cb..fc52d07 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,6 +18,16 @@ DEB_CMAKE_OPTIONS ?= -DCMAKE_VERBOSE_MAKEFILE=ON \
-DWANT_DOCS_HTML=ON \
-DWANT_DOCS_MAN=ON
+ADDONS = acodec audio image physfs ttf video
+ADDONS_INSTALL = $(ADDONS:%=debian/liballegro-%5.2.install)
+ADDONS_DEV_INSTALL = $(ADDONS:%=debian/liballegro-%5-dev.install)
+
+debian/liballegro-%5.2.install: debian/liballegro-ADDON5.2.install.in debian/rules
+ sed -e 's/ADDON/$*/g' < "$<" > "$@"
+
+debian/liballegro-%5-dev.install: debian/liballegro-ADDON5-dev.install.in debian/rules
+ sed -e 's/ADDON/$*/g' < "$<" > "$@"
+
%:
dh $@ --builddirectory=build --parallel
@@ -41,7 +51,11 @@ override_dh_auto_configure:
rm tests/test_compressed.ini
rm tests/test_convert.ini
-override_dh_auto_install:
+override_dh_clean:
+ rm -f $(ADDONS_INSTALL) $(ADDONS_DEV_INSTALL)
+ dh_clean
+
+override_dh_auto_install: $(ADDONS_INSTALL) $(ADDONS_DEV_INSTALL)
dh_auto_install
mkdir -p debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/allegro5/platform
mv debian/tmp/usr/include/allegro5/platform/alplatf.h debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/allegro5/platform/alplatf.h
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/allegro5.git
More information about the Pkg-games-commits
mailing list