summaryrefslogtreecommitdiff
path: root/packages/SDL.sh
blob: fc1fd9b365ee3ce51488c3ab94be90df5797448e (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
24
#!/bin/bash

SRCTYPE=hg
SRCURL=http://hg.libsdl.org/SDL/
DEFAULT_BRANCH="SDL-1.2"

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

function package_build {
    run_switch_branch
    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
}