Bump to debhelper compat 13
authorSebastian Ramacher <sramacher@debian.org>
Sun, 20 Sep 2020 17:19:15 +0000 (19:19 +0200)
committerSebastian Ramacher <sramacher@debian.org>
Sun, 20 Sep 2020 17:19:15 +0000 (19:19 +0200)
debian/compat [deleted file]
debian/control
debian/not-installed [new file with mode: 0644]
debian/rules

diff --git a/debian/compat b/debian/compat
deleted file mode 100644 (file)
index f599e28..0000000
+++ /dev/null
@@ -1 +0,0 @@
-10
index 62cdbf007e49cff7f68dd4a400d8e4af23dfc739..62779cf301fec630ad7aebaab4bf49fdcdd6a7be 100644 (file)
@@ -6,7 +6,7 @@ Uploaders:
  Reinhard Tartler <siretart@tauware.de>,
  Alessio Treglia <alessio@debian.org>
 Build-Depends:
- debhelper (>= 10~),
+ debhelper-compat (= 13),
  freeglut3-dev,
  liba52-0.7.4-dev,
  libasound2-dev,
diff --git a/debian/not-installed b/debian/not-installed
new file mode 100644 (file)
index 0000000..d762163
--- /dev/null
@@ -0,0 +1,2 @@
+usr/share/gpac/gui
+usr/share/gpac/shaders
index 5f067a56e983cc80cd980060115c9f3bcc26ec6c..58e060bb183c465ef275182ac09e564659048de2 100755 (executable)
@@ -1,18 +1,13 @@
 #!/usr/bin/make -f
 
-export REPACK_SH=$(CURDIR)/debian/repack.sh
-
-export GPAC_BASE_VER ?= $(shell dpkg-parsechangelog | sed -n 's/Version: \([0-9.]*\)\+.*/\1/p')
-export GPAC_GIT_REVISION ?= $(shell dpkg-parsechangelog | grep Version | sed 's/Version:.*+svn\([0-9]\+\).*/\1/')
+include /usr/share/dpkg/architecture.mk
+include /usr/share/dpkg/buildflags.mk
+include /usr/share/dpkg/pkg-info.mk
 
 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
 DEB_CONFIGURE_EXTRA_FLAGS = --disable-opt
 endif
 
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH
-DEB_CFLAGS ?=  $(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get CFLAGS)
-DEB_LDFLAGS ?= $(shell dpkg-buildflags --get LDFLAGS)
-
 %:
        dh $@
 
@@ -21,14 +16,14 @@ override_dh_auto_configure:
            --prefix=/usr \
            --libdir=lib/$(DEB_HOST_MULTIARCH) \
            --mandir=\$${prefix}/share/man \
-           --extra-cflags="-Wall -fPIC -DPIC -I/usr/include/mozjs -DXP_UNIX $(DEB_CFLAGS)" \
-           --extra-ldflags="$(DEB_LDFLAGS)" \
+           --extra-cflags="-Wall -fPIC -DPIC -I/usr/include/mozjs -DXP_UNIX $(CPPFLAGS) $(CFLAGS)" \
+           --extra-ldflags="$(LDFLAGS)" \
            --enable-joystick \
            --enable-debug \
            --disable-ssl \
            --verbose \
            $(DEB_EXTRA_CONFIGURE_FLAGS)
-       echo "#define GPAC_GIT_REVISION \"$(GPAC_GIT_REVISION)\"" > include/gpac/revision.h
+       echo "#define GPAC_GIT_REVISION \"$(DEB_VERSION)\"" > include/gpac/revision.h
        # workaround broken libav detection
        sed -i 's,CONFIG_LIBAV=no,CONFIG_LIBAV=yes,' config.mak