2002-05-03 11:52:44 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libglib1.2
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
LIBGLIB12_SOURCE:=glib-1.2.10.tar.gz
|
2006-10-09 23:09:20 +02:00
|
|
|
LIBGLIB12_SITE:=http://ftp.gtk.org/pub/gtk/v1.2
|
2006-10-01 17:17:52 +02:00
|
|
|
LIBGLIB12_CAT:=$(ZCAT)
|
2002-05-03 11:52:44 +02:00
|
|
|
LIBGLIB12_DIR:=$(BUILD_DIR)/glib-1.2.10
|
2003-09-04 10:15:44 +02:00
|
|
|
LIBGLIB12_BINARY:=libglib.a
|
|
|
|
|
2006-09-19 17:16:55 +02:00
|
|
|
ifeq ($(BR2_ENDIAN),"BIG")
|
|
|
|
LIBGLIB12_BE:=yes
|
|
|
|
else
|
|
|
|
LIBGLIB12_BE:=no
|
|
|
|
endif
|
2002-05-03 11:52:44 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(LIBGLIB12_SOURCE):
|
2002-11-21 00:16:10 +01:00
|
|
|
$(WGET) -P $(DL_DIR) $(LIBGLIB12_SITE)/$(LIBGLIB12_SOURCE)
|
2002-05-03 11:52:44 +02:00
|
|
|
|
|
|
|
libglib12-source: $(DL_DIR)/$(LIBGLIB12_SOURCE)
|
|
|
|
|
|
|
|
$(LIBGLIB12_DIR)/.unpacked: $(DL_DIR)/$(LIBGLIB12_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(LIBGLIB12_CAT) $(DL_DIR)/$(LIBGLIB12_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2005-09-08 03:51:36 +02:00
|
|
|
toolchain/patch-kernel.sh $(LIBGLIB12_DIR) package/libglib12/ \*.patch*
|
|
|
|
$(CONFIG_UPDATE) $(LIBGLIB12_DIR)
|
2002-05-03 11:52:44 +02:00
|
|
|
touch $(LIBGLIB12_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(LIBGLIB12_DIR)/.configured: $(LIBGLIB12_DIR)/.unpacked
|
2003-01-17 09:03:59 +01:00
|
|
|
(cd $(LIBGLIB12_DIR); rm -rf config.cache; \
|
2003-03-04 20:16:19 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-03-13 23:59:59 +01:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
2006-09-19 17:16:55 +02:00
|
|
|
ac_cv_c_bigendian=$(LIBGLIB12_BE) \
|
2003-01-17 09:03:59 +01:00
|
|
|
./configure \
|
2007-01-14 04:52:21 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
2005-09-08 03:51:36 +02:00
|
|
|
--build=$(GNU_HOST_NAME) \
|
2007-01-14 04:52:21 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
2003-01-17 09:03:59 +01:00
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
2007-01-14 04:52:21 +01:00
|
|
|
--libdir=/lib \
|
2003-01-17 09:03:59 +01:00
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
2007-01-14 04:52:21 +01:00
|
|
|
--includedir=/include \
|
2003-01-17 09:03:59 +01:00
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
|
|
|
--enable-shared \
|
2006-07-11 00:06:11 +02:00
|
|
|
$(DISABLE_NLS) \
|
2002-05-03 11:52:44 +02:00
|
|
|
);
|
2005-11-24 07:53:24 +01:00
|
|
|
touch $(LIBGLIB12_DIR)/.configured
|
2002-05-03 11:52:44 +02:00
|
|
|
|
|
|
|
$(LIBGLIB12_DIR)/.libs/$(LIBGLIB12_BINARY): $(LIBGLIB12_DIR)/.configured
|
2003-01-19 07:07:22 +01:00
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(LIBGLIB12_DIR)
|
2002-05-03 11:52:44 +02:00
|
|
|
|
|
|
|
$(STAGING_DIR)/lib/$(LIBGLIB12_BINARY): $(LIBGLIB12_DIR)/.libs/$(LIBGLIB12_BINARY)
|
2003-09-04 10:15:44 +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 \
|
2003-09-04 10:15:44 +02:00
|
|
|
datadir=$(STAGING_DIR)/share \
|
|
|
|
sysconfdir=$(STAGING_DIR)/etc \
|
|
|
|
sharedstatedir=$(STAGING_DIR)/com \
|
|
|
|
localstatedir=$(STAGING_DIR)/var \
|
|
|
|
libdir=$(STAGING_DIR)/lib \
|
|
|
|
includedir=$(STAGING_DIR)/include \
|
|
|
|
oldincludedir=$(STAGING_DIR)/include \
|
|
|
|
infodir=$(STAGING_DIR)/info \
|
|
|
|
mandir=$(STAGING_DIR)/man \
|
|
|
|
-C $(LIBGLIB12_DIR) install;
|
2002-05-03 11:52:44 +02:00
|
|
|
|
2006-07-11 00:06:11 +02:00
|
|
|
$(TARGET_DIR)/lib/libglib-1.2.so.0.0.10: $(STAGING_DIR)/lib/$(LIBGLIB12_BINARY)
|
2007-01-21 18:20:38 +01:00
|
|
|
cp -dpf $(STAGING_DIR)/lib/libglib.so $(TARGET_DIR)/lib/
|
|
|
|
cp -dpf $(STAGING_DIR)/lib/libglib-1.2.so.0 $(TARGET_DIR)/lib/
|
|
|
|
cp -dpf $(STAGING_DIR)/lib/libglib-1.2.so.0.0.10 $(TARGET_DIR)/lib/
|
|
|
|
cp -dpf $(STAGING_DIR)/lib/libgmodule.so $(TARGET_DIR)/lib/
|
|
|
|
cp -dpf $(STAGING_DIR)/lib/libgmodule-1.2.so.0 $(TARGET_DIR)/lib/
|
|
|
|
cp -dpf $(STAGING_DIR)/lib/libgmodule-1.2.so.0.0.10 $(TARGET_DIR)/lib/
|
2006-07-11 00:06:11 +02:00
|
|
|
$(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libglib-1.2.so.0.0.10
|
|
|
|
$(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libgmodule-1.2.so.0.0.10
|
2002-05-03 11:52:44 +02:00
|
|
|
|
2006-07-11 00:06:11 +02:00
|
|
|
libglib12: uclibc $(TARGET_DIR)/lib/libglib-1.2.so.0.0.10
|
2002-05-03 11:52:44 +02:00
|
|
|
|
|
|
|
libglib12-clean:
|
|
|
|
rm -f $(TARGET_DIR)/lib/$(LIBGLIB12_BINARY)
|
2003-01-17 09:03:59 +01:00
|
|
|
-$(MAKE) -C $(LIBGLIB12_DIR) clean
|
2002-05-03 11:52:44 +02:00
|
|
|
|
|
|
|
libglib12-dirclean:
|
|
|
|
rm -rf $(LIBGLIB12_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_LIBGLIB12)),y)
|
|
|
|
TARGETS+=libglib12
|
|
|
|
endif
|