2006-07-11 00:06:45 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libgtk1.2
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
LIBGTK12_VERSION:=1.2.10
|
|
|
|
LIBGTK12_SOURCE:=gtk+-$(LIBGTK12_VERSION).tar.gz
|
2006-07-11 00:06:45 +02:00
|
|
|
LIBGTK12_SITE:=http://ftp.gnome.org/pub/gnome/sources/gtk+/1.2
|
2006-10-01 17:17:52 +02:00
|
|
|
LIBGTK12_CAT:=$(ZCAT)
|
2007-07-11 16:06:06 +02:00
|
|
|
LIBGTK12_DIR:=$(BUILD_DIR)/gtk+-$(LIBGTK12_VERSION)
|
2006-07-11 00:06:45 +02:00
|
|
|
LIBGTK12_BINARY:=libgtk.a
|
|
|
|
|
|
|
|
|
|
|
|
$(DL_DIR)/$(LIBGTK12_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(LIBGTK12_SITE)/$(LIBGTK12_SOURCE)
|
|
|
|
|
|
|
|
libgtk12-source: $(DL_DIR)/$(LIBGTK12_SOURCE)
|
|
|
|
|
|
|
|
$(LIBGTK12_DIR)/.unpacked: $(DL_DIR)/$(LIBGTK12_SOURCE)
|
|
|
|
$(LIBGTK12_CAT) $(DL_DIR)/$(LIBGTK12_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
toolchain/patch-kernel.sh $(LIBGTK12_DIR) package/libgtk12/ \*.patch*
|
|
|
|
$(CONFIG_UPDATE) $(LIBGTK12_DIR)
|
|
|
|
touch $(LIBGTK12_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(LIBGTK12_DIR)/.configured: $(LIBGTK12_DIR)/.unpacked
|
|
|
|
(cd $(LIBGTK12_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2006-07-18 10:53:30 +02:00
|
|
|
GLIB_CONFIG=$(STAGING_DIR)/bin/glib-config \
|
2006-07-11 00:06:45 +02:00
|
|
|
./configure \
|
2007-01-14 04:52:21 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
2006-07-11 00:06:45 +02:00
|
|
|
--build=$(GNU_HOST_NAME) \
|
2007-01-14 04:52:21 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
2006-07-11 00:06:45 +02:00
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
2007-01-14 04:52:21 +01:00
|
|
|
--libdir=/lib \
|
2006-07-11 00:06:45 +02:00
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
2007-08-12 00:26:56 +02:00
|
|
|
--includedir=/usr/include \
|
2006-07-11 00:06:45 +02:00
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
|
|
|
$(DISABLE_NLS) \
|
|
|
|
--x-includes=$(STAGING_DIR)/usr/X11R6/include \
|
|
|
|
--x-libraries=$(STAGING_DIR)/usr/X11R6/lib \
|
|
|
|
--enable-debug=no \
|
|
|
|
--disable-glibtest \
|
|
|
|
--disable-xim \
|
|
|
|
--enable-shared \
|
|
|
|
);
|
|
|
|
touch $(LIBGTK12_DIR)/.configured
|
|
|
|
|
2006-07-18 10:53:30 +02:00
|
|
|
$(LIBGTK12_DIR)/gtk/.libs/$(LIBGTK12_BINARY): $(LIBGTK12_DIR)/.configured
|
2006-07-11 00:06:45 +02:00
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(LIBGTK12_DIR)
|
2006-07-18 10:53:30 +02:00
|
|
|
touch -c $(LIBGTK12_DIR)/gtk/.libs/$(LIBGTK12_BINARY)
|
2006-07-11 00:06:45 +02:00
|
|
|
|
2006-07-18 10:53:30 +02:00
|
|
|
$(STAGING_DIR)/lib/$(LIBGTK12_BINARY): $(LIBGTK12_DIR)/gtk/.libs/$(LIBGTK12_BINARY)
|
2006-07-11 00:06:45 +02:00
|
|
|
$(MAKE) prefix=$(STAGING_DIR) \
|
|
|
|
exec_prefix=$(STAGING_DIR) \
|
|
|
|
bindir=$(STAGING_DIR)/bin \
|
|
|
|
sbindir=$(STAGING_DIR)/sbin \
|
2007-01-14 04:52:21 +01:00
|
|
|
libexecdir=$(STAGING_DIR)/bin \
|
2006-07-11 00:06:45 +02:00
|
|
|
datadir=$(STAGING_DIR)/share \
|
|
|
|
sysconfdir=$(STAGING_DIR)/etc \
|
|
|
|
sharedstatedir=$(STAGING_DIR)/com \
|
|
|
|
localstatedir=$(STAGING_DIR)/var \
|
|
|
|
libdir=$(STAGING_DIR)/lib \
|
2007-08-12 00:26:56 +02:00
|
|
|
includedir=$(STAGING_DIR)/usr/include \
|
2006-07-11 00:06:45 +02:00
|
|
|
oldincludedir=$(STAGING_DIR)/include \
|
|
|
|
infodir=$(STAGING_DIR)/info \
|
|
|
|
mandir=$(STAGING_DIR)/man \
|
|
|
|
-C $(LIBGTK12_DIR) install;
|
2006-07-18 10:53:30 +02:00
|
|
|
touch -c $(STAGING_DIR)/lib/$(LIBGTK12_BINARY)
|
2006-07-11 00:06:45 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/lib/libgtk-1.2.so.0.9.1: $(STAGING_DIR)/lib/$(LIBGTK12_BINARY)
|
|
|
|
cp -a $(STAGING_DIR)/lib/libgtk.so $(TARGET_DIR)/lib/
|
|
|
|
cp -a $(STAGING_DIR)/lib/libgtk-1.2.so.0 $(TARGET_DIR)/lib/
|
|
|
|
cp -a $(STAGING_DIR)/lib/libgtk-1.2.so.0.9.1 $(TARGET_DIR)/lib/
|
|
|
|
cp -a $(STAGING_DIR)/lib/libgdk.so $(TARGET_DIR)/lib/
|
|
|
|
cp -a $(STAGING_DIR)/lib/libgdk-1.2.so.0 $(TARGET_DIR)/lib/
|
|
|
|
cp -a $(STAGING_DIR)/lib/libgdk-1.2.so.0.9.1 $(TARGET_DIR)/lib/
|
|
|
|
$(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libgtk-1.2.so.0.9.1
|
|
|
|
$(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libgdk-1.2.so.0.9.1
|
2006-07-18 10:53:30 +02:00
|
|
|
touch -c $(TARGET_DIR)/lib/libgtk-1.2.so.0.9.1
|
2006-07-11 00:06:45 +02:00
|
|
|
|
2007-02-04 20:47:41 +01:00
|
|
|
libgtk12: uclibc libglib12 $(XSERVER) $(TARGET_DIR)/lib/libgtk-1.2.so.0.9.1
|
2006-07-11 00:06:45 +02:00
|
|
|
|
|
|
|
libgtk12-clean:
|
|
|
|
rm -f $(TARGET_DIR)/lib/libgtk* $(TARGET_DIR)/lib/libgdk*
|
|
|
|
-$(MAKE) -C $(LIBGTK12_DIR) clean
|
|
|
|
|
|
|
|
libgtk12-dirclean:
|
|
|
|
rm -rf $(LIBGTK12_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_LIBGTK12)),y)
|
|
|
|
TARGETS+=libgtk12
|
|
|
|
endif
|