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.

90 lines
2.4 KiB

  1. #
  2. # Copyright (C) 2006-2012 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:=3.4.4
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://fukuchi.org/works/qrencode/
  13. PKG_MD5SUM:=be545f3ce36ea8fbb58612d72c4222de
  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. TARGET_LDFLAGS+= -s
  51. define Build/Compile
  52. $(MAKE) -C $(PKG_BUILD_DIR) \
  53. $(TARGET_CONFIGURE_OPTS) \
  54. CFLAGS="$(TARGET_CFLAGS)" \
  55. LDFLAGS="$(TARGET_LDFLAGS)" \
  56. DESTDIR="$(PKG_INSTALL_DIR)" \
  57. all install
  58. endef
  59. define Build/InstallDev
  60. $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
  61. $(CP) $(PKG_INSTALL_DIR)/usr/include/qrencode.h $(1)/usr/include/
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libqrencode.{a,so*} $(1)/usr/lib/
  63. $(CP) $(PKG_BUILD_DIR)/libqrencode.pc $(1)/usr/lib/pkgconfig/
  64. endef
  65. define Package/libqrencode/install
  66. $(INSTALL_DIR) $(1)/usr/lib
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libqrencode.so* $(1)/usr/lib/
  68. endef
  69. define Package/qrencode/install
  70. $(INSTALL_DIR) $(1)/usr/bin
  71. $(CP) $(PKG_INSTALL_DIR)/usr/bin/qrencode $(1)/usr/bin/
  72. endef
  73. $(eval $(call BuildPackage,libqrencode))
  74. $(eval $(call BuildPackage,qrencode))