Line | |
---|
1 | #!/bin/sh |
---|
2 | DEPSDIR=$1 |
---|
3 | export PKG_CONFIG_LIBDIR=$DEPSDIR/lib/pkgconfig |
---|
4 | export PKG_CONFIG_OPTS=--define-variable=prefix=$DEPSDIR |
---|
5 | export PKG_CONFIG="pkg-config $PKG_CONFIG_OPTS" |
---|
6 | |
---|
7 | cat<<EOF>config.h |
---|
8 | /* BitlBee settings, generated by $0 |
---|
9 | |
---|
10 | Do *NOT* use any of these defines in your code without thinking twice, most |
---|
11 | of them can/will be overridden at run-time */ |
---|
12 | #define CPU "i386" |
---|
13 | #define IPV6 |
---|
14 | #define GLIB2 |
---|
15 | #define ARCH "Windows" |
---|
16 | EOF |
---|
17 | |
---|
18 | cat<<EOF>Makefile.settings |
---|
19 | ## BitlBee settings, generated by $0 |
---|
20 | PREFIX= |
---|
21 | BINDIR=\$(PREFIX)/sbin/ |
---|
22 | ETCDIR=\$(PREFIX)/etc/bitlbee/ |
---|
23 | MANDIR=\$(PREFIX)/share/man/ |
---|
24 | DATADIR=\$(PREFIX)/share/bitlbee/ |
---|
25 | CONFIG=\$(PREFIX)/lib/bitlbee/ |
---|
26 | ARCH=Windows |
---|
27 | CPU=i386 |
---|
28 | OUTFILE=bitlbee.exe |
---|
29 | STRIP=i586-mingw32msvc-strip |
---|
30 | |
---|
31 | DESTDIR= |
---|
32 | LFLAGS=`$PKG_CONFIG --libs glib-2.0` -L$DEPSDIR/lib -lws2_32 -liconv |
---|
33 | CFLAGS=`$PKG_CONFIG --cflags glib-2.0` -I$DEPSDIR/include -I`pwd` -I`pwd`/protocols |
---|
34 | CC=i586-mingw32msvc-gcc |
---|
35 | CXX=i586-mingw32msvc-g++ |
---|
36 | LD=i586-mingw32msvc-ld |
---|
37 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.