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.

62 lines
1.8 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:=1
  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. 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))