packages/XOrg/lib/gtk1/Makefile
nbd 455776a64e remove a few obsolete dependencies now that dependency propagation is fixed
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12108 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-04 23:47:22 +00:00

67 lines
1.6 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# blogic@openwrt.org
include $(TOPDIR)/rules.mk
PKG_NAME:=gtk1
PKG_VERSION:=1.2.10
PKG_RELEASE:=1
PKG_SOURCE:=gtk+-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:= \
ftp://ftp.gtk.org/pub/gtk/v1.2/ \
http://gd.tuwien.ac.at/graphics/gimp/gtk/v1.2/
PKG_BUILD_DIR=$(BUILD_DIR)/gtk+-1.2.10
include $(INCLUDE_DIR)/package.mk
CONFIGURE_ARGS_XTRA+=--x-includes=$(STAGING_DIR)/usr/include/ \
--x-libraries=$(STAGING_DIR)/usr/lib \
--with-glib-prefix=$(STAGING_DIR)/usr/ \
--enable-static=yes \
--enable-static=yes
EXTRA_CFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
TARGET_CFLAGS+= -I$(STAGING_DIR)/usr/include/glib-1.2 -I$(STAGING_DIR)/usr/lib/glib/include
EXTRA_LDFLAGS+=-lnotimpl -lglib -lgmodule
define Package/gtk1
SECTION:=xorg-framework
CATEGORY:=Xorg
SUBMENU:=framework
TITLE:=GTK+ 1.2.10 package
DEPENDS:=+glib1 +libX11
endef
define Build/Configure
(cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
if [ -x $(CONFIGURE_CMD) ]; then \
$(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
$(CONFIGURE_VARS) \
$(CONFIGURE_CMD) \
$(CONFIGURE_ARGS_XTRA) \
$(CONFIGURE_ARGS) ;\
fi \
)
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)
$(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
$(INSTALL_DIR) $(2)/bin
mv $(1)/usr/bin/gtk-config $(2)/bin/
$(SED) "s,libdirs=-L.*,libdirs=,g" $(2)/bin/gtk-config
endef
$(eval $(call BuildPackage,gtk1))