Source: flac
Version: 1.5.0+ds-2
Followup-For: Bug #1118470

Hi,

Here's a rough fix for switching to CMake.
It still lacks the generation of libFLAC++.m4.

Regards,
Patrice


-- System Information:
Debian Release: forky/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.16.12+deb14-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff --git a/debian/control b/debian/control
index afd2c1d6..6b1555f2 100644
--- a/debian/control
+++ b/debian/control
@@ -9,6 +9,7 @@ Build-Depends-Indep:
  doxygen,
 Build-Depends: dpkg-dev (>= 1.22.5),
  debhelper-compat (= 13),
+ cmake,
  libogg-dev,
  pandoc [!alpha !hppa !hurd-i386 !i386 !loong64 !m68k !powerpc !sh4 !x32],
 Standards-Version: 4.7.0
diff --git a/debian/rules b/debian/rules
index 0790c72b..0f09bdb6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,19 +2,27 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+BUILDDIR = obj-$(DEB_HOST_MULTIARCH)
+
 %:
-       dh $@
+       dh $@ --buildsystem=cmake
 
 override_dh_auto_configure:
+       dh_auto_configure -B $(BUILDDIR)-static
        dh_auto_configure -- \
-               --disable-rpath \
-               --disable-xmms-plugin \
-               --enable-static \
-               --disable-silent-rules
+               -DBUILD_SHARED_LIBS=ON
+
+override_dh_auto_build:
+       dh_auto_build -B $(BUILDDIR)-static
+       dh_auto_build
 
 override_dh_auto_build-indep:
        dh_auto_build -i -- -C doc
 
+override_dh_auto_install:
+       dh_auto_install -B $(BUILDDIR)-static
+       dh_auto_install
+
 override_dh_auto_install-indep:
        dh_auto_install -i -- -C doc
 

Reply via email to