aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libhoard/Makefile
blob: 14ecd943b1e0dcb5755b3ef59f24d82d4f752ce2 (plain) (blame)
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
# 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= uffe@uffe.org
COMMENT=    Fast, scalable, and memory-efficient allocator for MP

LICENSE=    GPLv2 # or later
LICENSE_FILE=   ${WRKSRC}/../COPYING

BROKEN_mips=    no spin lock implementation is available for this platform
BROKEN_mips64=  no spin lock implementation is available for this platform

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>