libcotp

Directory:
build\libcotp
Fetch Style:
Git
From:
https://github.com/paolostivanin/libcotp/archive/refs/tags/v3.1.1.tar.gz

Declared Dependencies

Probed Makefile variables (Linux zig 64-bit)

Variable (in eval order)Evaluated setting
PATH/bin
PKGNAMElibcotp
PKGVER3.1.1
DEPENDSopenssl
_DETPLAT_STRLinux
MACHINEx86_64
HB_ZIG_TARGETx86_64-linux-musl
PACKAGE/libcotp-3.1.1.hbpk
WORKDIRlibcotp-3.1.1
SOURCESv3.1.1.tar.gz
SRCURLhttps://github.com/paolostivanin/libcotp/archive/refs/tags
PROVIDESlibcotp

Probed Makefile variables (Windows zig 64-bit)

Variable (in eval order)Evaluated setting
PATH/bin:/usr/share/zig
MSYSTEMMINGW64
PKGNAMElibcotp
PKGVER3.1.1
DEPENDSopenssl
_DETPLAT_STRMsys
HBPK_CC_FAMILYCC=clang CXX=clang++
MACHINEx86_64
HB_ZIG_TARGETx86_64-windows-gnu
HBPK_VCPKG_TARGETx64-windows
PACKAGE/libcotp-3.1.1.hbpk
WORKDIRlibcotp-3.1.1
SOURCESv3.1.1.tar.gz
SRCURLhttps://github.com/paolostivanin/libcotp/archive/refs/tags
PROVIDESlibcotp

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 ../