| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# export DH_VERBOSE=1 |
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow |
| 6 |
|
| 7 |
CFLAGS := $(CFLAGS) -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ |
| 11 |
|
| 12 |
override_dh_autoreconf: |
| 13 |
touch AUTHORS ChangeLog |
| 14 |
dh_autoreconf |
| 15 |
|
| 16 |
override_dh_auto_configure: |
| 17 |
dh_auto_configure -- --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ |
| 18 |
--prefix=/usr --mandir=\$${prefix}/share/man \ |
| 19 |
--with-mad --with-audiofile --disable-xmms --enable-longer-name |
| 20 |
|
| 21 |
override_dh_clean: |
| 22 |
rm -f xmms-rva/Makefile |
| 23 |
dh_clean |
| 24 |
|
| 25 |
override_dh_autoreconf_clean: |
| 26 |
rm -rf AUTHORS ChangeLog |
| 27 |
dh_autoreconf_clean |
| 28 |
|
| 29 |
override_dh_install: |
| 30 |
dh_install |
| 31 |
(cd $(CURDIR)/debian/normalize-audio/usr/share; \ |
| 32 |
mv locale/en_GB/LC_MESSAGES/normalize.mo locale/en_GB/LC_MESSAGES/normalize-audio.mo; \ |
| 33 |
mv locale/fr/LC_MESSAGES/normalize.mo locale/fr/LC_MESSAGES/normalize-audio.mo; \ |
| 34 |
mv man/man1/normalize.1 man/man1/normalize-audio.1) |
| 35 |
|
| 36 |
override_dh_installchangelogs: |
| 37 |
dh_installchangelogs NEWS |
| 38 |
|
| 39 |
override_dh_link: |
| 40 |
dh_link usr/share/man/man1/normalize-mp3.1.gz usr/share/man/man1/normalize-ogg.1.gz |