blob: c5588db8541d29c2c66405bb30657f75fad94ca8 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#!/bin/sh -e
#
# This shell script tests the build of ncmpc with various compile-time
# options.
#
# Author: Max Kellermann <max@duempel.org>
PREFIX=/tmp/ncmpc
rm -rf $PREFIX
export CFLAGS="-Os"
test -x configure || NOCONFIGURE=1 ./autogen.sh
# all features on, wide curses
./configure --prefix=$PREFIX/full --enable-debug --enable-werror \
--with-ncursesw \
--enable-lyrics-screen --enable-colors --enable-lirc
make -j2 install
# all features on, no debugging
./configure --prefix=$PREFIX/full --disable-debug --enable-werror \
--with-ncursesw \
--enable-lyrics-screen --enable-colors --enable-lirc
make -j2 install
# all features on, narrow curses
./configure --prefix=$PREFIX/narrow --enable-debug --enable-werror \
--with-ncurses \
--enable-lyrics-screen --enable-colors --enable-lirc
make -j2 install
# all features on, no wide characters and no NLS
./configure --prefix=$PREFIX/nonls --enable-debug --enable-werror \
--disable-wide --disable-nls \
--enable-lyrics-screen --enable-colors --enable-lirc
make -j2 install
# no bloat
./configure --prefix=$PREFIX/nobloat --enable-debug --enable-werror \
--disable-wide --disable-nls \
--enable-lyrics-screen --disable-lirc --disable-key-screen \
--disable-colors --disable-mouse
make -j2 install
# ncmpc-mini and ncmpc-tiny
CFLAGS="-Os" ./configure --prefix=$PREFIX/mini --disable-debug --enable-werror \
--enable-mini
make -j2 install
make ncmpc-tiny
|