Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= gmediaserver
  5. PKG_VERSION:= 0.13.0
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= c422de386331e2a1a859d45f6fa270a3
  8. PKG_DESCR:= media server
  9. PKG_SECTION:= mm/video
  10. PKG_DEPENDS:= id3lib libupnp libmagic
  11. PKG_BUILDDEP:= id3lib libupnp file
  12. PKG_URL:= http://www.gnu.org/software/gmediaserver
  13. PKG_SITES:= http://savannah.nongnu.org/download/gmediaserver/
  14. PKG_CXX:= GMEDIASERVER
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. PKG_LIBC_DEPENDS:= uclibc glibc
  17. PKG_BUILDDEP_UCLIBC:= libiconv-tiny
  18. include ${ADK_TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,GMEDIASERVER,gmediaserver,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. TARGET_CPPFLAGS+= -D_GNU_SOURCE
  21. CONFIGURE_ENV+= LIBS=" -lixml -lthreadutil -lupnp -lz"
  22. CONFIGURE_ARGS+= --with-id3lib="${STAGING_TARGET_DIR}/usr" \
  23. --with-libupnp="${STAGING_TARGET_DIR}/usr"
  24. ifeq ($(ADK_TARGET_LIB_UCLIBCXX),y)
  25. CONFIGURE_ENV+= LIBS=" -lixml -lthreadutil -lupnp -luClibc++ -lz -lc"
  26. endif
  27. gmediaserver-install:
  28. ${INSTALL_DIR} ${IDIR_GMEDIASERVER}/usr/sbin
  29. ${INSTALL_BIN} ${WRKINST}/usr/bin/gmediaserver \
  30. ${IDIR_GMEDIASERVER}/usr/sbin/
  31. include ${ADK_TOPDIR}/mk/pkg-bottom.mk