1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
10 PKG_HASH
:= 40ef3f44f2c651c7a31aedee44259809b6f03d3d20be44545cd7d177221c0b8d
11 PKG_DESCR
:= low-level core library that forms the basis of gtk
+
12 PKG_SECTION
:= libs
/misc
13 PKG_DEPENDS
:= libpcre zlib
14 PKG_BUILDDEP
:= glib-host libffi zlib libelf dbus pcre
15 HOST_BUILDDEP
:= pkgconf-host libiconv-host libffi-host python2-host gettext-host util-linux-host
16 PKG_NEEDS
:= threads intl iconv
17 PKG_URL
:= http
://www.gtk.org
/
18 PKG_SITES
:= http
://ftp.gnome.org
/pub
/GNOME
/sources
/glib
/$(PKG_EXTRAVER
)/
19 PKG_OPTS
:= dev noscripts
21 include $(ADK_TOPDIR
)/mk
/host.mk
22 include $(ADK_TOPDIR
)/mk
/package.mk
24 $(eval
$(call HOST_template
,GLIB
,glib
,$(PKG_VERSION
)-$(PKG_RELEASE
)))
25 $(eval
$(call PKG_template
,GLIB
,glib
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKG_DEPENDS
),$(PKG_DESCR
),$(PKG_SECTION
),$(PKG_OPTS
)))
27 ifeq ($(ADK_PACKAGE_LIBICONV
),y
)
28 CONFIGURE_ARGS
+= --with-libiconv
=yes
30 CONFIGURE_ARGS
+= --with-libiconv
=no
32 CONFIGURE_ARGS
+= --disable-mem-pools \
36 --disable-compile-warnings \
39 CONFIGURE_ENV
+= glib_cv_long_long_format
=ll \
40 glib_cv_stack_grows
=no \
41 glib_cv_have_strlcpy
=no \
43 ac_cv_func_posix_getpwuid_r
=yes \
44 ac_cv_func_posix_getgrgid_r
=yes
47 HOST_CPPFLAGS
+= -I
$(STAGING_HOST_DIR
)/usr
/include/libmount
48 ifneq ($(OS_FOR_BUILD
),CYGWIN
)
51 HOST_CONFIGURE_ARGS
+= --disable-fam \
54 --with-pcre
=internal \
57 --disable-compile-warnings
60 $(CP
) $(STAGING_HOST_DIR
)/usr
/lib
/glib-2.0
/include/glibconfig.h \
61 $(STAGING_HOST_DIR
)/usr
/include/glib-2.0
/
64 $(INSTALL_DIR
) $(IDIR_GLIB
)/usr
/lib
65 $(CP
) $(WRKINST
)/usr
/lib
/libgio
*.so
* $(IDIR_GLIB
)/usr
/lib
66 $(CP
) $(WRKINST
)/usr
/lib
/libglib
*.so
* $(IDIR_GLIB
)/usr
/lib
67 $(CP
) $(WRKINST
)/usr
/lib
/libgobject
*.so
* $(IDIR_GLIB
)/usr
/lib
68 $(CP
) $(WRKINST
)/usr
/lib
/libgmodule
*.so
* $(IDIR_GLIB
)/usr
/lib
69 $(CP
) $(WRKINST
)/usr
/lib
/libgthread
*.so
* $(IDIR_GLIB
)/usr
/lib
70 # workaround for dev subpackage
71 $(INSTALL_DIR
) $(IDIR_GLIB_DEV
)/usr
/include
72 $(INSTALL_DIR
) $(IDIR_GLIB_DEV
)/usr
/lib
/glib-2.0
/include
73 $(CP
) $(WRKINST
)/usr
/lib
/glib-2.0
/include/glibconfig.h \
74 $(IDIR_GLIB_DEV
)/usr
/lib
/glib-2.0
/include
75 $(INSTALL_DIR
) $(IDIR_GLIB_DEV
)/usr
/bin
76 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/glib-genmarshal \
77 $(IDIR_GLIB_DEV
)/usr
/bin
79 include $(ADK_TOPDIR
)/mk
/host-bottom.mk
80 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk