1
0

Makefile 1.5 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:= mt-daapd
  5. PKG_VERSION:= 0.2.4.2
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 67bef9fb14d487693b0dfb792c3f1b05
  8. PKG_DESCR:= a multi-threaded DAAP daemon
  9. PKG_SECTION:= multimedia
  10. PKG_DEPENDS:= libgdbm libid3tag libpthread
  11. PKG_BUILDDEP:= gdbm libid3tag
  12. PKG_URL:= http://www.fireflymediaserver.org/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=mt-daapd/}
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,MT_DAAPD,mt-daapd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. # uClibc setpgrp does not take arguments
  18. CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes
  19. CONFIGURE_ARGS+= --enable-mdns \
  20. --disable-howl \
  21. --with-id3tag="${STAGING_TARGET_DIR}/usr" \
  22. --with-gdbm-includes="${STAGING_TARGET_DIR}/usr/include" \
  23. --with-gdbm-libs="${STAGING_TARGET_DIR}/usr/lib" \
  24. --without-static-libs
  25. TARGET_LDFLAGS+= -pthread
  26. mt-daapd-install:
  27. ${INSTALL_DIR} ${IDIR_MT_DAAPD}/etc ${IDIR_MT_DAAPD}/usr/{share,sbin}
  28. ${INSTALL_DATA} ${WRKBUILD}/contrib/mt-daapd.conf \
  29. ${IDIR_MT_DAAPD}/etc/
  30. ${INSTALL_DATA} ${WRKBUILD}/contrib/mt-daapd.playlist \
  31. ${IDIR_MT_DAAPD}/etc/
  32. ${CP} ${WRKINST}/usr/share/mt-daapd ${IDIR_MT_DAAPD}/usr/share/
  33. ${INSTALL_BIN} ${WRKINST}/usr/sbin/mt-daapd \
  34. ${IDIR_MT_DAAPD}/usr/sbin/
  35. include ${TOPDIR}/mk/pkg-bottom.mk