Makefile 980 B

123456789101112131415161718192021222324252627282930313233
  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:= ympd
  5. PKG_VERSION:= 1.2.2
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= c4da2549fd65f6d69642348c9ff134cd4bed6a1b2a9be21daa504b6d19517806
  8. PKG_DESCR:= standalone mpd web gui written in c
  9. PKG_SECTION:= net/http
  10. PKG_DEPENDS:= libmpdclient
  11. PKG_BUILDDEP:= cmake-host libmpdclient
  12. PKG_URL:= http://www.ympd.org/
  13. PKG_SITES:= http://www.openadk.org/distfiles/
  14. include $(ADK_TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,YMPD,ympd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= cmake
  17. TARGET_CFLAGS+= -std=c99
  18. pre-build:
  19. $(HOST_CC) -o $(WRKBUILD)/mkdata $(WRKBUILD)/htdocs/mkdata.c
  20. chmod 755 $(WRKBUILD)/mkdata
  21. ympd-install:
  22. $(INSTALL_DIR) $(IDIR_YMPD)/usr/bin
  23. $(INSTALL_BIN) $(WRKINST)/usr/bin/ympd \
  24. $(IDIR_YMPD)/usr/bin
  25. include ${ADK_TOPDIR}/mk/pkg-bottom.mk