19 |
SRCFILE="${PNAME}-${PVER}.tar.bz2" |
SRCFILE="${PNAME}-${PVER}.tar.bz2" |
20 |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
21 |
|
|
22 |
sminclude mbuild mtools |
sminclude mtools |
23 |
|
|
24 |
SRC_URI=( |
SRC_URI=( |
25 |
sourceforge://${PNAME}/${SRCFILE} |
sourceforge://${PNAME}/${SRCFILE} |
26 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
27 |
) |
) |
28 |
|
|
29 |
|
src_prepare() |
30 |
|
{ |
31 |
|
munpack ${SRCFILE} || die |
32 |
|
cd ${SRCDIR} |
33 |
|
|
34 |
|
# fix missing includes to build with newer gcc |
35 |
|
sed -i '1,1i#include <unistd.h>' src/DesktopConfig.cpp || die |
36 |
|
sed -i '1,1i#include <sys/stat.h>' src/DesktopConfig.cpp || die |
37 |
|
sed -i '1,1i#include <sys/types.h>' src/DesktopConfig.cpp || die |
38 |
|
} |
39 |
|
|
40 |
src_compile() |
src_compile() |
41 |
{ |
{ |
42 |
cd ${SRCDIR} |
cd ${SRCDIR} |