1
0

Makefile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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:= logitechmediaserver
  5. PKG_VERSION:= 7.9.1
  6. PKG_EXTRAVER:= 1502887423-noCPAN
  7. PKG_RELEASE:= 1
  8. PKG_HASH:= dfc803d31129ef55e3bbd1db34349d7ac31bbc261fcdb78246c895dcbbb4bf2d
  9. PKG_DESCR:= popular media server
  10. PKG_SECTION:= mm/audio
  11. PKG_DEPENDS:= perl p5-xml-parser p5-dbi p5-ev p5-html-parser
  12. PKG_DEPENDS+= p5-json-xs p5-digest-sha1 p5-yaml-xs p5-sub-name
  13. PKG_DEPENDS+= p5-xml-parser-expat p5-common-sense
  14. PKG_DEPENDS+= p5-types-serialiser p5-audio-scan p5-image-scale
  15. PKG_DEPENDS+= p5-dbd-sqlite p5-tie-refhash p5-template-toolkit
  16. PKG_DEPENDS+= p5-class-xsaccessor p5-io-interface p5-anyevent
  17. PKG_BUILDDEP:= perl
  18. PKG_URL:= http://wiki.slimdevices.com/index.php/Logitech_Media_Server
  19. PKG_SITES:= http://downloads.slimdevices.com/nightly/7.9/sc/03ab5b5/
  20. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}-${PKG_EXTRAVER}.tgz
  21. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}-${PKG_EXTRAVER}
  22. include $(ADK_TOPDIR)/mk/package.mk
  23. $(eval $(call PKG_template,LOGITECHMEDIASERVER,logitechmediaserver,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. CONFIG_STYLE:= manual
  25. BUILD_STYLE:= manual
  26. INSTALL_STYLE:= manual
  27. post-extract:
  28. rm -rf ${WRKBUILD}/CPAN/Class/XSAccessor*
  29. rm -rf ${WRKBUILD}/CPAN/Template*
  30. rm -rf ${WRKBUILD}/CPAN/HTML*
  31. rm -rf ${WRKBUILD}/CPAN/DBI/
  32. rm -rf ${WRKBUILD}/CPAN/DBI.pm
  33. rm -rf ${WRKBUILD}/CPAN/IO/Interface*
  34. rm -rf ${WRKBUILD}/CPAN/JSON/XS.pm
  35. logitechmediaserver-install:
  36. $(INSTALL_DIR) $(IDIR_LOGITECHMEDIASERVER)/opt/lms
  37. $(CP) $(WRKSRC)/* $(IDIR_LOGITECHMEDIASERVER)/opt/lms
  38. @find $(IDIR_LOGITECHMEDIASERVER)/opt/lms -type f -exec chmod 644 {} \;
  39. @find $(IDIR_LOGITECHMEDIASERVER)/opt/lms -type d -exec chmod 755 {} \;
  40. $(INSTALL_DIR) $(IDIR_LOGITECHMEDIASERVER)/opt/lms/prefs/plugin
  41. $(INSTALL_DIR) $(IDIR_LOGITECHMEDIASERVER)/opt/lms/Logs
  42. $(INSTALL_DIR) $(IDIR_LOGITECHMEDIASERVER)/opt/lms/Cache
  43. include ${ADK_TOPDIR}/mk/pkg-bottom.mk