Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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:= gmediaserver
  5. PKG_VERSION:= 0.13.0
  6. PKG_RELEASE:= 1
  7. PKG_BUILDDEP+= id3lib libupnp
  8. PKG_MD5SUM:= c422de386331e2a1a859d45f6fa270a3
  9. PKG_DESCR:= An UPnP music media server
  10. PKG_SECTION:= net
  11. PKG_DEPENDS:= id3lib libupnp
  12. PKG_URL:= http://www.gnu.org/software/gmediaserver
  13. PKG_SITES:= http://savannah.nongnu.org/download/gmediaserver/
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,GMEDIASERVER,gmediaserver,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIGURE_STYLE= gnu
  17. CONFIGURE_ENV+= LIBS=" -lixml -lthreadutil -lupnp -lz" \
  18. am_cv_func_iconv=no
  19. CONFIGURE_ARGS+= --with-id3lib="${STAGING_DIR}/usr" \
  20. --with-libupnp="${STAGING_DIR}/usr"
  21. BUILD_STYLE= auto
  22. INSTALL_STYLE= auto
  23. ifeq ($(ADK_TARGET_LIB_UCLIBCXX),y)
  24. CONFIGURE_ENV+= LIBS=" -lixml -lthreadutil -lupnp -luClibc++ -lz"
  25. endif
  26. post-install:
  27. ${INSTALL_DIR} ${IDIR_GMEDIASERVER}/usr/sbin
  28. ${INSTALL_BIN} ${WRKINST}/usr/bin/gmediaserver ${IDIR_GMEDIASERVER}/usr/sbin/
  29. include ${TOPDIR}/mk/pkg-bottom.mk