debian/rules
author Ryan C. Gordon <icculus@icculus.org>
Fri, 12 Aug 2016 19:59:00 -0400
changeset 10266 c09f06c4e8c8
parent 7906 19f5760dc1a7
permissions -rwxr-xr-x
emscripten: send fake mouse events for touches, like other targets do. (This really should be handled at the higher level and not in the individual targets, but this fixes the immediate bug.)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6886
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     1
#!/usr/bin/make -f
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     2
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     3
DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     4
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     5
6889
09bc9fbe147e Switched debian package name to sdl2
Sam Lantinga <slouken@libsdl.org>
parents: 6886
diff changeset
     6
confflags = --disable-rpath --disable-video-directfb \
09bc9fbe147e Switched debian package name to sdl2
Sam Lantinga <slouken@libsdl.org>
parents: 6886
diff changeset
     7
            --disable-nas --disable-esd --disable-arts \
09bc9fbe147e Switched debian package name to sdl2
Sam Lantinga <slouken@libsdl.org>
parents: 6886
diff changeset
     8
            --disable-alsa-shared --disable-pulseaudio-shared \
09bc9fbe147e Switched debian package name to sdl2
Sam Lantinga <slouken@libsdl.org>
parents: 6886
diff changeset
     9
            --disable-x11-shared
6886
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    10
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    11
%:
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    12
	dh $@ --parallel
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    13
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    14
override_dh_auto_configure:
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    15
	dh_auto_configure -Bbuilddir/all -- $(confflags)
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    16
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    17
override_dh_auto_build:
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    18
	dh_auto_build -Bbuilddir/all
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    19
	tar czf debian/examples.tar.gz test
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    20
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    21
override_dh_auto_install:
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    22
	dh_auto_install -Bbuilddir/all
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    23
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    24
override_dh_auto_clean:
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    25
	dh_auto_clean -Bbuilddir/all
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    26
	rm -f debian/examples.tar.gz
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    27
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    28
override_dh_install:
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    29
	dh_install --remaining-packages --fail-missing -XlibSDL2.la
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    30
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    31
override_dh_installexamples:
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    32
	dh_installexamples -plibsdl2-dev debian/examples.tar.gz
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    33
	dh_installexamples --remaining-packages
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    34
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    35
override_dh_link:
7906
19f5760dc1a7 Fixed bug 2180 - debian/rules: Makefiles should use tabs
Sam Lantinga <slouken@libsdl.org>
parents: 6889
diff changeset
    36
	# to address lintian warning
19f5760dc1a7 Fixed bug 2180 - debian/rules: Makefiles should use tabs
Sam Lantinga <slouken@libsdl.org>
parents: 6889
diff changeset
    37
	# W: libsdl2-2.0-0: dev-pkg-without-shlib-symlink usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.0.0 usr/lib/x86_64-linux-gnu/libSDL2-2.0.so
6886
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    38
	dh_link -plibsdl2-dev usr/lib/$(DEB_HOST_MULTIARCH)/libSDL2-2.0.so.0.0.0 usr/lib/$(DEB_HOST_MULTIARCH)/libSDL2-2.0.so
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    39
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    40
override_dh_strip:
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    41
	dh_strip --dbg-package=libsdl2-dbg