Lines 56-74
Link Here
|
56 |
|
56 |
|
57 |
src_compile() { |
57 |
src_compile() { |
58 |
cd ${S}/src; ${CC:-gcc} ${CFLAGS} tbz2tool.c -o tbz2tool |
58 |
cd ${S}/src; ${CC:-gcc} ${CFLAGS} tbz2tool.c -o tbz2tool |
59 |
cd ${S}/src/sandbox-1.1 |
59 |
if has sandbox $FEATURES; then |
60 |
case ${ARCH} in |
60 |
cd ${S}/src/sandbox-1.1 |
61 |
"x86") |
61 |
case ${ARCH} in |
62 |
make CFLAGS="-march=i386 -O1 -pipe" || die |
62 |
"x86") |
63 |
;; |
63 |
make CFLAGS="-march=i386 -O1 -pipe" || die |
64 |
"amd64") |
64 |
;; |
65 |
check_multilib |
65 |
"amd64") |
66 |
make CFLAGS="-O2 -pipe" HAVE_64BIT_ARCH="${MULTILIB}" || die |
66 |
check_multilib |
67 |
;; |
67 |
make CFLAGS="-O2 -pipe" HAVE_64BIT_ARCH="${MULTILIB}" || die |
68 |
*) |
68 |
;; |
69 |
make || die |
69 |
*) |
70 |
;; |
70 |
make || die |
71 |
esac |
71 |
;; |
|
|
72 |
esac |
73 |
fi |
72 |
cd ${S}/bin |
74 |
cd ${S}/bin |
73 |
} |
75 |
} |
74 |
|
76 |
|
Lines 135-145
Link Here
|
135 |
doexe ${S}/src/tbz2tool |
137 |
doexe ${S}/src/tbz2tool |
136 |
|
138 |
|
137 |
#install sandbox |
139 |
#install sandbox |
138 |
cd ${S}/src/sandbox-1.1 |
140 |
if has sandbox $FEATURES; then |
139 |
make clean |
141 |
cd ${S}/src/sandbox-1.1 |
140 |
make DESTDIR=${D} \ |
142 |
make clean |
141 |
HAVE_64BIT_ARCH="${MULTILIB}" \ |
143 |
make DESTDIR=${D} \ |
142 |
install || die "Failed to compile sandbox" |
144 |
HAVE_64BIT_ARCH="${MULTILIB}" \ |
|
|
145 |
install || die "Failed to compile sandbox" |
146 |
fi |
143 |
|
147 |
|
144 |
#symlinks |
148 |
#symlinks |
145 |
dodir /usr/bin /usr/sbin |
149 |
dodir /usr/bin /usr/sbin |