debian/rules
author Sam Lantinga <slouken@libsdl.org>
Sun, 26 May 2013 11:06:17 -0700
changeset 7222 2435b221d77d
parent 6889 09bc9fbe147e
child 7906 19f5760dc1a7
permissions -rwxr-xr-x
Renamed documentation files to .txt and converted them to DOS line endings so they would open properly on all systems. Updated Makefile.in so "make dist" includes everything necessary for release.
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:
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    36
        # to address lintian warning
55fc95e5817b Added native Debian package information
Sam Lantinga <slouken@libsdl.org>
parents:
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
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