fix depends dir
[buildroot.git] / package / atk / atk.mk
blob1569f21ea2743e8929ea822fa57bd698b7cce025
1 #############################################################
3 # atk
5 #############################################################
6 ATK_VERSION:=1.9.1
7 ATK_SOURCE:=atk-$(ATK_VERSION).tar.bz2
8 ATK_SITE:=ftp://ftp.gtk.org/pub/gtk/v2.10/dependencies
9 ATK_CAT:=$(BZCAT)
10 ATK_DIR:=$(BUILD_DIR)/atk-$(ATK_VERSION)
11 ATK_BINARY:=libatk-1.0.a
13 $(DL_DIR)/$(ATK_SOURCE):
14 $(WGET) -P $(DL_DIR) $(ATK_SITE)/$(ATK_SOURCE)
16 $(ATK_DIR)/.unpacked: $(DL_DIR)/$(ATK_SOURCE)
17 $(ATK_CAT) $(DL_DIR)/$(ATK_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
18 toolchain/patch-kernel.sh $(ATK_DIR) package/atk/ \*.patch*
19 $(CONFIG_UPDATE) $(ATK_DIR)
20 touch $(ATK_DIR)/.unpacked
22 $(ATK_DIR)/.configured: $(ATK_DIR)/.unpacked
23 (cd $(ATK_DIR); rm -rf config.cache; \
24 $(TARGET_CONFIGURE_OPTS) \
25 $(TARGET_CONFIGURE_ARGS) \
26 ac_cv_func_posix_getpwuid_r=yes \
27 glib_cv_stack_grows=no \
28 glib_cv_uscore=no \
29 ac_cv_func_strtod=yes \
30 ac_fsusage_space=yes \
31 fu_cv_sys_stat_statfs2_bsize=yes \
32 ac_cv_func_closedir_void=no \
33 ac_cv_func_getloadavg=no \
34 ac_cv_lib_util_getloadavg=no \
35 ac_cv_lib_getloadavg_getloadavg=no \
36 ac_cv_func_getgroups=yes \
37 ac_cv_func_getgroups_works=yes \
38 ac_cv_func_chown_works=yes \
39 ac_cv_have_decl_euidaccess=no \
40 ac_cv_func_euidaccess=no \
41 ac_cv_have_decl_strnlen=yes \
42 ac_cv_func_strnlen_working=yes \
43 ac_cv_func_lstat_dereferences_slashed_symlink=yes \
44 ac_cv_func_lstat_empty_string_bug=no \
45 ac_cv_func_stat_empty_string_bug=no \
46 vb_cv_func_rename_trailing_slash_bug=no \
47 ac_cv_have_decl_nanosleep=yes \
48 jm_cv_func_nanosleep_works=yes \
49 gl_cv_func_working_utimes=yes \
50 ac_cv_func_utime_null=yes \
51 ac_cv_have_decl_strerror_r=yes \
52 ac_cv_func_strerror_r_char_p=no \
53 jm_cv_func_svid_putenv=yes \
54 ac_cv_func_getcwd_null=yes \
55 ac_cv_func_getdelim=yes \
56 ac_cv_func_mkstemp=yes \
57 utils_cv_func_mkstemp_limitations=no \
58 utils_cv_func_mkdir_trailing_slash_bug=no \
59 ac_cv_func_memcmp_working=yes \
60 ac_cv_have_decl_malloc=yes \
61 gl_cv_func_malloc_0_nonnull=yes \
62 ac_cv_func_malloc_0_nonnull=yes \
63 ac_cv_func_calloc_0_nonnull=yes \
64 ac_cv_func_realloc_0_nonnull=yes \
65 jm_cv_func_gettimeofday_clobber=no \
66 gl_cv_func_working_readdir=yes \
67 jm_ac_cv_func_link_follows_symlink=no \
68 utils_cv_localtime_cache=no \
69 ac_cv_struct_st_mtim_nsec=no \
70 gl_cv_func_tzset_clobber=no \
71 gl_cv_func_getcwd_null=yes \
72 gl_cv_func_getcwd_path_max=yes \
73 ac_cv_func_fnmatch_gnu=yes \
74 am_getline_needs_run_time_check=no \
75 am_cv_func_working_getline=yes \
76 gl_cv_func_mkdir_trailing_slash_bug=no \
77 gl_cv_func_mkstemp_limitations=no \
78 ac_cv_func_working_mktime=yes \
79 jm_cv_func_working_re_compile_pattern=yes \
80 ac_use_included_regex=no \
81 gl_cv_c_restrict=no \
82 ac_cv_path_GLIB_GENMARSHAL=/usr/bin/glib-genmarshal \
83 ac_cv_prog_F77=no \
84 ac_cv_prog_CXX=no \
85 ./configure \
86 --target=$(GNU_TARGET_NAME) \
87 --host=$(REAL_GNU_TARGET_NAME) \
88 --build=$(GNU_HOST_NAME) \
89 --prefix=/usr \
90 --exec-prefix=/usr \
91 --bindir=/usr/bin \
92 --sbindir=/usr/sbin \
93 --libdir=/lib \
94 --libexecdir=/usr/lib \
95 --sysconfdir=/etc \
96 --datadir=/usr/share \
97 --localstatedir=/var \
98 --includedir=/include \
99 --mandir=/usr/man \
100 --infodir=/usr/info \
101 --enable-shared \
102 --enable-static \
103 --with-x \
104 --x-includes=$(STAGING_DIR)/usr/include/X11 \
105 --x-libraries=$(STAGING_DIR)/usr/lib \
106 --disable-glibtest \
107 --enable-explicit-deps=no \
108 --disable-debug \
110 touch $(ATK_DIR)/.configured
112 $(ATK_DIR)/atk/.libs/$(ATK_BINARY): $(ATK_DIR)/.configured
113 $(MAKE) CC=$(TARGET_CC) -C $(ATK_DIR)
114 touch -c $(ATK_DIR)/atk/.libs/$(ATK_BINARY)
116 $(STAGING_DIR)/lib/$(ATK_BINARY): $(ATK_DIR)/atk/.libs/$(ATK_BINARY)
117 $(MAKE) DESTDIR=$(STAGING_DIR) -C $(ATK_DIR) install
118 $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" $(STAGING_DIR)/lib/libatk-1.0.la
119 touch -c $(STAGING_DIR)/lib/$(ATK_BINARY)
121 $(TARGET_DIR)/lib/libatk-1.0.so.0: $(STAGING_DIR)/lib/$(ATK_BINARY)
122 cp -a $(STAGING_DIR)/lib/libatk-1.0.so $(TARGET_DIR)/lib/
123 cp -a $(STAGING_DIR)/lib/libatk-1.0.so.0* $(TARGET_DIR)/lib/
124 $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/lib/libatk-1.0.so.0.*
125 touch -c $(TARGET_DIR)/lib/libatk-1.0.so.0
127 atk: libglib2 pkgconfig $(TARGET_DIR)/lib/libatk-1.0.so.0
129 atk-source: $(DL_DIR)/$(ATK_SOURCE)
131 atk-clean:
132 rm -f $(TARGET_DIR)/lib/$(ATK_BINARY)
133 -$(MAKE) -C $(ATK_DIR) clean
135 atk-dirclean:
136 rm -rf $(ATK_DIR)
138 #############################################################
140 # Toplevel Makefile options
142 #############################################################
143 ifeq ($(BR2_PACKAGE_ATK),y)
144 TARGETS+=atk
145 endif