forked from arnaudmorin/libgtop11dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathc-mac.sh
39 lines (31 loc) · 927 Bytes
/
c-mac.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
#! /bin/sh
if [ -d /usr/local/include/PCSC ]
then
echo "move /usr/local/include/PCSC away and try again"
exit
fi
# we define PKG_CONFIG so that pkg-config is not used and PCSC_CFLAGS
# and PCSC_LIBS are used instead
PKG_CONFIG="foobar"
# find pcsc-lite header files in MacOSXCCID/
PCSC_CFLAGS="-I/System/Library/Frameworks/PCSC.framework/Versions/A/Headers"
PCSC_LIBS="-framework PCSC"
# Build a Universal Binary
CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64"
LDFLAGS="-arch i386 -arch x86_64"
CONFIGURE_ARGS="--disable-dependency-tracking"
# boost
#CFLAGS="$CFLAGS -I../boost1_45"
# For Mac OS X Leopard 10.5
#CFLAGS="$CFLAGS -DMACOSX_LEOPARD"
# install in /usr
CONFIGURE_ARGS="$CONFIGURE_ARGS --prefix=/usr"
set -x
./configure \
PKG_CONFIG="$PKG_CONFIG" \
CFLAGS="$CFLAGS" \
CXXFLAGS="$CFLAGS" \
PCSC_CFLAGS="$PCSC_CFLAGS" \
PCSC_LIBS="$PCSC_LIBS" \
$CONFIGURE_ARGS \
"$@"