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

File: [cvs.NetBSD.org] / pkgsrc / devel / libatomic_ops / Makefile (download)

Revision 1.21, Fri Apr 24 12:33:26 2020 UTC (18 months ago) by nia
Branch: MAIN
Changes since 1.20: +3 -1 lines

libatomic_ops: Include bsd.prefs.mk so MACHINE_PLATFORM gets defined

Fixes build on sparc. From Tobias Ulmer via pkgsrc-users@

# $NetBSD: Makefile,v 1.21 2020/04/24 12:33:26 nia Exp $

DISTNAME=	libatomic_ops-7.6.10
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GITHUB:=ivmai/}
GITHUB_RELEASE=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/ivmai/libatomic_ops
COMMENT=	Multi-platform library of atomic operations by Hans Boehm
LICENSE=	gnu-gpl-v2

USE_LANGUAGES+=		c
USE_LIBTOOL=		yes
USE_TOOLS+=		gmake
GNU_CONFIGURE=		yes
PKGCONFIG_OVERRIDE=	pkgconfig/atomic_ops.pc.in
TEST_TARGET=		check

INSTALL_MAKE_FLAGS=	pkgdatadir=${PREFIX}/share/doc/libatomic_ops

.include "../../mk/bsd.prefs.mk"

.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc)
CPPFLAGS+=	-DAO_NO_SPARC_V9=1
.endif

.include "../../mk/bsd.pkg.mk"