| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
#export DH_VERBOSE=1 |
| 4 |
|
| 5 |
|
| 6 |
export DEB_CFLAGS_MAINT_APPEND := -pipe -Wall |
| 7 |
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--no-undefined |
| 8 |
|
| 9 |
|
| 10 |
# export variables for autoreconf |
| 11 |
export AUTOMAKE := automake --foreign |
| 12 |
|
| 13 |
|
| 14 |
%: |
| 15 |
dh $@ |
| 16 |
|
| 17 |
override_dh_auto_configure: |
| 18 |
dh_auto_configure -- $(confflags) |
| 19 |
|
| 20 |
override_dh_install: |
| 21 |
# copy files (modifying header includes) to install as examples in the |
| 22 |
# -dev package |
| 23 |
sed -e 's:"SDL.h":\<SDL.h\>:' -e 's:"SDL_ttf.h":\<SDL_ttf.h\>:' showfont.c > debian/showfont.c |
| 24 |
sed -e 's:"SDL.h":\<SDL.h\>:' -e 's:"SDL_ttf.h":\<SDL_ttf.h\>:' glfont.c > debian/glfont.c |
| 25 |
|
| 26 |
dh_install --fail-missing -XlibSDL_ttf.la |
| 27 |
|
| 28 |
override_dh_installchangelogs: |
| 29 |
dh_installchangelogs -- CHANGES |