lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (2585B)


      1 #
      2 # Copyright (C) 2007-2016 OpenWrt.org
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=glib2
     11 PKG_VERSION:=2.50.3
     12 PKG_RELEASE:=1
     13 
     14 PKG_SOURCE:=glib-$(PKG_VERSION).tar.xz
     15 PKG_BUILD_DIR:=$(BUILD_DIR)/glib-$(PKG_VERSION)
     16 PKG_SOURCE_URL:=@GNOME/glib/2.50
     17 PKG_HASH:=82ee94bf4c01459b6b00cb9db0545c2237921e3060c0b74cff13fbc020cfd999
     18 
     19 PKG_BUILD_PARALLEL:=1
     20 HOST_BUILD_PARALLEL:=1
     21 PKG_BUILD_DEPENDS:=glib2/host libpthread zlib libintl libffi
     22 HOST_BUILD_DEPENDS:=gettext-full/host libiconv/host libffi/host
     23 PKG_INSTALL:=1
     24 PKG_USE_MIPS16:=0
     25 
     26 PKG_FIXUP:=autoreconf
     27 
     28 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/glib-$(PKG_VERSION)
     29 
     30 include $(INCLUDE_DIR)/host-build.mk
     31 include $(INCLUDE_DIR)/package.mk
     32 include $(INCLUDE_DIR)/nls.mk
     33 
     34 define Package/glib2
     35   SECTION:=libs
     36   CATEGORY:=Libraries
     37   DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +zlib +libpthread +libffi +libattr
     38   TITLE:=glib 2.0
     39   MAINTAINER:=Peter Wagner <tripolar@gmx.at>
     40   URL:=http://www.gtk.org/
     41 endef
     42 
     43 define Package/glib2/description
     44   The GLib library of C routines
     45 endef
     46 
     47 HOST_CONFIGURE_ARGS += \
     48 	--disable-selinux \
     49 	--with-libiconv=gnu \
     50 	--with-pcre=internal \
     51 	--enable-libmount=no
     52 
     53 CONFIGURE_ARGS += \
     54 	--enable-shared \
     55 	--enable-static \
     56 	--enable-debug=no \
     57 	--disable-selinux \
     58 	--enable-libmount=no \
     59 	--disable-fam \
     60 	--with-libiconv=gnu \
     61 	--with-pcre=internal
     62 
     63 CONFIGURE_VARS += \
     64 	glib_cv_stack_grows=no \
     65 	glib_cv_uscore=no \
     66 	ac_cv_path_GLIB_GENMARSHAL=$(STAGING_DIR_HOSTPKG)/bin/glib-genmarshal \
     67 	ac_cv_func_mmap_fixed_mapped=yes \
     68 	ac_cv_func_posix_getpwuid_r=yes \
     69 	ac_cv_func_posix_getgrgid_r=yes
     70 
     71 define Build/InstallDev
     72 	$(INSTALL_DIR) $(1)/usr/include
     73 	$(CP) \
     74 		$(PKG_INSTALL_DIR)/usr/include/glib-2.0 \
     75 		$(1)/usr/include/
     76 	$(CP) \
     77 		$(PKG_INSTALL_DIR)/usr/lib/glib-2.0/include/*.h \
     78 		$(1)/usr/include/glib-2.0/
     79 	$(CP) \
     80 		$(PKG_INSTALL_DIR)/usr/include/gio-unix-2.0 \
     81 		$(1)/usr/include/
     82 
     83 	$(INSTALL_DIR) $(1)/usr/lib
     84 	$(CP) \
     85 		$(PKG_INSTALL_DIR)/usr/lib/glib-2.0 \
     86 		$(1)/usr/lib/
     87 
     88 	$(CP) \
     89 		$(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
     90 		$(1)/usr/lib/
     91 
     92 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
     93 	$(INSTALL_DATA) \
     94 		$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
     95 		$(1)/usr/lib/pkgconfig
     96 
     97 	$(INSTALL_DIR) $(2)/share/aclocal/
     98 	$(INSTALL_DATA) \
     99 		$(PKG_INSTALL_DIR)/usr/share/aclocal/*.m4  \
    100 		$(2)/share/aclocal/
    101 endef
    102 
    103 define Package/glib2/install
    104 	$(INSTALL_DIR) $(1)/usr/lib
    105 	$(CP) \
    106 		$(PKG_INSTALL_DIR)/usr/lib/*.so* \
    107 		$(1)/usr/lib/
    108 endef
    109 
    110 $(eval $(call HostBuild))
    111 $(eval $(call BuildPackage,glib2))