--- smage/trunk/core/imlib2/imlib2-1.4.4-r2.smage2 2011/03/01 19:18:31 1389 +++ smage/trunk/core/imlib2/imlib2-1.4.4-r2.smage2 2011/03/01 19:22:59 1390 @@ -31,10 +31,20 @@ SRC_URI=( sourceforge://enlightenment/${SRCFILE} mirror://${PNAME}/${SRCFILE} + mirror://${PNAME}/${PNAME}-${PVER}-libpng-1.5.patch ) UP2DATE="updatecmd_sourceforge enlightenment ${PNAME}-src" +src_prepare() +{ + munpack ${SRCFILE} || die + cd ${SRCDIR} + + # fix build against libpng-1.5 + mpatch ${PNAME}-${PVER}-libpng-1.5.patch || die +} + src_compile() { cd ${SRCDIR}