nsim: symbols got renamed
[openadk.git] / package / glib / Makefile
blob6cf4b874e21da33e066e88aeed3b5f19169a70d2
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
6 PKG_NAME:= glib
7 PKG_VERSION:= 2.56.1
8 PKG_RELEASE:= 1
9 PKG_EXTRAVER:= 2.56
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
29 else
30 CONFIGURE_ARGS+= --with-libiconv=no
31 endif
32 CONFIGURE_ARGS+= --disable-mem-pools \
33 --disable-rebuilds \
34 --disable-fam \
35 --disable-dtrace \
36 --disable-compile-warnings \
37 --with-pcre=system \
38 --with-threads=posix
39 CONFIGURE_ENV+= glib_cv_long_long_format=ll \
40 glib_cv_stack_grows=no \
41 glib_cv_have_strlcpy=no \
42 glib_cv_uscore=no \
43 ac_cv_func_posix_getpwuid_r=yes \
44 ac_cv_func_posix_getgrgid_r=yes
46 HOST_STYLE:= auto
47 HOST_CPPFLAGS+= -I$(STAGING_HOST_DIR)/usr/include/libmount
48 ifneq ($(OS_FOR_BUILD),CYGWIN)
49 HOST_CFLAGS+= -fPIC
50 endif
51 HOST_CONFIGURE_ARGS+= --disable-fam \
52 --disable-dtrace \
53 --enable-static \
54 --with-pcre=internal \
55 --with-libiconv=yes \
56 --disable-shared \
57 --disable-compile-warnings
59 hostpost-install:
60 $(CP) $(STAGING_HOST_DIR)/usr/lib/glib-2.0/include/glibconfig.h \
61 $(STAGING_HOST_DIR)/usr/include/glib-2.0/
63 glib-install:
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