source: packages/libs/leptonica/Makefile @ 28782

Last change on this file since 28782 was 28782, checked in by nico, 5 years ago

packages: add leptonica (used by upcoming tesseract package)

File size: 1.2 KB
Line 
1#
2# Copyright (C) 2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=leptonica
11PKG_VERSION:=1.68
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://leptonica.googlecode.com/files/
16PKG_MD5SUM:=5cd7092f9ff2ca7e3f3e73bfcd556403
17
18PKG_FIXUP:=libtool
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/libleptonica
24  SECTION:=libs
25  CATEGORY:=Libraries
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
29endef
30
31TARGET_CFLAGS += $(FPIC)
32TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
33
34define 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/
39endef
40
41define Package/libleptonica/install
42        $(INSTALL_DIR) $(1)/usr/lib
43        $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblept.so.* $(1)/usr/lib/
44endef
45
46$(eval $(call BuildPackage,libleptonica))
47
Note: See TracBrowser for help on using the repository browser.