6 # Copyright (C) 2011 Christian Pointner <equinox@realraum.at>
8 # This file is part of dart-sounds.
10 # dart-sounds is free software: you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation, either version 3 of the License, or
15 # dart-sounds is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with dart-sounds. If not, see <http://www.gnu.org/licenses/>.
30 LDFLAGS='-g -Wall -O2'
36 echo "configure --help print this"
37 echo " --target=<TARGET> build target i.e. Linux (default: autodetect)"
38 echo " --prefix=<PREFIX> the installation prefix (default: /usr/local)"
39 echo " --bindir=<DIR> the path to the bin directory (default: $PREFIX/bin)"
46 TARGET=${arg#--target=}
49 PREFIX=${arg#--prefix=}
52 BINDIR=${arg#--bindir=}
67 if [ -n "$ERRORS" ] && [ $EBUILD_COMPAT -ne 1 ]; then
68 for error in $ERRORS; do
69 echo "Unknown argument: $error"
76 CFLAGS="$CFLAGS $(pkg-config --cflags gstreamer-0.10)"
77 LDFLAGS="$LDFLAGS $(pkg-config --libs gstreamer-0.10)"
84 OpenBSD|FreeBSD|NetBSD|GNU/kFreeBSD)
85 CFLAGS=$CFLAGS' -I/usr/local/include'
86 LDFLAGS=$LDFLAGS' -L/usr/local/lib'
89 echo "platform not supported"
94 if [ -z "$BINDIR" ]; then
98 if [ -z "$MANDIR" ]; then
99 MANDIR=$PREFIX/share/man
102 cat > include.mk <<EOF
103 # this file was created automatically
104 # do not edit this file directly
105 # use ./configure instead
120 DATE=`date +"%d.%m.%Y %H:%M:%S %Z"`
124 * dart-sounds config header
126 * this file was created automatically
127 * do not edit this file directly
128 * use ./configure instead
131 #ifndef DART_SOUNDS_config_h_INCLUDED
132 #define DART_SOUNDS_config_h_INCLUDED
134 #define VERSION_STRING_0 "dart-sounds version $VERSION"
135 #define VERSION_STRING_1 "built on $HOSTNAME, $DATE"
137 #define TARGET "$TARGET"
138 #define PREFIX "$PREFIX"
139 #define BINDIR "$BINDIR"