2033c1689d01be5f8e34191a2e6722922039cb30
[openwrt/svn-archive/archive.git] / Xorg / lib / wnck / 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:=libwnck
11 PKG_VERSION:=2.26.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.26/
16 PKG_MD5SUM:=015b5d2e65d15448fa143513fce03541
17 PKG_FIXUP:=libtool
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 TARGET_CFLAGS+= \
23 -I$(STAGING_DIR)/usr/lib/libintl/include/ \
24 -I$(STAGING_DIR)/usr/lib/libiconv/include/ \
25 $(FPIC)
26
27 TARGET_LDFLAGS+= \
28 -L$(STAGING_DIR)/usr/lib/libintl/lib/ \
29 -L$(STAGING_DIR)/usr/lib/libiconv/lib/ \
30 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
31 -Wl,-rpath=/usr/lib
32
33 define Package/libwnck
34 SECTION:=xorg-libs
35 CATEGORY:=Xorg
36 SUBMENU:=libraries
37 TITLE:=Window Navigator Construction Kit
38 URL:=http://ftp.gnome.org/
39 DEPENDS:=+gtk2 +glib2 +libXext
40 endef
41
42 define Package/libwnck/description
43 Window Navigator Construction Kit
44 endef
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include/libwnck-1.0/libwnck/
48 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/libwnck-1.0/libwnck/* $(1)/usr/include/libwnck-1.0/libwnck/
49 $(INSTALL_DIR) $(1)/usr/lib/
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*{.so*,a,la} $(1)/usr/lib/
51 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
52 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
53 endef
54
55 define Package/libwnck/install
56 $(INSTALL_DIR) $(1)/usr/lib/
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,libwnck))