mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
58 lines
1.9 KiB
Makefile
58 lines
1.9 KiB
Makefile
################################################################################
|
|
# This file is part of OpenELEC - http://www.openelec.tv
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
#
|
|
# OpenELEC is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# OpenELEC is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
|
################################################################################
|
|
|
|
PKG_NAME="arm-mem"
|
|
PKG_VERSION="3aee5f4"
|
|
PKG_SHA256="c7ac6fea60c01d34e71b24065b65ad6fbef42b9b702a226a22fe4a0caff33382"
|
|
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_SECTION="devel"
|
|
PKG_SHORTDESC="arm-mem: ARM-accelerated versions of selected functions from string.h"
|
|
PKG_LONGDESC="arm-mem is a ARM-accelerated versions of selected functions from string.h"
|
|
|
|
PKG_MAKE_OPTS_TARGET="libarmmem.so"
|
|
|
|
pre_make_target() {
|
|
export CROSS_COMPILE=$TARGET_PREFIX
|
|
export CFLAGS="$CFLAGS -fPIC"
|
|
}
|
|
|
|
make_init() {
|
|
: # reuse make_target()
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p $INSTALL/usr/lib
|
|
cp -P libarmmem.so $INSTALL/usr/lib
|
|
|
|
mkdir -p $INSTALL/etc
|
|
echo "/usr/lib/libarmmem.so" >> $INSTALL/etc/ld.so.preload
|
|
}
|
|
|
|
makeinstall_init() {
|
|
mkdir -p $INSTALL/usr/lib
|
|
cp -P libarmmem.so $INSTALL/usr/lib
|
|
|
|
mkdir -p $INSTALL/etc
|
|
echo "/usr/lib/libarmmem.so" >> $INSTALL/etc/ld.so.preload
|
|
}
|