21a8878fc0f4c7786fff55c123cb7c951f502368
[openwrt/svn-archive/archive.git] / lang / python-gnome-desktop2 / 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:=gnome-python-desktop
11 PKG_VERSION:=2.16.0
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=http://ftp.gnome.org/pub/GNOME/sources/gnome-python-desktop/2.16/
15 PKG_FIXUP:=libtool
16
17 include $(INCLUDE_DIR)/package.mk
18
19 EXTRA_CFLAGS+= -I$(STAGING_DIR)/usr/lib/libintl/include/ -I$(STAGING_DIR)/usr/lib/libiconv/include/
20 EXTRA_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
21
22 define Package/gnome-python-desktop
23 SUBMENU:=Python
24 SECTION:=lang
25 CATEGORY:=Languages
26 TITLE:=Window Navigator Construction Kit
27 URL:=http://ftp.gnome.org/
28 DEPENDS:=+libwnck +python-gtk
29 endef
30
31 define Package/gnome-python-desktop/description
32 python bindings for gnome
33 endef
34
35 define Build/Configure
36 (cd $(PKG_BUILD_DIR); \
37 if [ -x $(CONFIGURE_CMD) ]; then \
38 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
39 $(CONFIGURE_VARS) \
40 $(CONFIGURE_CMD) \
41 $(CONFIGURE_ARGS) ;\
42 fi \
43 )
44 endef
45
46 define Build/Compile
47 cd $(PKG_BUILD_DIR) ; DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) all install
48 endef
49
50 define Build/InstallDev
51 mkdir -p $(1)
52 cp -r $(PKG_INSTALL_DIR)/* $(1)
53 endef
54
55 define Package/gnome-python-desktop/install
56 mkdir -p $(1)
57 cp -r $(PKG_INSTALL_DIR)/* $(1)
58 endef
59
60 $(eval $(call BuildPackage,gnome-python-desktop))