source: packages/XOrg/lib/atk/Makefile @ 9950

Last change on this file since 9950 was 9950, checked in by nbd, 9 years ago

enable libtool fixups for atk

File size: 1.4 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# blogic@openwrt.org
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=atk
12PKG_VERSION:=1.11.4
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16PKG_SOURCE_URL:=http://ftp.gnome.org/pub/gnome/sources/atk/1.11/
17PKG_FIXUP:=libtool
18
19include $(INCLUDE_DIR)/package.mk
20
21EXTRA_LDFLAGS:=-L$(STAGING_DIR)/usr/lib/libiconv/lib/ -L$(STAGING_DIR)/usr/lib/libintl/lib/
22
23define Package/atk
24  SECTION:=xorg-libs
25  CATEGORY:=Xorg
26  SUBMENU:=libraries
27  TITLE:=Accesibility library for gtk+ apps
28  DEPENDS:=+xorg-server-essentials +glib2
29endef
30
31define Build/Configure
32        (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
33                if [ -x $(CONFIGURE_CMD) ]; then \
34                        $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
35                        $(CONFIGURE_VARS) \
36                        $(CONFIGURE_CMD) \
37                        $(CONFIGURE_ARGS_XTRA) \
38                        $(CONFIGURE_ARGS) ;\
39                fi \
40        )
41endef
42
43define Build/Compile
44        $(MAKE) -C $(PKG_BUILD_DIR) all install DESTDIR=$(PKG_INSTALL_DIR)
45endef
46
47define Build/InstallDev
48        $(INSTALL_DIR) $(1)/usr/{lib,include}
49        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(1)/usr/lib
50        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ $(1)/usr/lib/
51        $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
52endef
53
54define Package/atk/Install
55        $(INSTALL_DIR) $(1)/usr/lib
56        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
57endef
58
59$(eval $(call BuildPackage,atk))
Note: See TracBrowser for help on using the repository browser.