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.

65 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_MIRROR_HASH:=80ca463c20f934a3730fb51c69f5299e2d35ca53a06f0ca746d3de97dbfc360b
  20. PKG_MAINTAINER:=Ben Rosser <rosser.bjr@gmail.com>
  21. PKG_INSTALL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. MAKE_FLAGS += prefix=$(STAGING_DIR)/usr libdir=$(STAGING_DIR)/usr/lib includedir=$(STAGING_DIR)/usr/include
  24. MAKE_INSTALL_FLAGS += prefix=/usr libdir=/usr/lib includedir=/usr/include
  25. define Package/quasselc
  26. SECTION:=libs
  27. CATEGORY:=Libraries
  28. DEPENDS:=+glib2
  29. SUBMENU:=Instant Messaging
  30. URL:=https://github.com/phhusson/QuasselC
  31. TITLE:=API to access a Quassel Core in pure C
  32. endef
  33. define Package/quasselc/description
  34. An implementation of the Quassel protocol in pure C.
  35. endef
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/include/quasselc
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/quasselc/* $(1)/usr/include/quasselc/
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libquasselc.so* $(1)/usr/lib/
  41. $(LN) libquasselc.so.0 $(1)/usr/lib/libquasselc.so
  42. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/quasselc.pc $(1)/usr/lib/pkgconfig/
  44. endef
  45. define Package/quasselc/install
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libquasselc.so* $(1)/usr/lib/
  48. endef
  49. $(eval $(call BuildPackage,quasselc))