summaryrefslogtreecommitdiff
path: root/packages/SDL.sh
blob: f1da105fb116c9497bc6c38e8a0d7778427d1eed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

SRCTYPE=hg
SRCURL=http://hg.libsdl.org/SDL/

ENV_PATH="bin"
ENV_LD_LIBRARY_PATH="lib"
ENV_PKG_CONFIG_PATH="lib/pkgconfig"
ENV_MANPATH="share/man"

function package_build {
    run_switch_branch SDL-1.2
    run_src_script ./autogen.sh
    run_configure --disable-rpath --enable-sdl-dlopen --disable-loadso \
        --disable-video-ggi \
        --disable-nas --disable-esd --disable-arts \
        --disable-alsa-shared --disable-pulseaudio-shared \
        --disable-x11-shared \
        --enable-video-directfb

    run_make
    run_make_install
}