cd "${S}"
epatch "${FILESDIR}"/${P}-configure.patch
epatch "${FILESDIR}"/3.6.1-use-system-libpng.diff
eaclocal
eautoconf
}