DESCRIPTION = "Used for upnp function" inherit tp-link-common SRC_DIR = "${WORKSPACE}/oe-core/build/downloads/libupnp.tar.bz2" S="${WORKDIR}/${PN}" FILES_${PN} += "${libdir}/libixml.so" FILES_${PN} += "${libdir}/libthreadutil.so" FILES_${PN} += "${libdir}/libupnp.so" #Disable the split of debug information into -dbg files INHIBIT_PACKAGE_DEBUG_SPLIT = "1" PACKAGES = "${PN}" do_compile() { oe_runmake } do_install() { install -d ${D}${libdir}/ install -m 0644 ${S}/libupnp.so ${D}${libdir}/ install -m 0644 ${S}/libixml.so ${D}${libdir}/ install -m 0644 ${S}/libthreadutil.so ${D}${libdir}/ install -d ${D}${includedir}/ install -m 0644 inc/upnp.h ${D}${includedir}/ install -m 0644 inc/ixml.h ${D}${includedir}/ install -m 0644 inc/upnptools.h ${D}${includedir}/ install -m 0644 inc/UpnpGlobal.h ${D}${includedir}/ install -m 0644 inc/upnpconfig.h ${D}${includedir}/ install -m 0644 inc/UpnpInet.h ${D}${includedir}/ install -m 0644 inc/UpnpUniStd.h ${D}${includedir}/ install -m 0644 inc/TimerThread.h ${D}${includedir}/ install -m 0644 inc/FreeList.h ${D}${includedir}/ install -m 0644 inc/ithread.h ${D}${includedir}/ install -m 0644 inc/LinkedList.h ${D}${includedir}/ install -m 0644 inc/ThreadPool.h ${D}${includedir}/ }