distribution/packages/devel/arm-mem/package.mk

48 lines
1.3 KiB
Makefile
Raw Normal View History

2023-01-08 22:49:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
2023-01-08 22:49:32 +00:00
PKG_NAME="arm-mem"
2023-05-09 19:21:47 +00:00
PKG_VERSION="b48ea154fd74410022d8189003cd69fad8f3d02c"
2023-01-08 22:49:32 +00:00
PKG_ARCH="arm"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/bavison/arm-mem"
PKG_URL="https://github.com/bavison/arm-mem/archive/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_DEPENDS_INIT="toolchain arm-mem"
PKG_LONGDESC="arm-mem is a ARM-accelerated versions of selected functions from string.h"
PKG_BUILD_FLAGS="+pic"
if target_has_feature neon; then
PKG_LIB_ARM_MEM="libarmmem-v7l.so"
else
PKG_LIB_ARM_MEM="libarmmem-v6l.so"
fi
PKG_MAKE_OPTS_TARGET="${PKG_LIB_ARM_MEM}"
pre_make_target() {
export CROSS_COMPILE=${TARGET_PREFIX}
}
make_init() {
: # reuse make_target()
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib
cp -P ${PKG_LIB_ARM_MEM} ${INSTALL}/usr/lib
mkdir -p ${INSTALL}/etc
echo "/usr/lib/${PKG_LIB_ARM_MEM}" >> ${INSTALL}/etc/ld.so.preload
}
makeinstall_init() {
mkdir -p ${INSTALL}/usr/lib
cp -P ${PKG_LIB_ARM_MEM} ${INSTALL}/usr/lib
mkdir -p ${INSTALL}/etc
echo "/usr/lib/${PKG_LIB_ARM_MEM}" >> ${INSTALL}/etc/ld.so.preload
}