Update cairo from 1.2.4 to 1.6.4 and remove usless stuff from Makefile
[openwrt/svn-archive/archive.git] / XOrg / lib / cairo / Makefile
1 #
2 # Copyright (C) 2008 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:=cairo
11 PKG_VERSION:=1.6.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://cairographics.org/releases/
16 PKG_FIXUP = libtool
17 PKG_MD5SUM:=a198d509f9e3a35b78de8bb02174ebb9
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/cairo
22 SECTION:=xorg-libs
23 CATEGORY:=Xorg
24 SUBMENU:=libraries
25 TITLE:=2D graphics library with support for multiple output devices
26 DEPENDS:=+xorg-server-essentials +fontconfig +libpng +libexpat
27 endef
28
29 CONFIGURE_VARS += FONTCONFIG_LIBS="-lfreetype -lfontconfig -lz -lexpat"
30 CONFIGURE_ARGS += --enable-freetype=yes
31 TARGET_CFLAGS += -L$(STAGING_DIR)/usr/lib
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR)
35 $(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
36 endef
37
38 define Build/InstallDev
39 $(INSTALL_DIR) $(1)
40 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
41 $(SED) "s,-L/usr/local/lib,,g" $(1)/usr/lib/libcairo.la
42 $(SED) "s,/usr/lib/libfontconfig.la,$(STAGING_DIR)/usr/lib/libfontconfig.la,g" $(1)/usr/lib/libcairo.la
43 $(SED) "s,$(STAGING_DIR)$(STAGING_DIR),$(STAGING_DIR),g" $(1)/usr/lib/libcairo.la
44 endef
45
46 define Package/cairo/Install
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
49 endef
50
51 $(eval $(call BuildPackage,cairo))