Retain symlinks. $(INSTALL_*) copys the contens of a file, so if we want to keep
[openwrt/svn-archive/archive.git] / libs / 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 # $Id:
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libwnck
12 PKG_VERSION:=2.22.3
13 PKG_RELEASE:=3
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.22/
17 PKG_MD5SUM:=12cf787efa0b9d95bc53613bcc7d958e
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include/ \
23 -I$(STAGING_DIR)/usr/lib/libiconv/include/
24 EXTRA_LDFLAGS+=-L$(STAGING_DIR)/usr/lib/libintl/lib/ \
25 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
26
27 define Package/libwnck
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=Window Navigator Construction Kit
31 URL:=http://ftp.gnome.org/
32 DEPENDS:=+gtk2 +glib2 +libXext
33 endef
34
35 define Package/libwnck/description
36 Window Navigator Construction Kit
37 endef
38
39 TARGET_CFLAGS += $(FPIC)
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR)
43 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
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))