blob: 678e9243a0aa1fe48875b7088f14778d95bf725e (
plain)
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
|
#!/bin/sh
DEPSDIR=$1
export PKG_CONFIG_LIBDIR=$DEPSDIR/lib/pkgconfig
export PKG_CONFIG_OPTS=--define-variable=prefix=$DEPSDIR
export PKG_CONFIG="pkg-config $PKG_CONFIG_OPTS"
cat<<EOF>config.h
/* BitlBee settings, generated by $0
Do *NOT* use any of these defines in your code without thinking twice, most
of them can/will be overridden at run-time */
#define CPU "i386"
#define IPV6
#define GLIB2
#define ARCH "Windows"
EOF
cat<<EOF>Makefile.settings
## BitlBee settings, generated by $0
PREFIX=
BINDIR=\$(PREFIX)/sbin/
ETCDIR=\$(PREFIX)/etc/bitlbee/
MANDIR=\$(PREFIX)/share/man/
DATADIR=\$(PREFIX)/share/bitlbee/
CONFIG=\$(PREFIX)/lib/bitlbee/
ARCH=Windows
CPU=i386
OUTFILE=bitlbee.exe
STRIP=i586-mingw32msvc-strip
DESTDIR=
LFLAGS=`$PKG_CONFIG --libs glib-2.0` -L$DEPSDIR/lib -lws2_32 -liconv
CFLAGS=`$PKG_CONFIG --cflags glib-2.0` -I$DEPSDIR/include -I`pwd` -I`pwd`/protocols
CC=i586-mingw32msvc-gcc
CXX=i586-mingw32msvc-g++
LD=i586-mingw32msvc-ld
EOF
|