Lines 32-37
src_prepare() {
Link Here
|
32 |
EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \ |
32 |
EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \ |
33 |
EPATCH_FORCE="yes" \ |
33 |
EPATCH_FORCE="yes" \ |
34 |
epatch |
34 |
epatch |
|
|
35 |
epatch "${FILESDIR}"/${PN}-2.2.2-build.patch |
35 |
|
36 |
|
36 |
epatch_user |
37 |
epatch_user |
37 |
|
38 |
|
Lines 39-55
src_prepare() {
Link Here
|
39 |
} |
40 |
} |
40 |
|
41 |
|
41 |
multilib_src_compile() { |
42 |
multilib_src_compile() { |
42 |
tc-export RANLIB |
43 |
tc-export PKG_CONFIG RANLIB |
|
|
44 |
local PCRE_CFLAGS=$(${PKG_CONFIG} libpcre --cflags) |
45 |
local PCRE_LIBS=$(${PKG_CONFIG} libpcre --libs) |
46 |
export PCRE_{CFLAGS,LIBS} |
43 |
|
47 |
|
44 |
emake \ |
48 |
emake \ |
45 |
AR="$(tc-getAR)" \ |
49 |
AR="$(tc-getAR)" \ |
46 |
CC="$(tc-getCC)" \ |
50 |
CC="$(tc-getCC)" \ |
47 |
LDFLAGS="-fPIC $($(tc-getPKG_CONFIG) libpcre --libs) ${LDFLAGS} -lpthread" all |
51 |
LDFLAGS="-fPIC ${LDFLAGS} -pthread" \ |
|
|
52 |
all |
48 |
|
53 |
|
49 |
if multilib_is_native_abi && use python; then |
54 |
if multilib_is_native_abi && use python; then |
50 |
building() { |
55 |
building() { |
51 |
python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH |
56 |
python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH |
52 |
emake CC="$(tc-getCC)" PYINC="-I${PYTHON_INCLUDEDIR}" PYTHONLIBDIR="${PYTHON_LIBPATH}" PYPREFIX="${EPYTHON##*/}" LDFLAGS="-fPIC $($(tc-getPKG_CONFIG) libpcre --libs) ${LDFLAGS} -lpthread" pywrap |
57 |
emake \ |
|
|
58 |
CC="$(tc-getCC)" \ |
59 |
PYINC="-I${PYTHON_INCLUDEDIR}" \ |
60 |
PYTHONLIBDIR="${PYTHON_LIBPATH}" \ |
61 |
PYPREFIX="${EPYTHON##*/}" \ |
62 |
LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \ |
63 |
pywrap |
53 |
} |
64 |
} |
54 |
python_foreach_impl building |
65 |
python_foreach_impl building |
55 |
fi |
66 |
fi |