@@ -1,5 +1,6 @@
SUMMARY = "Library for converting WMF files"
-HOMEPAGE = "http://wvware.sourceforge.net/libwmf.html"
+#HOMEPAGE = "http://wvware.sourceforge.net/libwmf.html"
+HOMEPAGE = "https://github.com/caolanm/libwmf"
SECTION = "libs"
LICENSE = "GPL-2.0-only"
@@ -15,17 +16,14 @@ inherit features_check autotools pkgconfig
REQUIRED_DISTRO_FEATURES = "x11"
-SRC_URI = "${SOURCEFORGE_MIRROR}/wvware/${BPN}/${PV}/${BPN}-${PV}.tar.gz;name=tarball \
+SRC_URI = "git://github.com/caolanm/libwmf.git;protocol=https;branch=master \
file://libwmf-0.2.8.4-intoverflow.patch \
file://libwmf-0.2.8.4-useafterfree.patch \
file://0001-configure-use-pkg-config-for-freetype.patch \
"
+SRCREV = "27b4aaf8cf653b4cd2ebe14717ffa9e76560485e"
-SRC_URI[tarball.md5sum] = "d1177739bf1ceb07f57421f0cee191e0"
-SRC_URI[tarball.sha256sum] = "5b345c69220545d003ad52bfd035d5d6f4f075e65204114a9e875e84895a7cf8"
-
-UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/wvware/files/libwmf/"
-UPSTREAM_CHECK_REGEX = "${BPN}/(?P<pver>\d+(\.\d+)+)"
+S = "${WORKDIR}/git"
do_install:append() {
sed -i -e 's@${RECIPE_SYSROOT}@@g' ${D}${bindir}/libwmf-config