Commit 86dae933 authored by Andrey V.Kosteltsev's avatar Andrey V.Kosteltsev

Python-3.7.4, util-linux-2.34

parent d0554fb3
......@@ -16,7 +16,7 @@ REQUIRES = X11/X.org/lib/libSM/1.2.2
REQUIRES += X11/X.org/proto/xproto/7.0.29-x86_32
REQUIRES += X11/X.org/lib/xtrans/1.3.5-x86_32
REQUIRES += X11/X.org/lib/libICE/1.0.9-x86_32
REQUIRES += app/util-linux/2.27.1-x86_32
REQUIRES += app/util-linux/2.34-x86_32
# ======= __END_OF_REQUIRES__ =======
......
......@@ -53,7 +53,7 @@ SOURCE_REQUIRES = sources/X.org/lib/libSM
REQUIRES = X11/X.org/proto/xproto/7.0.29
REQUIRES += X11/X.org/lib/xtrans/1.3.5
REQUIRES += X11/X.org/lib/libICE/1.0.9
REQUIRES += app/util-linux/2.27.1
REQUIRES += app/util-linux/2.34
# ======= __END_OF_REQUIRES__ =======
......
......@@ -50,7 +50,7 @@ include ../../../../build-system/constants.mk
SOURCE_REQUIRES = sources/packages/x/xterm
REQUIRES = libs/libtermcap/1.2.3
REQUIRES = libs/ncurses/6.1
REQUIRES += app/utempter/1.1.6
REQUIRES += X11/X.org/lib/libXaw/1.0.13
REQUIRES += X11/X.org/lib/libXft/2.3.2
......
......@@ -34,7 +34,7 @@ REQUIRES += X11/X.org/lib/libxkbfile/1.0.9-x86_32
REQUIRES += libs/gstreamer0/0.10.36-x86_32
REQUIRES += libs/gst-plugins-base0/0.10.36-x86_32
REQUIRES += app/sqlite/3.12.2.0-x86_32
REQUIRES += app/sqlite/3.26.0.0-x86_32
REQUIRES += app/mariadb/10.0.30-x86_32
REQUIRES += libs/libiodbc/3.52.10-x86_32
......
......@@ -71,7 +71,7 @@ REQUIRES += X11/X.org/lib/libxkbfile/1.0.9
REQUIRES += libs/gstreamer0/0.10.36
REQUIRES += libs/gst-plugins-base0/0.10.36
REQUIRES += app/sqlite/3.12.2.0
REQUIRES += app/sqlite/3.26.0.0
REQUIRES += app/mariadb/10.0.30
REQUIRES += libs/libiodbc/3.52.10
......
......@@ -35,7 +35,7 @@ REQUIRES += X11/X.org/lib/libxkbfile/1.0.9-x86_32
REQUIRES += libs/gstreamer0/0.10.36-x86_32
REQUIRES += libs/gst-plugins-base0/0.10.36-x86_32
REQUIRES += app/sqlite/3.12.2.0-x86_32
REQUIRES += app/sqlite/3.26.0.0-x86_32
REQUIRES += app/postgresql/9.6.0-x86_32
REQUIRES += app/mariadb/10.0.30-x86_32
REQUIRES += libs/libiodbc/3.52.10-x86_32
......
......@@ -79,7 +79,7 @@ REQUIRES += X11/X.org/lib/libxkbfile/1.0.9
REQUIRES += libs/gstreamer0/0.10.36
REQUIRES += libs/gst-plugins-base0/0.10.36
REQUIRES += app/sqlite/3.12.2.0
REQUIRES += app/sqlite/3.26.0.0
REQUIRES += app/postgresql/9.6.0
REQUIRES += app/mariadb/10.0.30
REQUIRES += libs/libiodbc/3.52.10
......
......@@ -38,7 +38,7 @@ REQUIRES += X11/X.org/xcb/xcb-util-wm/0.4.1-x86_32
REQUIRES += libs/gstreamer/1.8.2-x86_32
REQUIRES += libs/gst-plugins-base/1.8.2-x86_32
REQUIRES += app/sqlite/3.12.2.0-x86_32
REQUIRES += app/sqlite/3.26.0.0-x86_32
REQUIRES += app/mariadb/10.0.30-x86_32
REQUIRES += libs/libiodbc/3.52.10-x86_32
......
......@@ -75,7 +75,7 @@ REQUIRES += X11/X.org/xcb/xcb-util-wm/0.4.1
REQUIRES += libs/gstreamer/1.8.2
REQUIRES += libs/gst-plugins-base/1.8.2
REQUIRES += app/sqlite/3.12.2.0
REQUIRES += app/sqlite/3.26.0.0
REQUIRES += app/mariadb/10.0.30
REQUIRES += libs/libiodbc/3.52.10
......
......@@ -41,7 +41,7 @@ REQUIRES += X11/X.org/xcb/xcb-util-wm/0.4.1-x86_32
REQUIRES += libs/gstreamer/1.8.2-x86_32
REQUIRES += libs/gst-plugins-base/1.8.2-x86_32
REQUIRES += app/sqlite/3.12.2.0-x86_32
REQUIRES += app/sqlite/3.26.0.0-x86_32
REQUIRES += app/postgresql/9.6.0-x86_32
REQUIRES += app/mariadb/10.0.30-x86_32
REQUIRES += libs/libiodbc/3.52.10-x86_32
......
......@@ -88,7 +88,7 @@ REQUIRES += X11/X.org/xcb/xcb-util-wm/0.4.1
REQUIRES += libs/gstreamer/1.8.2
REQUIRES += libs/gst-plugins-base/1.8.2
REQUIRES += app/sqlite/3.12.2.0
REQUIRES += app/sqlite/3.26.0.0
REQUIRES += app/postgresql/9.6.0
REQUIRES += app/mariadb/10.0.30
REQUIRES += libs/libiodbc/3.52.10
......
......@@ -40,7 +40,7 @@ REQUIRES += X11/X.org/xcb/xcb-util-wm/0.4.1-x86_32
REQUIRES += libs/gstreamer/1.8.2-x86_32
REQUIRES += libs/gst-plugins-base/1.8.2-x86_32
REQUIRES += app/sqlite/3.12.2.0-x86_32
REQUIRES += app/sqlite/3.26.0.0-x86_32
REQUIRES += app/mariadb/10.0.30-x86_32
REQUIRES += libs/libiodbc/3.52.10-x86_32
......
......@@ -83,7 +83,7 @@ REQUIRES += X11/X.org/xcb/xcb-util-wm/0.4.1
REQUIRES += libs/gstreamer/1.8.2
REQUIRES += libs/gst-plugins-base/1.8.2
REQUIRES += app/sqlite/3.12.2.0
REQUIRES += app/sqlite/3.26.0.0
REQUIRES += app/mariadb/10.0.30
REQUIRES += libs/libiodbc/3.52.10
......
......@@ -41,7 +41,7 @@ REQUIRES += X11/X.org/xcb/xcb-util-wm/0.4.1-x86_32
REQUIRES += libs/gstreamer/1.8.2-x86_32
REQUIRES += libs/gst-plugins-base/1.8.2-x86_32
REQUIRES += app/sqlite/3.12.2.0-x86_32
REQUIRES += app/sqlite/3.26.0.0-x86_32
REQUIRES += app/postgresql/9.6.0-x86_32
REQUIRES += app/mariadb/10.0.30-x86_32
REQUIRES += libs/libiodbc/3.52.10-x86_32
......
......@@ -89,7 +89,7 @@ REQUIRES += X11/X.org/xcb/xcb-util-wm/0.4.1
REQUIRES += libs/gstreamer/1.8.2
REQUIRES += libs/gst-plugins-base/1.8.2
REQUIRES += app/sqlite/3.12.2.0
REQUIRES += app/sqlite/3.26.0.0
REQUIRES += app/postgresql/9.6.0
REQUIRES += app/mariadb/10.0.30
REQUIRES += libs/libiodbc/3.52.10
......
../../../sources/packages/a/acl/patches/acl-2.2.52.patch -p0
../../../sources/packages/a/acl/patches/acl-2.2.52.patch -p0
COMPONENT_TARGETS = $(HARDWARE_S824L)
COMPONENT_TARGETS += $(HARDWARE_VESNIN)
COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
NEED_ABS_PATH = true
COMPONENT_IS_3PP = true
CREATE_PPC32_PACKAGE = true
include ../../../build-system/constants.mk
SOURCE_REQUIRES = sources/packages/a/acl
REQUIRES = app/acl/2.2.53
REQUIRES += app/attr/2.4.48-ppc32
# ======= __END_OF_REQUIRES__ =======
version = 2.2.53
tar_gz_archive = $(SRC_PACKAGE_PATH)/packages/a/acl/acl-$(version).tar.gz
SRC_ARCHIVE = $(tar_gz_archive)
SRC_DIR = $(TARGET_BUILD_DIR)/acl-$(version)
src_done = $(TARGET_BUILD_DIR)/.source_done
PATCHES = PATCHES
build_target = $(TARGET_BUILD_DIR)/.build_done
install_target = $(TARGET_BUILD_DIR)/.install_done
####### Targets
PKG_GROUP = app
#
# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
#
ACL_32_PKG_NAME = acl-x32
ACL_32_PKG_VERSION = 2.2.53
ACL_32_PKG_ARCH = $(TOOLCHAIN)
ACL_32_PKG_DISTRO_NAME = $(DISTRO_NAME)
ACL_32_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
ACL_32_PKG_GROUP = $(PKG_GROUP)
### |---handy-ruler-------------------------------|
ACL_32_PKG_SHORT_DESCRIPTION = POSIX Access Control Lists tool
ACL_32_PKG_URL = $(BUG_URL)
ACL_32_PKG_LICENSE = GPLv2
ACL_32_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(ACL_32_PKG_NAME)-pkg-description
ACL_32_PKG_DESCRIPTION_FILE_IN = $(ACL_32_PKG_NAME)-pkg-description.in
ACL_32_PKG_INSTALL_SCRIPT = $(ACL_32_PKG_NAME)-pkg-install.sh
ACL_32_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(ACL_32_PKG_NAME)-package
pkg_basename = $(ACL_32_PKG_NAME)-$(ACL_32_PKG_VERSION)-$(ACL_32_PKG_ARCH)-$(ACL_32_PKG_DISTRO_NAME)-$(ACL_32_PKG_DISTRO_VERSION)
pkg_archive = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
pkg_certificate = $(call cert-name,$(pkg_archive))
pkg_signature = $(call sign-name,$(pkg_archive))
pkg_description = $(call desc-name,$(pkg_archive))
products = $(call pkg-files,$(pkg_archive))
BUILD_TARGETS = $(build_target)
BUILD_TARGETS += $(install_target)
PRODUCT_TARGETS = $(products)
ROOTFS_TARGETS = $(pkg_archive)
include ../../../build-system/core.mk
env_sysroot = DESTDIR=$(ACL_32_PKG)
extra_configure_switches = --libdir=/usr/lib$(MULTILIB_PPC32_SUFFIX)
extra_configure_switches += --libexecdir=/usr/lib$(MULTILIB_PPC32_SUFFIX)
extra_configure_switches += --sysconfdir=/etc
extra_configure_switches += --bindir=/usr/bin/32
extra_configure_switches += --datadir=/usr/share
extra_configure_switches += --mandir=/usr/share/man
ifeq ($(__ENABLE_STATIC__),yes)
extra_configure_switches += --enable-static=yes
else
extra_configure_switches += --enable-static=no
endif
extra_configure_switches += --enable-shared=yes
TARGET_BIN_RPATH = /lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX)
TARGET_LIB_RPATH = /lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX):/usr/lib/../lib$(MULTILIB_PPC32_SUFFIX)
####### Dependencies
$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
$(UNPACK_SRC_ARCHIVE)
$(APPLY_PATCHES)
@touch $@
$(build_target): $(src_done)
@cd $(SRC_DIR) && \
$(BUILD_ENVIRONMENT) ./configure \
--prefix=/usr \
--exec-prefix=/usr \
--build=$(BUILD) \
--host=$(TARGET32) \
$(extra_configure_switches)
@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE)
@touch $@
$(install_target): $(build_target)
@mkdir -p $(ACL_32_PKG)
@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
@mkdir -p $(ACL_32_PKG)/lib$(MULTILIB_PPC32_SUFFIX)
@( cd $(ACL_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
cp -a libacl.so.? $(ACL_32_PKG)/lib$(MULTILIB_PPC32_SUFFIX) ; \
mv libacl.so.?.?.* $(ACL_32_PKG)/lib$(MULTILIB_PPC32_SUFFIX) ; \
ln -sf ../../lib$(MULTILIB_PPC32_SUFFIX)/libacl.so.?.?.* . \
)
@rm -rf $(ACL_32_PKG)/usr/include
@rm -rf $(ACL_32_PKG)/usr/share
# ======= remove target path from target libtool *.la files =======
@( cd $(ACL_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
sed -i "s,$(TARGET_DEST_DIR),,g" libacl.la \
)
# ======= Install the same to $(TARGET_DEST_DIR) =======
$(call install-into-devenv, $(ACL_32_PKG))
# ======= tune libtool *.la search path to the target destination for development =======
@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libacl.la ; \
sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libacl.la \
)
@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/pkgconfig ; \
sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libacl.pc ; \
)
# ======= Strip binaries =======
@( cd $(ACL_32_PKG) ; \
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
)
ifeq ($(__ENABLE_STATIC__),yes)
@( cd $(ACL_32_PKG) ; \
find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
)
endif
ifneq ($(CHRPATH),)
# ======= Set RPATH/RUNPATH for target binaries =======
@( cd $(ACL_32_PKG)/usr/bin/32 ; \
for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
$(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
fi ; \
done ; \
)
# ======= Set RPATH/RUNPATH for target shared objects =======
@( cd $(ACL_32_PKG)/lib$(MULTILIB_PPC32_SUFFIX) ; \
for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
$(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
fi ; \
done ; \
)
endif
@touch $@
$(ACL_32_PKG_DESCRIPTION_FILE): $(ACL_32_PKG_DESCRIPTION_FILE_IN)
@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
$(pkg_certificate) : $(pkg_archive) ;
$(pkg_signature) : $(pkg_archive) ;
$(pkg_description) : $(pkg_archive) ;
$(pkg_archive): $(install_target) $(ACL_32_PKG_DESCRIPTION_FILE) $(ACL_32_PKG_INSTALL_SCRIPT)
@cp $(ACL_32_PKG_DESCRIPTION_FILE) $(ACL_32_PKG)/.DESCRIPTION
@cp $(ACL_32_PKG_INSTALL_SCRIPT) $(ACL_32_PKG)/.INSTALL
@$(BUILD_PKG_REQUIRES) $(ACL_32_PKG)/.REQUIRES
@echo "pkgname=$(ACL_32_PKG_NAME)" > $(ACL_32_PKG)/.PKGINFO ; \
echo "pkgver=$(ACL_32_PKG_VERSION)" >> $(ACL_32_PKG)/.PKGINFO ; \
echo "arch=$(ACL_32_PKG_ARCH)" >> $(ACL_32_PKG)/.PKGINFO ; \
echo "distroname=$(ACL_32_PKG_DISTRO_NAME)" >> $(ACL_32_PKG)/.PKGINFO ; \
echo "distrover=$(ACL_32_PKG_DISTRO_VERSION)" >> $(ACL_32_PKG)/.PKGINFO ; \
echo "group=$(ACL_32_PKG_GROUP)" >> $(ACL_32_PKG)/.PKGINFO ; \
echo "short_description=\"$(ACL_32_PKG_SHORT_DESCRIPTION)\"" >> $(ACL_32_PKG)/.PKGINFO ; \
echo "url=$(ACL_32_PKG_URL)" >> $(ACL_32_PKG)/.PKGINFO ; \
echo "license=$(ACL_32_PKG_LICENSE)" >> $(ACL_32_PKG)/.PKGINFO
@$(PSEUDO) sh -c "cd $(ACL_32_PKG) && chown -R root:root . && $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
COMPONENT_TARGETS = $(HARDWARE_MBC4_PC)
NEED_ABS_PATH = true
COMPONENT_IS_3PP = true
CREATE_SPARC32_PACKAGE = true
include ../../../build-system/constants.mk
SOURCE_REQUIRES = sources/packages/a/acl
REQUIRES = app/acl/2.2.53
REQUIRES += app/attr/2.4.48-sparc32
# ======= __END_OF_REQUIRES__ =======
version = 2.2.53
tar_gz_archive = $(SRC_PACKAGE_PATH)/packages/a/acl/acl-$(version).tar.gz
SRC_ARCHIVE = $(tar_gz_archive)
SRC_DIR = $(TARGET_BUILD_DIR)/acl-$(version)
src_done = $(TARGET_BUILD_DIR)/.source_done
PATCHES = PATCHES
build_target = $(TARGET_BUILD_DIR)/.build_done
install_target = $(TARGET_BUILD_DIR)/.install_done
####### Targets
PKG_GROUP = app
#
# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
#
ACL_32_PKG_NAME = acl-x32
ACL_32_PKG_VERSION = 2.2.53
ACL_32_PKG_ARCH = $(TOOLCHAIN)
ACL_32_PKG_DISTRO_NAME = $(DISTRO_NAME)
ACL_32_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
ACL_32_PKG_GROUP = $(PKG_GROUP)
### |---handy-ruler-------------------------------|
ACL_32_PKG_SHORT_DESCRIPTION = POSIX Access Control Lists tool
ACL_32_PKG_URL = $(BUG_URL)
ACL_32_PKG_LICENSE = GPLv2
ACL_32_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(ACL_32_PKG_NAME)-pkg-description
ACL_32_PKG_DESCRIPTION_FILE_IN = $(ACL_32_PKG_NAME)-pkg-description.in
ACL_32_PKG_INSTALL_SCRIPT = $(ACL_32_PKG_NAME)-pkg-install.sh
ACL_32_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(ACL_32_PKG_NAME)-package
pkg_basename = $(ACL_32_PKG_NAME)-$(ACL_32_PKG_VERSION)-$(ACL_32_PKG_ARCH)-$(ACL_32_PKG_DISTRO_NAME)-$(ACL_32_PKG_DISTRO_VERSION)
pkg_archive = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
pkg_certificate = $(call cert-name,$(pkg_archive))
pkg_signature = $(call sign-name,$(pkg_archive))
pkg_description = $(call desc-name,$(pkg_archive))
products = $(call pkg-files,$(pkg_archive))
BUILD_TARGETS = $(build_target)
BUILD_TARGETS += $(install_target)
PRODUCT_TARGETS = $(products)
ROOTFS_TARGETS = $(pkg_archive)
include ../../../build-system/core.mk
env_sysroot = DESTDIR=$(ACL_32_PKG)
extra_configure_switches = --libdir=/usr/lib$(MULTILIB_SPARC32_SUFFIX)
extra_configure_switches += --libexecdir=/usr/lib$(MULTILIB_SPARC32_SUFFIX)
extra_configure_switches += --sysconfdir=/etc
extra_configure_switches += --bindir=/usr/bin/32
extra_configure_switches += --datadir=/usr/share
extra_configure_switches += --mandir=/usr/share/man
ifeq ($(__ENABLE_STATIC__),yes)
extra_configure_switches += --enable-static=yes
else
extra_configure_switches += --enable-static=no
endif
extra_configure_switches += --enable-shared=yes
TARGET_BIN_RPATH = /lib$(MULTILIB_SPARC32_SUFFIX):/usr/lib$(MULTILIB_SPARC32_SUFFIX)
TARGET_LIB_RPATH = /lib$(MULTILIB_SPARC32_SUFFIX):/usr/lib$(MULTILIB_SPARC32_SUFFIX):/usr/lib/../lib$(MULTILIB_SPARC32_SUFFIX)
####### Dependencies
$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
$(UNPACK_SRC_ARCHIVE)
$(APPLY_PATCHES)
@touch $@
$(build_target): $(src_done)
@cd $(SRC_DIR) && \
$(BUILD_ENVIRONMENT) ./configure \
--prefix=/usr \
--exec-prefix=/usr \
--build=$(BUILD) \
--host=$(TARGET32) \
$(extra_configure_switches)
@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE)
@touch $@
$(install_target): $(build_target)
@mkdir -p $(ACL_32_PKG)
@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
@mkdir -p $(ACL_32_PKG)/lib$(MULTILIB_SPARC32_SUFFIX)
@( cd $(ACL_32_PKG)/usr/lib$(MULTILIB_SPARC32_SUFFIX) ; \
cp -a libacl.so.? $(ACL_32_PKG)/lib$(MULTILIB_SPARC32_SUFFIX) ; \
mv libacl.so.?.?.* $(ACL_32_PKG)/lib$(MULTILIB_SPARC32_SUFFIX) ; \
ln -sf ../../lib$(MULTILIB_SPARC32_SUFFIX)/libacl.so.?.?.* . \
)
@rm -rf $(ACL_32_PKG)/usr/include
@rm -rf $(ACL_32_PKG)/usr/share
# ======= remove target path from target libtool *.la files =======
@( cd $(ACL_32_PKG)/usr/lib$(MULTILIB_SPARC32_SUFFIX) ; \
sed -i "s,$(TARGET_DEST_DIR),,g" libacl.la \
)
# ======= Install the same to $(TARGET_DEST_DIR) =======
$(call install-into-devenv, $(ACL_32_PKG))
# ======= tune libtool *.la search path to the target destination for development =======
@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_SPARC32_SUFFIX) ; \
sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libacl.la ; \
sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libacl.la \
)
@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_SPARC32_SUFFIX)/pkgconfig ; \
sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libacl.pc ; \
)
# ======= Strip binaries =======
@( cd $(ACL_32_PKG) ; \
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
)
ifeq ($(__ENABLE_STATIC__),yes)
@( cd $(ACL_32_PKG) ; \
find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
)
endif
ifneq ($(CHRPATH),)
# ======= Set RPATH/RUNPATH for target binaries =======
@( cd $(ACL_32_PKG)/usr/bin/32 ; \
for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
$(CHRPATH) -r $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
fi ; \
done ; \
)
# ======= Set RPATH/RUNPATH for target shared objects =======
@( cd $(ACL_32_PKG)/lib$(MULTILIB_SPARC32_SUFFIX) ; \
for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
rpath=`$(CHRPATH) -l $$file 2> /dev/null | grep "R*PATH"` ; \
if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
$(CHRPATH) -r $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
fi ; \
done ; \
)
endif
@touch $@