about summary refs log tree commit diff
path: root/pkgs/development/libraries/libixp/builder.sh
blob: 58513600fa09d2449336033b7e0b0dab4fdc114c (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
source $stdenv/setup
 
## oh, this is ugly. It would be way better to fix the Makefile instead
postUnpack() {
cd $sourceRoot

cat > config.mk <<END
VERSION = 0.3
PREFIX=
MANPREFIX=/share/man

INCS = -I.
LIBS = -L. -lc

LDFLAGS = \${LIBS}

CFLAGS = -g \${INCS} -DVERSION=\"\${VERSION}\"
SOFLAGS = -fPIC -shared

AR = ar cr
RANLIB = ranlib

END

echo -e "PREFIX=\nDESTDIR=${out}" >> config.mk

cd ..
}
 
postUnpack=postUnpack

genericBuild