Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= libupnp
  5. PKG_VERSION:= 1.6.6
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 8918dcf7428cd119d0c8275765ff2833
  8. PKG_DESCR:= The Universal Plug and Play (UPnP) SDK library
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libpthread
  11. PKG_URL:= http://pupnp.sourceforge.net/
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=pupnp/}
  13. PKG_SUBPKGS:= LIBUPNP LIBUPNP_DEV
  14. PKGSD_LIBUPNP_DEV:= libupnp headers
  15. PKGSC_LIBUPNP_DEV:= devel
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,LIBUPNP,libupnp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,LIBUPNP_DEV,libupnp-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBUPNP_DEV},${PKGSC_LIBUPNP_DEV}))
  20. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  21. TARGET_CFLAGS+= -fPIC
  22. CONFIGURE_ARGS+= --disable-samples
  23. post-build:
  24. sed -i -e 's#^libdir=.*#libdir=#' \
  25. ${WRKBUILD}/threadutil/libthreadutil.la
  26. libupnp-install:
  27. ${INSTALL_DIR} ${IDIR_LIBUPNP}/usr/lib
  28. ${CP} ${WRKINST}/usr/lib/lib*.so* ${IDIR_LIBUPNP}/usr/lib
  29. libupnp-dev-install:
  30. ${INSTALL_DIR} ${IDIR_LIBUPNP_DEV}/usr/include
  31. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBUPNP_DEV}/usr/include
  32. include ${TOPDIR}/mk/pkg-bottom.mk