[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / graphics / libhighway

File: [cvs.NetBSD.org] / pkgsrc / graphics / libhighway / Makefile (download)

Revision 1.3, Mon Nov 21 18:20:43 2022 UTC (2 months, 2 weeks ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, HEAD
Changes since 1.2: +3 -1 lines

*: Re-apply SunOS linker argument removals.

These are currently duplicated in mk/platform/SunOS.mk but the generic
removals will be removed soon in favour of per-package removals, due to
flags getting leaked into installed files.

# $NetBSD: Makefile,v 1.3 2022/11/21 18:20:43 jperkin Exp $

DISTNAME=	highway-1.0.1
PKGNAME=	lib${DISTNAME}
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_GITHUB:=google/}
GITHUB_PROJECT=	highway

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/google/highway/
COMMENT=	C++ library for SIMD
LICENSE=	apache-2.0

USE_CMAKE=	yes
USE_TOOLS+=	pkg-config
USE_LANGUAGES=	c c++
GCC_REQD+=	8 # -latomic and gcc 7 gives internal compiler error

CMAKE_ARGS+=	-DHWY_SYSTEM_GTEST:BOOL=TRUE
CMAKE_ARGS+=	-DBUILD_SHARED_LIBS:BOOL=TRUE

PKGCONFIG_OVERRIDE+=	libhwy-contrib.pc.in
PKGCONFIG_OVERRIDE+=	libhwy-test.pc.in
PKGCONFIG_OVERRIDE+=	libhwy.pc.in

BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,--version-script=${WRKSRC}/hwy/hwy.version

# libhighway run executables during build and
# they need to find its own shared libs
MAKE_ENV+=	LD_LIBRARY_PATH=${WRKSRC}
TEST_TARGET=	test

BUILDLINK_API_DEPENDS.googletest+=	googletest>=1.10.0nb1
.include "../../devel/googletest/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"