2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://fukuchi.org/works/qrencode/
16 PKG_MD5SUM:=be545f3ce36ea8fbb58612d72c4222de
17 PKG_MAINTAINER:=Jonathan Bennett <JBennett@incomsystems.biz>
18 PKG_LICENSE:=LGPL-2.1+
22 include $(INCLUDE_DIR)/package.mk
24 define Package/libqrencode
27 TITLE:=Library for encoding data in a QR Code symbol
28 URL:=http://fukuchi.org/works/qrencode/
31 define Package/libqrencode/description
32 Libqrencode is a C library for encoding data in a QR Code symbol,
33 a kind of 2D symbology that can be scanned by handy terminals such
34 as a mobile phone with CCD. The capacity of QR Code is up to 7000
35 digits or 4000 characters, and is highly robust.
38 define Package/qrencode
41 TITLE:=qrencode binary for producing qr codes
42 URL:=http://fukuchi.org/works/qrencode/
46 define Package/qrencode/description
47 Qrencode is a C program for encoding data in a QR Code symbol,
48 a kind of 2D symbology that can be scanned by handy terminals such
49 as a mobile phone with CCD. The capacity of QR Code is up to 7000
50 digits or 4000 characters, and is highly robust.
64 $(MAKE) -C $(PKG_BUILD_DIR) \
65 $(TARGET_CONFIGURE_OPTS) \
66 CFLAGS="$(TARGET_CFLAGS)" \
67 LDFLAGS="$(TARGET_LDFLAGS)" \
68 DESTDIR="$(PKG_INSTALL_DIR)" \
72 define Build/InstallDev
73 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
74 $(CP) $(PKG_INSTALL_DIR)/usr/include/qrencode.h $(1)/usr/include/
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libqrencode.{a,so*} $(1)/usr/lib/
76 $(CP) $(PKG_BUILD_DIR)/libqrencode.pc $(1)/usr/lib/pkgconfig/
79 define Package/libqrencode/install
80 $(INSTALL_DIR) $(1)/usr/lib
81 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libqrencode.so* $(1)/usr/lib/
84 define Package/qrencode/install
85 $(INSTALL_DIR) $(1)/usr/bin
86 $(CP) $(PKG_INSTALL_DIR)/usr/bin/qrencode $(1)/usr/bin/
89 $(eval $(call BuildPackage,libqrencode))
90 $(eval $(call BuildPackage,qrencode))