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.

94 lines
2.5 KiB

  1. #
  2. # Copyright (C) 2006-2017 OpenWrt.org
  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:=qrencode
  9. PKG_VERSION:=4.0.2
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://fukuchi.org/works/qrencode
  13. PKG_HASH:=c9cb278d3b28dcc36b8d09e8cad51c0eca754eb004cb0247d4703cb4472b58b4
  14. PKG_MAINTAINER:=Jonathan Bennett <JBennett@incomsystems.biz>
  15. PKG_LICENSE:=LGPL-2.1-or-later
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_INSTALL:=1
  18. PKG_FIXUP:=autoreconf
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libqrencode
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=Library for encoding data in a QR Code symbol
  24. URL:=https://fukuchi.org/works/qrencode/
  25. endef
  26. define Package/libqrencode/description
  27. Libqrencode is a C library for encoding data in a QR Code symbol,
  28. a kind of 2D symbology that can be scanned by handy terminals such
  29. as a mobile phone with CCD. The capacity of QR Code is up to 7000
  30. digits or 4000 characters, and is highly robust.
  31. endef
  32. define Package/qrencode
  33. SECTION:=utils
  34. CATEGORY:=Utilities
  35. TITLE:=qrencode binary for producing qr codes
  36. URL:=http://fukuchi.org/works/qrencode/
  37. DEPENDS:=+libqrencode
  38. endef
  39. define Package/qrencode/description
  40. Qrencode is a C program for encoding data in a QR Code symbol,
  41. a kind of 2D symbology that can be scanned by handy terminals such
  42. as a mobile phone with CCD. The capacity of QR Code is up to 7000
  43. digits or 4000 characters, and is highly robust.
  44. endef
  45. CONFIGURE_ARGS+= \
  46. --enable-shared \
  47. --enable-static \
  48. --disable-rpath \
  49. --disable-sdltest \
  50. --without-tests \
  51. --without-png
  52. TARGET_LDFLAGS+= -s
  53. define Build/Compile
  54. $(MAKE) -C $(PKG_BUILD_DIR) \
  55. $(TARGET_CONFIGURE_OPTS) \
  56. CFLAGS="$(TARGET_CFLAGS)" \
  57. LDFLAGS="$(TARGET_LDFLAGS)" \
  58. DESTDIR="$(PKG_INSTALL_DIR)" \
  59. all install
  60. endef
  61. define Build/InstallDev
  62. $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
  63. $(CP) $(PKG_INSTALL_DIR)/usr/include/qrencode.h $(1)/usr/include/
  64. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libqrencode.{a,so*} $(1)/usr/lib/
  65. $(CP) $(PKG_BUILD_DIR)/libqrencode.pc $(1)/usr/lib/pkgconfig/
  66. endef
  67. define Package/libqrencode/install
  68. $(INSTALL_DIR) $(1)/usr/lib
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libqrencode.so* $(1)/usr/lib/
  70. endef
  71. define Package/qrencode/install
  72. $(INSTALL_DIR) $(1)/usr/bin
  73. $(CP) $(PKG_INSTALL_DIR)/usr/bin/qrencode $(1)/usr/bin/
  74. endef
  75. $(eval $(call BuildPackage,libqrencode))
  76. $(eval $(call BuildPackage,qrencode))