| 1 |
|
| 2 |
|
| 3 |
include /usr/share/dpkg/architecture.mk |
| 4 |
include /usr/share/dpkg/pkg-info.mk |
| 5 |
|
| 6 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 7 |
|
| 8 |
CMAKE_FLAGS = \ |
| 9 |
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
| 10 |
-DCMAKE_INSTALL_LIBDIR=lib \ |
| 11 |
-Daudacity_conan_enabled=Off \ |
| 12 |
-Daudacity_has_networking=Off \ |
| 13 |
-Daudacity_has_vst3=Off \ |
| 14 |
-Daudacity_lib_preference=system \ |
| 15 |
-Daudacity_use_ffmpeg=loaded \ |
| 16 |
-Daudacity_use_vst3sdk=system \ |
| 17 |
-DwxBUILD_TOOLKIT=gtk3 \ |
| 18 |
-DCMAKE_DEB_HOST_MULTIARCH=$(DEB_HOST_MULTIARCH) \ |
| 19 |
$(NULL) |
| 20 |
|
| 21 |
ifeq (,$(findstring ~,$(DEB_VERSION_UPSTREAM))) |
| 22 |
alhpa |
| 23 |
CMAKE_FLAGS += -DAUDACITY_BUILD_LEVEL=2 |
| 24 |
endif |
| 25 |
|
| 26 |
ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) |
| 27 |
CROSS_CMAKE_FLAGS = -DIMAGE_COMPILER_EXECUTABLE=$(CURDIR)/obj-$(DEB_BUILD_GNU_TYPE)/RelWithDebInfo/bin/image-compiler |
| 28 |
endif |
| 29 |
|
| 30 |
ifeq ($(DEB_HOST_ARCH),i386) |
| 31 |
export DEB_CFLAGS_MAINT_APPEND = -mfpmath=sse -msse2 |
| 32 |
export DEB_CXXFLAGS_MAINT_APPEND = -mfpmath=sse -msse2 |
| 33 |
endif |
| 34 |
|
| 35 |
DISABLE_LIBRARIES = \ |
| 36 |
-Daudacity_use_libflac=off \ |
| 37 |
-Daudacity_use_libid3tag=off \ |
| 38 |
-Daudacity_use_libmad=off \ |
| 39 |
-Daudacity_use_libmpg123=off \ |
| 40 |
-Daudacity_use_libogg=off \ |
| 41 |
-Daudacity_use_libopus=off \ |
| 42 |
-Daudacity_use_libvorbis=off \ |
| 43 |
-Daudacity_use_lv2=off \ |
| 44 |
-Daudacity_use_portsmf=off \ |
| 45 |
-Daudacity_use_sbsms=off \ |
| 46 |
-Daudacity_use_soundtouch=off \ |
| 47 |
-Daudacity_use_twolame=off \ |
| 48 |
-Daudacity_use_vamp=off \ |
| 49 |
-Daudacity_use_wavpack=off \ |
| 50 |
$(NULL) |
| 51 |
|
| 52 |
%: |
| 53 |
dh $@ |
| 54 |
|
| 55 |
override_dh_auto_clean: |
| 56 |
dh_auto_clean |
| 57 |
ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) |
| 58 |
rm -rf obj-$(DEB_BUILD_GNU_TYPE) |
| 59 |
endif |
| 60 |
dh_clean libraries/lib-theme-resources/*Code.h |
| 61 |
|
| 62 |
override_dh_auto_configure: |
| 63 |
ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) |
| 64 |
dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c \ |
| 65 |
dh_auto_configure --reload-all-buildenv-variables --builddirectory=obj-$(DEB_BUILD_GNU_TYPE) -- \ |
| 66 |
$(CMAKE_FLAGS) $(DISABLE_LIBRARIES) |
| 67 |
cmake --build obj-$(DEB_BUILD_GNU_TYPE) --target image-compiler |
| 68 |
endif |
| 69 |
WX_CONFIG=/usr/lib/$(DEB_HOST_GNU_TYPE)/wx/config/gtk3-unicode-3.2 dh_auto_configure -- $(CMAKE_FLAGS) $(CROSS_CMAKE_FLAGS) |
| 70 |
|
| 71 |
execute_after_dh_auto_install: |
| 72 |
|
| 73 |
rm debian/tmp/usr/share/doc/audacity/LICENSE.txt |