summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/dh_xine.in (renamed from debian/dh_xine)12
-rwxr-xr-xdebian/rules7
2 files changed, 15 insertions, 4 deletions
diff --git a/debian/dh_xine b/debian/dh_xine.in
index 1ae22bd9b..7c9f28caf 100644
--- a/debian/dh_xine
+++ b/debian/dh_xine.in
@@ -27,6 +27,9 @@ By listing package name suffixes, you can generate dependencies and
recommendations (almost) at will. If you don't specify any, then 'x' and
'console' are used, generating xine-x:Depends and xine-console:Depends.
+'-' generates xine:Depends which contains a dependency on libxine1 which is
+suitable for use by out-of-tree plugins.
+
=head1 EXAMPLES
dh_xine is usually called indirectly in a rules file via the dh command.
@@ -62,8 +65,13 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
my $tmp = tmpdir ($package);
foreach my $suffix (@suffix) {
- delsubstvar($package, "xine-$suffix:Depends");
- addsubstvar ($package, "xine-$suffix:Depends", "libxine1-$suffix");
+ if ($suffix eq '-') {
+ delsubstvar($package, "xine:Depends");
+ addsubstvar ($package, "xine:Depends", "libxine1 (>= @VERSION@)");
+ } else {
+ delsubstvar($package, "xine-$suffix:Depends");
+ addsubstvar ($package, "xine-$suffix:Depends", "libxine1-$suffix");
+ }
}
}
diff --git a/debian/rules b/debian/rules
index 8c90cbff1..446f6e9cb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -117,7 +117,7 @@ update-config-sub-guess:
clean:
dh_testdir
dh_testroot
- rm -f build-stamp configure-stamp po/*.gmo po/stamp-po
+ rm -f build-stamp configure-stamp po/*.gmo po/stamp-po debian/dh_xine
if test -f .noauto; then \
[ ! -f Makefile ] || $(MAKE) distclean; \
else \
@@ -125,7 +125,10 @@ clean:
fi
dh_clean
-install: build
+debian/dh_xine: debian/dh_xine.in
+ sed -e's/@VERSION@/'$(shell dpkg-parsechangelog -c1 | sed -e '/^Version:/! d; s/^.* //; s/-[^-]*$$//')'/' $< >$@
+
+install: build debian/dh_xine
dh_testdir
dh_testroot
dh_clean -k