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 PKG_BUILD_DEPENDS
:=libpng
26 define Package
/libqrencode
29 TITLE
:=Library for encoding data in a QR Code symbol
30 URL
:=http
://fukuchi.org
/works
/qrencode
/
33 define Package
/libqrencode
/description
34 Libqrencode is a C library for encoding data in a QR Code symbol
,
35 a kind of
2D symbology that can be scanned by handy terminals such
36 as a mobile phone with CCD. The capacity of QR Code is up to
7000
37 digits or
4000 characters
, and is highly robust.
40 define Package
/qrencode
43 TITLE
:=qrencode binary for producing qr codes
44 URL
:=http
://fukuchi.org
/works
/qrencode
/
48 define Package
/qrencode
/description
49 Qrencode is a C program for encoding data in a QR Code symbol
,
50 a kind of
2D symbology that can be scanned by handy terminals such
51 as a mobile phone with CCD. The capacity of QR Code is up to
7000
52 digits or
4000 characters
, and is highly robust.
66 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
67 $(TARGET_CONFIGURE_OPTS
) \
68 CFLAGS
="$(TARGET_CFLAGS)" \
69 LDFLAGS
="$(TARGET_LDFLAGS)" \
70 DESTDIR
="$(PKG_INSTALL_DIR)" \
74 define Build
/InstallDev
75 $(INSTALL_DIR
) $(1)/usr
/include $(1)/usr
/lib
$(1)/usr
/lib
/pkgconfig
76 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/qrencode.h
$(1)/usr
/include/
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libqrencode.
{a
,so
*} $(1)/usr
/lib
/
78 $(CP
) $(PKG_BUILD_DIR
)/libqrencode.
pc $(1)/usr
/lib
/pkgconfig
/
81 define Package
/libqrencode
/install
82 $(INSTALL_DIR
) $(1)/usr
/lib
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libqrencode.so
* $(1)/usr
/lib
/
86 define Package
/qrencode
/install
87 $(INSTALL_DIR
) $(1)/usr
/bin
88 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/qrencode
$(1)/usr
/bin
/
91 $(eval
$(call BuildPackage
,libqrencode
))
92 $(eval
$(call BuildPackage
,qrencode
))