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.

92 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:=1
  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. PKG_BUILD_DEPENDS:=libpng
  20. define Package/libqrencode
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=Library for encoding data in a QR Code symbol
  24. URL:=http://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. 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))