source: packages/libs/glib2/Makefile @ 22085

Last change on this file since 22085 was 22085, checked in by acoul, 6 years ago

libs/glib2: revert bogus r21884 (thanks nico)

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
1#
2# Copyright (C) 2007 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=glib2
11PKG_VERSION:=2.22.2
12PKG_RELEASE:=1
13
14PKG_SOURCE:=glib-$(PKG_VERSION).tar.bz2
15PKG_BUILD_DIR:=$(BUILD_DIR)/glib-$(PKG_VERSION)
16PKG_SOURCE_URL:=@GNOME/glib/2.22
17PKG_MD5SUM:=846a86c74b74d5b16826aa5508940f9b
18
19PKG_FIXUP:=libtool
20PKG_BUILD_DEPENDS:=glib2/host
21PKG_INSTALL:=1
22
23HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/glib-$(PKG_VERSION)
24
25include $(INCLUDE_DIR)/host-build.mk
26include $(INCLUDE_DIR)/package.mk
27
28define Package/glib2
29  SECTION:=libs
30  CATEGORY:=Libraries
31  DEPENDS:=+libiconv +libintl
32  TITLE:=glib 2.0
33  URL:=http://www.gtk.org/
34endef
35
36define Package/glib2/description
37  The GLib library of C routines
38endef
39
40TARGET_CFLAGS+= \
41        $(FPIC) \
42        -I$(STAGING_DIR)/usr/lib/libiconv/include \
43        -I$(STAGING_DIR)/usr/lib/libintl/include
44
45TARGET_LDFLAGS+= \
46        -L$(STAGING_DIR)/usr/lib/libiconv/lib \
47        -L$(STAGING_DIR)/usr/lib/libintl/lib
48
49define Build/Configure
50        $(call Build/Configure/Default, \
51                --enable-shared \
52                --enable-static \
53                --enable-debug=no \
54                --with-libiconv=gnu \
55                --disable-selinux \
56        --disable-fam \
57                , \
58                glib_cv_stack_grows=no \
59                glib_cv_uscore=no \
60                ac_cv_path_GLIB_GENMARSHAL=$(STAGING_DIR_HOST)/bin/glib-genmarshal \
61                ac_cv_func_mmap_fixed_mapped=yes \
62        );
63endef
64
65define Build/InstallDev
66        $(INSTALL_DIR) $(1)/usr/include
67        $(CP) \
68                $(PKG_INSTALL_DIR)/usr/include/glib-2.0 \
69                $(1)/usr/include/
70        $(CP) \
71                $(PKG_INSTALL_DIR)/usr/include/gio-unix-2.0 \
72                $(1)/usr/include/
73
74        $(INSTALL_DIR) $(1)/usr/lib
75        $(CP) \
76                $(PKG_INSTALL_DIR)/usr/lib/glib-2.0 \
77                $(1)/usr/lib/
78
79        $(CP) \
80                $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
81                $(1)/usr/lib/
82
83        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
84        $(INSTALL_DATA) \
85                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
86                $(1)/usr/lib/pkgconfig
87
88        $(INSTALL_DIR) $(2)/share/aclocal/
89        $(INSTALL_DATA) \
90                $(PKG_INSTALL_DIR)/usr/share/aclocal/*.m4  \
91                $(2)/share/aclocal/
92endef
93
94define Package/glib2/install
95        $(INSTALL_DIR) $(1)/usr/lib
96        $(CP) \
97                $(PKG_INSTALL_DIR)/usr/lib/*.so* \
98                $(1)/usr/lib/
99endef
100
101$(eval $(call HostBuild))
102$(eval $(call BuildPackage,glib2))
Note: See TracBrowser for help on using the repository browser.