Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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:= libmpdclient
  5. PKG_VERSION:= 2.7
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= f1a8cbbb4d52ace87df0f6a1097e7c8a
  8. PKG_DESCR:= library for interfacing MPD
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://mpd.wikia.com/wiki/ClientLib:libmpdclient
  11. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=musicpd/}
  12. PKG_SUBPKGS:= LIBMPDCLIENT LIBMPDCLIENT_DEV
  13. PKGSD_LIBMPDCLIENT_DEV:=headers for interfacing MPD
  14. PKGSC_LIBMPDCLIENT_DEV:=devel
  15. PKGSS_LIBMPDCLIENT_DEV:=libmpdclient
  16. include $(TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,LIBMPDCLIENT,libmpdclient,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. $(eval $(call PKG_template,LIBMPDCLIENT_DEV,libmpdclient-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_LIBMPDCLIENT_DEV},${PKGSD_LIBMPDCLIENT_DEV},${PKGSC_LIBMPDCLIENT_DEV}))
  19. CONFIGURE_ENV+= ac_cv_lib_nsl_gethostbyname=no
  20. libmpdclient-install:
  21. $(INSTALL_DIR) $(IDIR_LIBMPDCLIENT)/usr/lib
  22. $(CP) $(WRKINST)/usr/lib/libmpdclient*.so* \
  23. $(IDIR_LIBMPDCLIENT)/usr/lib
  24. libmpdclient-dev-install:
  25. $(INSTALL_DIR) $(IDIR_LIBMPDCLIENT_DEV)/usr/include
  26. ${CP} $(WRKINST)/usr/include/* \
  27. $(IDIR_LIBMPDCLIENT_DEV)/usr/include
  28. $(INSTALL_DIR) $(IDIR_LIBMPDCLIENT_DEV)/usr/lib/pkgconfig
  29. $(CP) $(WRKINST)/usr/lib/pkgconfig/*.pc \
  30. $(IDIR_LIBMPDCLIENT_DEV)/usr/lib/pkgconfig
  31. include ${TOPDIR}/mk/pkg-bottom.mk