-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sh
executable file
·58 lines (43 loc) · 995 Bytes
/
build.sh
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
51
52
53
54
55
56
57
58
NCPU=`cat /proc/cpuinfo |grep vendor_id |wc -l`
let NCPU=$NCPU+2
echo "Will build with 'make -j$NCPU' ... please edit this script if incorrect."
pkgname=wine-2.0-rc1
srcdir=`pwd`
function configure64 {
../$pkgname/configure \
--prefix=/usr \
--libdir=/usr/lib \
--with-x \
--with-xattr \
--with-gstreamer \
--disable-tests \
--enable-win64
}
_wine32opts=(
--libdir=/usr/lib32
--with-wine64="$srcdir/$pkgname-64-build"
)
function configure32 {
../$pkgname/configure \
--prefix=/usr \
--with-x \
--with-xattr \
--with-gstreamer \
--disable-tests \
"${_wine32opts[@]}"
}
mkdir -p "$srcdir/$pkgname-32-build"
mkdir -p "$srcdir/$pkgname-64-build"
# Build x64
echo "Building Wine-64..."
cd "$srcdir/$pkgname-64-build"
configure64
make -j$NCPU
#make
# Build x32
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
echo "Building Wine-32..."
cd "$srcdir/$pkgname-32-build"
configure32
make -j$NCPU
#make