summaryrefslogtreecommitdiff
path: root/converters/p5-Sereal/Makefile
blob: f33fa039aea5ec7e4db57c0321a798ff9bc690b2 (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
38
39

PORTNAME?=	Sereal
PORTVERSION=	4.018
CATEGORIES=	converters perl5
MASTER_SITES=	CPAN
MASTER_SITE_SUBDIR=	CPAN:YVES
PKGNAMEPREFIX=	p5-

MAINTAINER=	adamw@FreeBSD.org
COMMENT?=	Perl extension for fast, compact, powerful binary (de-)serialization

LICENSE=	ART10 GPLv1+
LICENSE_COMB=	dual

TEST_DEPENDS=	p5-Test-Deep>=0:devel/p5-Test-Deep \
		p5-Test-LongString>=0:devel/p5-Test-LongString \
		p5-Test-Warn>=0:devel/p5-Test-Warn

USES=		perl5
USE_PERL5=	configure
MAKE_JOBS_UNSAFE=	yes

.if empty(SLAVE_PORT)
BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	p5-Sereal-Decoder>=${PORTVERSION}:converters/p5-Sereal-Decoder \
		p5-Sereal-Encoder>=${PORTVERSION}:converters/p5-Sereal-Encoder

NO_ARCH=	yes

.else
LIB_DEPENDS=	libzstd.so:archivers/zstd

MAKE_ENV+=	PASTHRU_DEFINE="-I${LOCALBASE}/include"

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Sereal/${PORTNAME:C/Sereal-//}/*.so
.endif

.include <bsd.port.mk>