| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_CFLAGS_MAINT_APPEND=-D_FILE_OFFSET_BITS=64 -std=gnu17 |
| 4 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ |
| 8 |
|
| 9 |
override_dh_auto_configure: |
| 10 |
dh_auto_configure -- \ |
| 11 |
--disable-printing \ |
| 12 |
--enable-jpeg \ |
| 13 |
--enable-png \ |
| 14 |
--enable-xft \ |
| 15 |
--with-mwmrcdir="/etc/X11/mwm" \ |
| 16 |
--with-xmbinddir="/usr/share/X11/bindings" \ |
| 17 |
--with-x11rgbdir="/etc/X11" |
| 18 |
|
| 19 |
override_dh_install: |
| 20 |
# MWM needs a copy of system.mwmrc named system.mwmrc-menu |
| 21 |
# as a template for update-menus |
| 22 |
mv debian/tmp/etc/X11/mwm/system.mwmrc debian/tmp/etc/X11/mwm/system.mwmrc-menu |
| 23 |
|
| 24 |
# Fixing several man page warnings until proper sources are found |
| 25 |
# Comments generated by very old docbook2man were ...\" instead of .\" |
| 26 |
# For proper indexing you probably need to define the IX macro properly |
| 27 |
# DT macro resets tab at the beginning of the man page |
| 28 |
# Make sure the files report their section correctly |
| 29 |
# Update /usr/X11R6/ paths to their correct locations |
| 30 |
find debian/tmp/usr/share/man/ -regex ".*\.[1345]" -exec sed --in-place \ |
| 31 |
-e "s/^\.\.\.\\\\"/\.\\\\"/" \ |
| 32 |
-e "s/^\.iX *//" \ |
| 33 |
-e "s/^\.DT\\$$//" \ |
| 34 |
-e "s/^\.TH \(.*\) \"user cmd\"/\.TH \1 1/" \ |
| 35 |
-e "s/^\.TH \(.*\) \"library call\"/\.TH \1 3/" \ |
| 36 |
-e "s/^\.TH \(.*\) 3x/\.TH \1 3/" \ |
| 37 |
-e "s/^\.TH \(.*\) 3X/\.TH \1 3/" \ |
| 38 |
-e "s/^\.TH \(.*\) \"special file\"/\.TH \1 4/" \ |
| 39 |
-e "s/^\.TH \(.*\) \"file formats\"/\.TH \1 5/" \ |
| 40 |
-e "s/\/usr\/lib\/X11\/rgb.txt/\/etc\/X11\/rgb.txt/g" \ |
| 41 |
-e "s/\/usr\/X11R6\/lib\/X11\/app-defaults/\/etc\/X11\/app-defaults/g" \ |
| 42 |
-e "s/\/usr\/X11R6\/lib\/X11/\/etc\/X11\/mwm/g" \ |
| 43 |
-e "s/\/usr\/X11R6\/bin\/X11/\/usr\/bin/g" \ |
| 44 |
-e "s/\/usr\/X11R6\/include/\/usr\/include/g" \ |
| 45 |
{} \; |
| 46 |
|
| 47 |
dh_install |
| 48 |
|
| 49 |
override_dh_installwm: |
| 50 |
dh_installwm --priority=50 |