disable speedbooster if wds is enabled
[openwrt.git] / package / glib / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := glib
6 PKG_VERSION := 1.2.10
7 PKG_RELEASE := 1
8 PKG_MD5SUM := 6fe30dad87c77b91b632def29dd69ef9
9
10 PKG_SOURCE_URL := ftp://ftp.gtk.org/pub/gtk/v1.2 \
11 http://ftp.gwdg.de/pub/misc/grafik/gimp/gtk/v1.2/ \
12 http://ftp.esat.net/mirrors/ftp.gimp.org/pub/gtk/v1.2/ \
13 http://www.mirrorservice.org/sites/ftp.gimp.org/pub/gtk/v1.2/
14 PKG_SOURCE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_CAT := zcat
16
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
19
20 include $(TOPDIR)/package/rules.mk
21
22 $(eval $(call PKG_template,GLIB1,glib1,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24
25 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
26 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
27 glib_cv_sizeof_gmutex=24 \
28 ac_cv_sizeof_char=1 \
29 ac_cv_sizeof_short=2 \
30 ac_cv_sizeof_int=4 \
31 ac_cv_sizeof_long=4 \
32 ac_cv_sizeof_long_long=8 \
33 ac_cv_sizeof_void_p=4 \
34 glib_cv_prog_cc_ansi_proto="no" \
35 glib_cv_has__inline="yes" \
36 glib_cv_has__inline__="yes" \
37 glib_cv_hasinline="yes" \
38 glib_cv_sane_realloc="yes" \
39 glib_cv_va_copy="no" \
40 glib_cv___va_copy="yes" \
41 glib_cv_va_val_copy="yes" \
42 glib_cv_rtldglobal_broken="no" \
43 glib_cv_uscore="no" \
44 ac_cv_func_getpwuid_r="yes" \
45 glib_cv_func_pthread_mutex_trylock_posix="yes" \
46 glib_cv_func_pthread_cond_timedwait_posix="yes" \
47 glib_cv_sizeof_gmutex="24" \
48 glib_cv_byte_contents_gmutex="0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" \
49 $(TARGET_CONFIGURE_OPTS) \
50 CFLAGS="$(TARGET_CFLAGS)" \
51 LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
52 ./configure \
53 --target=$(GNU_TARGET_NAME) \
54 --host=$(GNU_TARGET_NAME) \
55 --build=$(GNU_HOST_NAME) \
56 --program-prefix="" \
57 --program-suffix="" \
58 --prefix=/usr \
59 --exec-prefix=/usr \
60 --bindir=/usr/bin \
61 --sbindir=/usr/sbin \
62 --libexecdir=/usr/lib \
63 --sysconfdir=/etc \
64 --datadir=/usr/share \
65 --localstatedir=/var \
66 --mandir=/usr/man \
67 --infodir=/usr/info \
68 $(DISABLE_NLS) \
69 $(DISABLE_LARGEFILE) \
70 --enable-shared=yes \
71 --enable-static=yes \
72 );
73 touch $@
74
75 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
76 rm -rf $(PKG_INSTALL_DIR)
77 mkdir -p $(PKG_INSTALL_DIR)
78 $(MAKE) -C $(PKG_BUILD_DIR) \
79 DESTDIR="$(PKG_INSTALL_DIR)" \
80 install
81 touch $@
82
83 $(IPKG_GLIB1):
84 install -m0755 -d $(IDIR_GLIB1)/usr/lib
85 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libg{lib,module,thread}-1.2.so.* $(IDIR_GLIB1)/usr/lib/
86 $(RSTRIP) $(IDIR_GLIB1)
87 $(IPKG_BUILD) $(IDIR_GLIB1) $(PACKAGE_DIR)
88
89 $(STAGING_DIR)/usr/lib/libglib.so: $(PKG_BUILD_DIR)/.built
90 mkdir -p $(STAGING_DIR)/usr/bin
91 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/glib-config $(STAGING_DIR)/usr/bin/
92 mkdir -p $(STAGING_DIR)/usr/include
93 cp -fpR $(PKG_INSTALL_DIR)/usr/include/glib-1.2 $(STAGING_DIR)/usr/include/
94 cp -fpR $(PKG_BUILD_DIR)/glibconfig-sysdefs.h $(STAGING_DIR)/usr/include/glib-1.2/
95 mkdir -p $(STAGING_DIR)/usr/lib
96 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libg{lib,module,thread}.{a,so} $(STAGING_DIR)/usr/lib/
97 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libg{lib,module,thread}-*.so.* $(STAGING_DIR)/usr/lib/
98 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/glib $(STAGING_DIR)/usr/lib/
99 mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
100 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/g{lib,module,thread}.pc $(STAGING_DIR)/usr/lib/pkgconfig/
101 touch $(STAGING_DIR)/usr/lib/libglib.so
102
103 install-dev: $(STAGING_DIR)/usr/lib/libglib.so
104
105 uninstall-dev:
106 rm -rf $(STAGING_DIR)/usr/bin/glib-config
107 rm -rf $(STAGING_DIR)/usr/include/glib-1.2
108 rm -rf $(STAGING_DIR)/usr/lib/libg{lib,module,thread}.{a,so}
109 rm -rf $(STAGING_DIR)/usr/lib/libg{lib,module,thread}-*.so.*
110 rm -rf $(STAGING_DIR)/usr/lib/glib
111 rm -rf $(STAGING_DIR)/usr/lib/pkgconfig/g{lib,module,thread}.pc
112
113 compile: install-dev
114 clean: uninstall-dev
This page took 0.052094 seconds and 5 git commands to generate.