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:=2bb7fb7c7bd1a4042d4910b29609319e
18 include $(INCLUDE_DIR)/package.mk
20 define Package/libqrencode
23 TITLE:=Library for encoding data in a QR Code symbol
24 URL:=http://fukuchi.org/works/qrencode/
27 define Package/libqrencode/description
28 Libqrencode is a C library for encoding data in a QR Code symbol,
29 a kind of 2D symbology that can be scanned by handy terminals such
30 as a mobile phone with CCD. The capacity of QR Code is up to 7000
31 digits or 4000 characters, and is highly robust.
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 $(TARGET_CONFIGURE_OPTS) \
49 CFLAGS="$(TARGET_CFLAGS)" \
50 LDFLAGS="$(TARGET_LDFLAGS)" \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
55 define Build/InstallDev
56 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
57 $(CP) $(PKG_INSTALL_DIR)/usr/include/qrencode.h $(1)/usr/include/
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libqrencode.{a,so*} $(1)/usr/lib/
59 $(CP) $(PKG_BUILD_DIR)/libqrencode.pc $(1)/usr/lib/pkgconfig/
62 define Package/libqrencode/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libqrencode.so* $(1)/usr/lib/
67 $(eval $(call BuildPackage,libqrencode))