summaryrefslogtreecommitdiffstats
path: root/devel/libhoard/Makefile
blob: 71074fdeccd754a5f573ac38abee600e6c6d1b42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Created by: Sergey A. Osokin <osa@FreeBSD.org>
# $FreeBSD$

PORTNAME=	libhoard
PORTVERSION=	3.10
CATEGORIES=	devel
MASTER_SITES=	https://github.com/emeryberger/Hoard/releases/download/${PORTVERSION}/
DISTNAME=	Hoard-${PORTVERSION}-source

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Fast, scalable, and memory-efficient allocator for MP

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/../COPYING

BROKEN_aarch64=		no spin lock implementation is available for this platform
BROKEN_mips=		no spin lock implementation is available for this platform
BROKEN_mips64=		no spin lock implementation is available for this platform
BROKEN_powerpc64=	Does not build
BROKEN_sparc64=		Does not build

USE_LDCONFIG=	yes
WRKSRC=		${WRKDIR}/Hoard/src

ALL_TARGET=	freebsd

PLIST_FILES=	lib/libhoard.so lib/libhoard.so.1

post-patch:
	${REINPLACE_CMD} 's!g++!${CXX}!; s!-O2!${CFLAGS}!' ${WRKSRC}/Makefile

do-install:
	${STRIP_CMD} ${WRKSRC}/libhoard.so
	${INSTALL_DATA} ${WRKSRC}/libhoard.so ${STAGEDIR}${PREFIX}/lib/libhoard.so.1
	${LN} -sf libhoard.so.1 ${STAGEDIR}${PREFIX}/lib/libhoard.so

.include <bsd.port.mk>
OpenPOWER on IntegriCloud