forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uuid.sh
34 lines (32 loc) · 1.3 KB
/
uuid.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
package: UUID
version: v2.27.1
source: https://github.com/alisw/uuid
tag: alice/v2.27.1
build_requires:
- "GCC-Toolchain:(?!osx)"
- autotools
---
rsync -av --delete --exclude "**/.git" $SOURCEDIR/ .
if [[ $AUTOTOOLS_ROOT == "" ]] && which brew >/dev/null; then
PATH=$PATH:`brew --prefix gettext`/bin
fi
perl -p -i -e 's/AM_GNU_GETTEXT_VERSION\(\[0\.18\.3\]\)/AM_GNU_GETTEXT_VERSION([0.18.2])/' configure.ac
autoreconf -ivf
./configure $([[ ${ARCHITECTURE:0:3} == osx ]] && echo --disable-shared) \
--libdir=$INSTALLROOT/lib \
--prefix=$INSTALLROOT \
--disable-all-programs \
--disable-silent-rules \
--disable-tls \
--disable-rpath \
--without-ncurses \
--enable-libuuid
make ${JOBS:+-j$JOBS} libuuid.la
mkdir -p $INSTALLROOT/lib
cp -p .libs/libuuid.a* $INSTALLROOT/lib
if [[ ${ARCHITECTURE:0:3} != osx ]]; then
cp -p .libs/libuuid.so* $INSTALLROOT/lib
fi
mkdir -p $INSTALLROOT/include
make install-uuidincHEADERS
rm -rf $INSTALLROOT/man