distribution/packages/emulators/tools/capsimg/package.mk

29 lines
879 B
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2018-present Frank Hartung (supervisedthinking (@) gmail.com)
PKG_NAME="capsimg"
PKG_VERSION="ed4cb0912fb1a2a0d5203111c6f6abd50d411b56"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/FrodeSolheim/capsimg"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="SPS Decoder Library 5.1 (formerly IPF Decoder Lib)"
PKG_TOOLCHAIN="make"
PKG_PATCH_DIRS+="${DEVICE}"
PKG_MAKE_OPTS_TARGET="-C CAPSImg"
pre_configure_target() {
cd ..
./bootstrap
./configure --host=${TARGET_NAME}
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib
cp -v CAPSImg/libcapsimage.so.5.1 ${INSTALL}/usr/lib/
ln -sf libcapsimage.so.5.1 ${INSTALL}/usr/lib/libcapsimage.so.5
ln -sf libcapsimage.so.5.1 ${INSTALL}/usr/lib/libcapsimage.so
mkdir -p ${INSTALL}/usr/include/caps5
cp -v LibIPF/* ${INSTALL}/usr/include/caps5
}