distribution/packages/compress/unrar/package.mk

34 lines
759 B
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="unrar"
2023-12-15 16:33:23 +00:00
PKG_VERSION="df15c8c3c9f4105d3501bc477e80ac6b8e227677"
2022-02-05 14:23:32 +00:00
PKG_LICENSE="free"
PKG_SITE="http://www.rarlab.com"
PKG_URL="https://github.com/pmachapman/unrar.git"
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="unrar extract, test and view RAR archives"
PKG_TOOLCHAIN="manual"
PKG_BUILD_FLAGS="+pic"
make_target() {
2023-02-24 13:53:43 +00:00
make CXX="${CXX}" \
CXXFLAGS="${TARGET_CXXFLAGS}" \
2022-02-05 14:23:32 +00:00
RANLIB="$RANLIB" \
2023-02-27 02:56:16 +00:00
AR="${AR}" \
2023-02-24 13:53:43 +00:00
STRIP="${STRIP}" \
2022-02-05 14:23:32 +00:00
-f makefile unrar
make clean
2023-02-24 13:53:43 +00:00
make CXX="${CXX}" \
CXXFLAGS="${TARGET_CXXFLAGS}" \
2022-02-05 14:23:32 +00:00
RANLIB="$RANLIB" \
2023-02-27 02:56:16 +00:00
AR="${AR}" \
2022-02-05 14:23:32 +00:00
-f makefile lib
}
post_make_target() {
rm -f libunrar.so
}