distribution/packages/devel/libserialport/package.mk

18 lines
580 B
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0
PKG_NAME="libserialport"
2023-12-15 16:33:23 +00:00
PKG_VERSION="fd20b0fc5a34cd7f776e4af6c763f59041de223b"
PKG_LICENSE="GPLv3"
PKG_SITE="https://github.com/sigrokproject/libserialport"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="A minimal, cross-platform shared library written in C that is intended to take care of the OS-specific details when writing software that uses serial ports."
PKG_TOOLCHAIN="make"
make_target() {
cd ${PKG_BUILD}
./autogen.sh
./configure --host=${TARGET_NAME} --with-sysroot=${SYSROOT_PREFIX} --prefix=/usr
}