15 |
SRCFILE="${PNAME}-${PVER}.tar.bz2" |
SRCFILE="${PNAME}-${PVER}.tar.bz2" |
16 |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 |
|
|
18 |
sminclude mbuild multilib |
# not mutilib.sminc compat, don't use it! |
19 |
|
sminclude mbuild |
20 |
|
|
21 |
SRC_URI=( |
SRC_URI=( |
22 |
gnu://${PNAME}/${SRCFILE} |
gnu://${PNAME}/${SRCFILE} |
23 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
24 |
) |
) |
25 |
|
|
26 |
|
src_compile() |
27 |
|
{ |
28 |
|
install -d ${SRCDIR}/build |
29 |
|
cd ${SRCDIR}/build |
30 |
|
mconfigure || die |
31 |
|
mmake || die |
32 |
|
|
33 |
|
# build 32bit libraries for multilib systems |
34 |
|
if [[ ${ARCH} = x86_64 ]] |
35 |
|
then |
36 |
|
install -d ${SRCDIR}/build-m32 |
37 |
|
cd ${SRCDIR}/build-m32 |
38 |
|
ABI=32 mconfigure || die |
39 |
|
mmake || die |
40 |
|
fi |
41 |
|
} |
42 |
|
|
43 |
|
src_install() |
44 |
|
{ |
45 |
|
cd ${SRCDIR}/build |
46 |
|
make DESTDIR=${BINDIR} install || die |
47 |
|
|
48 |
|
# build 32bit libraries for multilib systems |
49 |
|
if [[ ${ARCH} = x86_64 ]] |
50 |
|
then |
51 |
|
cd ${SRCDIR}/build-m32 |
52 |
|
make DESTDIR=${BINDIR} install || die |
53 |
|
fi |
54 |
|
|
55 |
|
cd ${SRCDIR} |
56 |
|
minstalldocs AUTHORS COPYING* ChangeLog NEWS README || die |
57 |
|
} |