1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/architecture.mk
-include /usr/share/dpkg/buildtools.mk
# Use this variable to allow options passed to cmake to be overridable
DEB_CMAKE_OPTIONS ?= \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DDYNLOAD=OFF \
-DMODPLUG=ON \
-DSNDFILE=OFF \
-DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)"
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- $(DEB_CMAKE_OPTIONS)
override_dh_shlibdeps: debian/tmp/alure-dummy.so
dh_shlibdeps -O--parallel
debian/tmp/alure-dummy.so:
mkdir -p debian/tmp
$(CC) -xc -shared -Wl,--no-as-needed -Wl,-z,relro -Wl,-z,now -o $@ /dev/null \
-lvorbisfile \
-lFLAC \
-lmpg123 \
-ldumb \
-lmodplug
|