-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathMakefile
49 lines (37 loc) · 1.76 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PKG_NAME = glib
PKG_SHORT_VERS = 2.58
PKG_VERS = $(PKG_SHORT_VERS).3
PKG_EXT = tar.xz
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://ftp.gnome.org/pub/GNOME/sources/$(PKG_NAME)/$(PKG_SHORT_VERS)
DEPENDS = native/glib cross/libffi cross/pcre cross/zlib
HOMEPAGE = https://developer.gnome.org/glib/
COMMENT = General-purpose utility library
LICENSE = GPLv2
GNU_CONFIGURE = 1
CONFIGURE_ARGS = --disable-man --disable-libmount --enable-shared=yes --enable-static=no
CONFIGURE_ARGS += glib_cv_long_long_format=ll glib_cv_stack_grows=no glib_cv_uscore=no ac_cv_func_posix_getpwuid_r=yes ac_cv_func_posix_getgrgid_r=yes
CONFIGURE_ARGS += GLIB_GENMARSHAL=$(WORK_DIR)/../../../native/glib/work-native/$(PKG_DIR)/gobject/glib-genmarshal
CONFIGURE_ARGS += GLIB_COMPILE_SCHEMAS=$(WORK_DIR)/../../../native/glib/work-native/$(PKG_DIR)/gio/glib-compile-schemas
CONFIGURE_ARGS += GLIB_COMPILE_RESOURCES=$(WORK_DIR)/../../../native/glib/work-native/$(PKG_DIR)/gio/glib-compile-resources
ADDITIONAL_CFLAGS = -Wno-unused-value
PRE_CONFIGURE_TARGET = glib_pre_configure
include ../../mk/spksrc.cross-cc.mk
ifeq ($(findstring $(ARCH),$(PPC_ARCHES)),$(ARCH))
CONFIGURE_ARGS += --host=ppc-linux
endif
ifeq ($(findstring $(ARCH),$(ARM_ARCHES)),$(ARCH))
CONFIGURE_ARGS += --host=arm-linux
endif
ifeq ($(findstring $(ARCH), $(x64_ARCHES)),$(ARCH))
CONFIGURE_ARGS += --host=x86_64-linux-gnu
endif
ifeq ($(findstring $(ARCH), $(x86_ARCHES)),$(ARCH))
CONFIGURE_ARGS += --host=i686-linux-gnu
endif
.PHONY: glib_pre_configure
glib_pre_configure:
# force autogen to first use internal pcre instead of provided to prevent
# build failure. Subsequent default configure will superseed this afterwards
$(RUN) ./autogen.sh --with-pcre $(CONFIGURE_ARGS)