2 # Copyright (C) 2011 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
://leptonica.googlecode.com
/files
/
16 PKG_MD5SUM
:=5cd7092f9ff2ca7e3f3e73bfcd556403
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/libleptonica
26 TITLE
:=A library for efficient image processing and image analysis operations
27 URL
:=http
://leptonica.googlecode.com
/
28 DEPENDS
:=+giflib
+libjpeg
+libpng
+libtiff
+zlib
31 TARGET_CFLAGS
+= $(FPIC
)
32 TARGET_LDFLAGS
+= -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib
34 define Build
/InstallDev
35 $(INSTALL_DIR
) $(1)/usr
/include
36 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/leptonica
$(1)/usr
/include/
37 $(INSTALL_DIR
) $(1)/usr
/lib
38 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/liblept.
{a
,so
*} $(1)/usr
/lib
/
41 define Package
/libleptonica
/install
42 $(INSTALL_DIR
) $(1)/usr
/lib
43 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/liblept.so.
* $(1)/usr
/lib
/
46 $(eval
$(call BuildPackage
,libleptonica
))