Makefile (2445B)
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 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=qrencode 11 PKG_VERSION:=3.4.4 12 PKG_RELEASE:=2 13 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+ 19 PKG_INSTALL:=1 20 PKG_FIXUP:=autoreconf 21 22 include $(INCLUDE_DIR)/package.mk 23 24 define Package/libqrencode 25 SECTION:=libs 26 CATEGORY:=Libraries 27 TITLE:=Library for encoding data in a QR Code symbol 28 URL:=http://fukuchi.org/works/qrencode/ 29 endef 30 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. 36 endef 37 38 define Package/qrencode 39 SECTION:=utils 40 CATEGORY:=Utilities 41 TITLE:=qrencode binary for producing qr codes 42 URL:=http://fukuchi.org/works/qrencode/ 43 DEPENDS:=+libqrencode 44 endef 45 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. 51 endef 52 53 54 CONFIGURE_ARGS+= \ 55 --enable-shared \ 56 --enable-static \ 57 --disable-rpath \ 58 --disable-sdltest \ 59 --without-tests 60 61 TARGET_LDFLAGS+= -s 62 63 define Build/Compile 64 $(MAKE) -C $(PKG_BUILD_DIR) \ 65 $(TARGET_CONFIGURE_OPTS) \ 66 CFLAGS="$(TARGET_CFLAGS)" \ 67 LDFLAGS="$(TARGET_LDFLAGS)" \ 68 DESTDIR="$(PKG_INSTALL_DIR)" \ 69 all install 70 endef 71 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/ 77 endef 78 79 define Package/libqrencode/install 80 $(INSTALL_DIR) $(1)/usr/lib 81 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libqrencode.so* $(1)/usr/lib/ 82 endef 83 84 define Package/qrencode/install 85 $(INSTALL_DIR) $(1)/usr/bin 86 $(CP) $(PKG_INSTALL_DIR)/usr/bin/qrencode $(1)/usr/bin/ 87 endef 88 89 $(eval $(call BuildPackage,libqrencode)) 90 $(eval $(call BuildPackage,qrencode))