Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= efa6964c44fa7f01481a1f8365c1f6cb
  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. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,LIBMPDCLIENT,libmpdclient,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. $(eval $(call PKG_template,LIBMPDCLIENT_DEV,libmpdclient-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBMPDCLIENT_DEV},${PKGSC_LIBMPDCLIENT_DEV}))
  18. CONFIGURE_ENV+= ac_cv_lib_nsl_gethostbyname=no
  19. libmpdclient-install:
  20. $(INSTALL_DIR) $(IDIR_LIBMPDCLIENT)/usr/lib
  21. $(CP) $(WRKINST)/usr/lib/libmpdclient*.so* \
  22. $(IDIR_LIBMPDCLIENT)/usr/lib
  23. libmpdclient-dev-install:
  24. $(INSTALL_DIR) $(IDIR_LIBMPDCLIENT_DEV)/usr/include
  25. ${CP} $(WRKINST)/usr/include/* \
  26. $(IDIR_LIBMPDCLIENT_DEV)/usr/include
  27. $(INSTALL_DIR) $(IDIR_LIBMPDCLIENT_DEV)/usr/lib/pkgconfig
  28. $(CP) $(WRKINST)/usr/lib/pkgconfig/*.pc \
  29. $(IDIR_LIBMPDCLIENT_DEV)/usr/lib/pkgconfig
  30. include ${TOPDIR}/mk/pkg-bottom.mk