You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2016 Ben Rosser <rosser.bjr@gmail.com>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=quasselc
  9. # quasselc upstream doesn't release versions (at least, at the moment),
  10. # so use commit date for PKG_VERSION and embed commit hash into PKG_RELEASE.
  11. PKG_VERSION:=2015-04-06
  12. PKG_SOURCE_VERSION:=fcd966966924e3d9af0954db56117e2f48767ea1
  13. PKG_RELEASE:=1.$(PKG_SOURCE_VERSION)
  14. PKG_LICENSE:=GPL-3.0+
  15. PKG_SOURCE_PROTO:=git
  16. PKG_SOURCE_URL:=https://github.com/phhusson/QuasselC
  17. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.bz2
  19. PKG_MAINTAINER:=Ben Rosser <rosser.bjr@gmail.com>
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. MAKE_FLAGS += prefix=$(STAGING_DIR)/usr libdir=$(STAGING_DIR)/usr/lib includedir=$(STAGING_DIR)/usr/include
  23. MAKE_INSTALL_FLAGS += prefix=/usr libdir=/usr/lib includedir=/usr/include
  24. define Package/quasselc
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. DEPENDS:=+glib2
  28. SUBMENU:=Instant Messaging
  29. URL:=https://github.com/phhusson/QuasselC
  30. TITLE:=API to access a Quassel Core in pure C
  31. endef
  32. define Package/quasselc/description
  33. An implementation of the Quassel protocol in pure C.
  34. endef
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include/quasselc
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/quasselc/* $(1)/usr/include/quasselc/
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libquasselc.so* $(1)/usr/lib/
  40. $(LN) libquasselc.so.0 $(1)/usr/lib/libquasselc.so
  41. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/quasselc.pc $(1)/usr/lib/pkgconfig/
  43. endef
  44. define Package/quasselc/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libquasselc.so* $(1)/usr/lib/
  47. endef
  48. $(eval $(call BuildPackage,quasselc))