24 lines
850 B
Makefile
24 lines
850 B
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
PKG_NAME="crossguid"
|
|
PKG_VERSION="8f399e8bd4252be9952f3dfa8199924cc8487ca4"
|
|
PKG_SHA256="022c9f02cc36e865cd8fd0111a597ff2bd91988deeb348dbe2aba64aed1abd99"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="https://github.com/graeme-hill/crossguid"
|
|
PKG_URL="https://github.com/graeme-hill/crossguid/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain util-linux"
|
|
PKG_LONGDESC="minimal, cross platform, C++ GUID library"
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
make_target() {
|
|
${CXX} -c guid.cpp -o guid.o ${CXXFLAGS} -std=c++11 -DGUID_LIBUUID
|
|
${AR} rvs libcrossguid.a guid.o
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/lib/
|
|
cp libcrossguid.a ${SYSROOT_PREFIX}/usr/lib/
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/include/
|
|
cp guid.h ${SYSROOT_PREFIX}/usr/include
|
|
}
|