libdlna: version bump to 0.2.4
[openwrt/svn-archive/archive.git] / libs / leptonica / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=leptonica
11 PKG_VERSION:=1.68
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://leptonica.googlecode.com/files/
16 PKG_MD5SUM:=5cd7092f9ff2ca7e3f3e73bfcd556403
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define 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
29 endef
30
31 TARGET_CFLAGS += $(FPIC)
32 TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
33
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/
39 endef
40
41 define Package/libleptonica/install
42 $(INSTALL_DIR) $(1)/usr/lib
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblept.so.* $(1)/usr/lib/
44 endef
45
46 $(eval $(call BuildPackage,libleptonica))
47