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.

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