libcotp
Declared Dependencies
Probed Makefile variables (Linux zig 64-bit)
| Variable (in eval order) | Evaluated setting |
PATH | /bin |
PKGNAME | libcotp |
PKGVER | 3.1.1 |
DEPENDS | openssl |
_DETPLAT_STR | Linux |
MACHINE | x86_64 |
HB_ZIG_TARGET | x86_64-linux-musl |
PACKAGE | /libcotp-3.1.1.hbpk |
WORKDIR | libcotp-3.1.1 |
SOURCES | v3.1.1.tar.gz |
SRCURL | https://github.com/paolostivanin/libcotp/archive/refs/tags |
PROVIDES | libcotp |
Probed Makefile variables (Windows zig 64-bit)
| Variable (in eval order) | Evaluated setting |
PATH | /bin:/usr/share/zig |
MSYSTEM | MINGW64 |
PKGNAME | libcotp |
PKGVER | 3.1.1 |
DEPENDS | openssl |
_DETPLAT_STR | Msys |
HBPK_CC_FAMILY | CC=clang CXX=clang++ |
MACHINE | x86_64 |
HB_ZIG_TARGET | x86_64-windows-gnu |
HBPK_VCPKG_TARGET | x64-windows |
PACKAGE | /libcotp-3.1.1.hbpk |
WORKDIR | libcotp-3.1.1 |
SOURCES | v3.1.1.tar.gz |
SRCURL | https://github.com/paolostivanin/libcotp/archive/refs/tags |
PROVIDES | libcotp |
Makefile Header Source
PKGNAME = libcotp
PKGVER = 3.1.1
DEPENDS = openssl
TOPDIR = ../..
include $(TOPDIR)/common.mk
include $(TOPDIR)/pmgr.mk
WORKDIR = $(PKGNAME)-$(PKGVER)
SOURCES = v$(PKGVER).tar.gz
SRCURL = https://github.com/paolostivanin/libcotp/archive/refs/tags
do-fetch: std-fetch
do-extract: std-extract
do-patch: #fix-configure
do-config:
cd $(WORKDIR) && mkdir -p build && cd build && \
$(HBPK_CC_FAMILY) cmake -DBUILD_SHARED_LIBS=OFF -DHMAC_WRAPPER="openssl" $(HBPK_CMAKE_G) \
-DCMAKE_INSTALL_PREFIX=dest ..
do-build:
cd $(WORKDIR) && cmake --build build/
do-pkginst:
# -DCMAKE_INSTALL_PREFIX=$(PKGDEST) in config + DESTDIR in install ends up very ugly in CMake, they sum up
# just use "dest" as prefix, for a static library it's not a big deal
cd $(WORKDIR) && cmake --install build/ && mv build/dest ../