DESCRIPTION = "Library for reading mod-like audio files."
HOMEPAGE = "http://modplug-xmms.sf.net"
SECTION = "libs"
LICENSE = "GPL"

PR = "r1"

SRC_URI = "${SOURCEFORGE_MIRROR}/modplug-xmms/libmodplug-${PV}.tar.gz"

inherit autotools pkgconfig

# NOTE: autotools_stage_all does nothing here, we need to do it manually
do_install_append() {
	install -d ${D}${includedir}/libmodplug
	install -m 0644 ${S}/src/modplug.h ${D}${includedir}/libmodplug
	install -m 0644 ${S}/src/modplug.h ${D}${includedir}/
}

SRC_URI[md5sum] = "d2d9ccd8da22412999caed076140f786"
SRC_URI[sha256sum] = "3cfdebb60833a082e2f2b8faa3892bc9201d05c64051503e8007d8c98ae9e4c2"

DESCRIPTION = "Library for reading mod-like audio files."
HOMEPAGE = "http://modplug-xmms.sf.net"
SECTION = "libs"
LICENSE = "PD"

PR = "r2"

SRC_URI = "${SOURCEFORGE_MIRROR}/modplug-xmms/libmodplug-${PV}.tar.gz"

inherit autotools pkgconfig

# NOTE: autotools_stage_all does nothing here, we need to do it manually
do_install_append() {
	install -d ${D}${includedir}/libmodplug
	install -m 0644 ${S}/src/modplug.h ${D}${includedir}/libmodplug
	install -m 0644 ${S}/src/modplug.h ${D}${includedir}/
}

SRC_URI[md5sum] = "d2d9ccd8da22412999caed076140f786"
SRC_URI[sha256sum] = "3cfdebb60833a082e2f2b8faa3892bc9201d05c64051503e8007d8c98ae9e4c2"

Update LICENSE field version to PD
libmodplug: Update LICENSE field version to PD

* Updated LICENSE field version from generic GPL to PD to
  reflect the change from GPL to the Public Domain license.
* This change was back-ported from oe-core.

Signed-off-by: Chase Maupin <5a5662f468a76e0fc4391e65fb9f536df44d7380@ti.com>
Signed-off-by: Martin Jansa <516df3ff67e1fa5d153800b15fb204c0a1a389dc@gmail.com>
