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.

63 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. PKG_SOURCE_DATE:=2017-01-11
  10. PKG_SOURCE_VERSION:=a0a1e6bd87d3eac68b5369972d1c2035cfe47e94
  11. PKG_RELEASE:=2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz
  13. PKG_SOURCE_URL:=https://codeload.github.com/phhusson/QuasselC/tar.gz/$(PKG_SOURCE_VERSION)?
  14. PKG_HASH:=fe7b48a13c0e6dad81cdae18069d4f5607af64d73a3201f42d79548170dde510
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/QuasselC-$(PKG_SOURCE_VERSION)
  16. PKG_MAINTAINER:=Ben Rosser <rosser.bjr@gmail.com>
  17. PKG_LICENSE:=LGPL-3.0
  18. PKG_LICENSE_FILES:=COPYING.LESSER
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/nls.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))