blob: 084dee6cf208343c75b9acec3ddc049afbef9128 (
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
33
34
35
36
37
38
39
40
41
|
#!/bin/bash
name=gettext
version=0.20.1
revision=0
sources=(
"http://mirror.rit.edu/gnu/${name}/${name}-${version}.tar.gz"
)
build_depends=()
depends=()
function prepare() {
tar xf ${name}-${version}.tar.gz
cd ${name}-${version}
if [[ $(uname -s) == Darwin ]]; then
LDFLAGS="-L${_runtime}"
fi
}
function build() {
conf=()
if [[ $(uname -s) == Darwin ]]; then
conf+=(--with-included-gettext)
conf+=(--with-included-glib)
conf+=(--with-included-libcroco)
conf+=(--with-included-libunistring)
conf+=(--disable-java)
conf+=(--disable-csharp)
conf+=(--without-git)
conf+=(--without-cvs)
conf+=(--without-xz)
fi
./configure --prefix=${_prefix} \
${conf[@]}
make -j${_maxjobs}
}
function package() {
make install DESTDIR="${_pkgdir}"
}
|