2008-10-03 22:38:55 +00:00
|
|
|
#
|
2009-04-29 12:56:17 +00:00
|
|
|
# Copyright (C) 2008-2009 OpenWrt.org
|
2008-05-15 21:06:37 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2008-06-23 07:58:37 +00:00
|
|
|
PKG_NAME:=gtk2
|
2009-10-10 23:06:44 +00:00
|
|
|
PKG_VERSION:=2.18.2
|
|
|
|
PKG_RELEASE:=1
|
2008-05-15 21:06:37 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=gtk+-$(PKG_VERSION).tar.bz2
|
2009-10-10 23:06:44 +00:00
|
|
|
PKG_SOURCE_URL:=@GNOME/gtk+/2.18
|
2008-09-01 23:29:05 +00:00
|
|
|
PKG_BUILD_DIR=$(BUILD_DIR)/gtk+-$(PKG_VERSION)
|
2009-10-10 23:06:44 +00:00
|
|
|
iPKG_MD5SUM:=9477986b58d7ee5e559b96e7a124bead
|
2008-09-01 23:29:05 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2008-05-15 21:06:37 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-10-03 22:38:55 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
TARGET_CFLAGS+=\
|
2009-10-10 23:06:44 +00:00
|
|
|
-I$(STAGING_DIR)/usr/lib/libintl/include/ \
|
|
|
|
-I$(STAGING_DIR)/usr/lib/libiconv/include/
|
2008-10-03 22:38:55 +00:00
|
|
|
|
2009-10-10 23:06:44 +00:00
|
|
|
TARGET_LDFLAGS+=\
|
2008-10-03 22:38:55 +00:00
|
|
|
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
|
2008-12-14 23:51:19 +00:00
|
|
|
-L$(STAGING_DIR)/usr/lib/libintl/lib/ \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libiconv/lib/ \
|
2009-04-29 12:56:17 +00:00
|
|
|
$(TARGET_LDFLAGS)
|
2008-05-15 21:06:37 +00:00
|
|
|
|
2008-12-22 16:31:35 +00:00
|
|
|
STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,CONFIG_PACKAGE_gtk2 CONFIG_PACKAGE_gtk2-cups)
|
2008-05-15 21:06:37 +00:00
|
|
|
|
2008-06-23 07:58:37 +00:00
|
|
|
define Package/gtk2
|
2008-05-15 21:06:37 +00:00
|
|
|
SECTION:=xorg-framework
|
|
|
|
CATEGORY:=Xorg
|
|
|
|
SUBMENU:=framework
|
2008-09-04 12:37:27 +00:00
|
|
|
TITLE:=GTK+-2.0
|
2008-12-14 23:51:19 +00:00
|
|
|
DEPENDS:=+cairo +pango +libpng +libjpeg +atk +libtiff +libX11 +libXext \
|
|
|
|
+libXrender +libXfixes +libXrandr +libXcursor +libXdamage +libXcomposite \
|
|
|
|
+libXi
|
2008-05-15 21:06:37 +00:00
|
|
|
endef
|
|
|
|
|
2008-09-04 12:37:27 +00:00
|
|
|
define Package/gtk2-cups
|
|
|
|
SECTION:=xorg-framework
|
|
|
|
CATEGORY:=Xorg
|
|
|
|
SUBMENU:=framework
|
|
|
|
TITLE:=CUPS print backend for GTK+-2.0
|
|
|
|
DEPENDS:=gtk2 +cups
|
|
|
|
endef
|
|
|
|
|
2008-09-01 23:29:05 +00:00
|
|
|
define Build/Configure
|
2008-09-04 12:37:27 +00:00
|
|
|
$(call Build/Configure/Default, \
|
2008-12-14 23:51:19 +00:00
|
|
|
--enable-shm \
|
|
|
|
--disable-xkb \
|
2008-09-04 12:37:27 +00:00
|
|
|
--disable-glibtest \
|
2008-10-03 22:38:55 +00:00
|
|
|
--disable-gdiplus \
|
2008-11-16 19:31:42 +00:00
|
|
|
--disable-xinerama \
|
2008-10-03 22:38:55 +00:00
|
|
|
--without-libjasper \
|
2008-12-14 23:51:19 +00:00
|
|
|
--with-xinput \
|
2008-12-22 16:31:35 +00:00
|
|
|
$(if $(CONFIG_PACKAGE_gtk2-cups),--enable-cups=auto,--disable-cups), \
|
2008-09-04 12:37:27 +00:00
|
|
|
gio_can_sniff=no \
|
|
|
|
)
|
2008-09-01 23:29:05 +00:00
|
|
|
endef
|
|
|
|
|
2008-05-15 21:06:37 +00:00
|
|
|
define Build/InstallDev
|
2008-10-03 22:38:55 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include}
|
2008-09-04 12:37:27 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/gtk-2.0/include/* $(1)/usr/include/
|
2008-10-03 22:38:55 +00:00
|
|
|
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
2008-11-16 23:50:46 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
|
2008-10-03 22:38:55 +00:00
|
|
|
$(1)/usr/lib/
|
|
|
|
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
2008-05-15 21:06:37 +00:00
|
|
|
endef
|
|
|
|
|
2008-06-23 07:58:37 +00:00
|
|
|
define Package/gtk2/install
|
2008-10-03 22:38:55 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/gtk-2.0
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/etc/gtk-2.0/* \
|
|
|
|
$(1)/etc/gtk-2.0/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
2008-11-16 23:50:46 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
2008-10-03 22:38:55 +00:00
|
|
|
$(1)/usr/lib/
|
|
|
|
|
2008-09-04 12:37:27 +00:00
|
|
|
$(foreach d,engines immodules loaders, \
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/gtk-2.0/2.10.0/$(d); \
|
2008-10-03 22:38:55 +00:00
|
|
|
$(INSTALL_DATA) \
|
2008-11-16 23:50:46 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/gtk-2.0/2.10.0/$(d)/*.so \
|
2008-09-04 12:37:27 +00:00
|
|
|
$(1)/usr/lib/gtk-2.0/2.10.0/$(d)/;\
|
|
|
|
)
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/gtk-2.0/2.10.0/printbackends/
|
2008-10-03 22:38:55 +00:00
|
|
|
$(INSTALL_DATA) \
|
2008-11-16 23:50:46 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-{file,lpr}.so \
|
2008-10-03 22:38:55 +00:00
|
|
|
$(1)/usr/lib/gtk-2.0/2.10.0/printbackends/
|
2008-09-04 12:37:27 +00:00
|
|
|
|
2008-09-01 23:29:05 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin/
|
2008-10-03 22:38:55 +00:00
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/{gdk-pixbuf-query-loaders,gtk-query-immodules-2.0,gtk-update-icon-cache} \
|
|
|
|
$(1)/usr/bin/
|
|
|
|
|
2008-09-01 23:29:05 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/themes/
|
2008-10-03 22:38:55 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/themes/* \
|
|
|
|
$(1)/usr/share/themes/
|
|
|
|
|
2008-09-01 23:29:05 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
|
|
$(INSTALL_BIN) ./files/gdk-pixbuf-query-loaders.init $(1)/etc/init.d/gdk-pixbuf-query-loaders
|
2008-05-24 17:11:10 +00:00
|
|
|
endef
|
|
|
|
|
2008-09-04 12:37:27 +00:00
|
|
|
define Package/gtk2-cups/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/gtk-2.0/2.10.0/printbackends/
|
2008-10-03 22:38:55 +00:00
|
|
|
$(INSTALL_DATA) \
|
2008-11-16 23:50:46 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so \
|
2008-10-03 22:38:55 +00:00
|
|
|
$(1)/usr/lib/gtk-2.0/2.10.0/printbackends/
|
2008-09-04 12:37:27 +00:00
|
|
|
endef
|
|
|
|
|
2009-05-14 07:13:06 +00:00
|
|
|
$(eval $(call BuildPackage,gtk2))
|
|
|
|
$(eval $(call BuildPackage,gtk2-cups))
|
|
|
|
|