aboutsummaryrefslogtreecommitdiff
path: root/devel/libdisorder/Makefile
blob: 5d07ac8dcb2faf0fb26878bc29bf1752197166c8 (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
PORTNAME=	libdisorder
PORTVERSION=	0.0.2
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	http://libdisorder.freshdefense.net/releases/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Simple C library for entropy measurement
WWW=		http://libdisorder.freshdefense.net/

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

USE_LDCONFIG=	yes
BUILD_WRKSRC=	${WRKSRC}/src

MAKE_JOBS_UNSAFE=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/src/Makefile

do-install:
	${INSTALL_DATA} ${WRKSRC}/include/disorder.h ${STAGEDIR}${PREFIX}/include
	${INSTALL_DATA} ${WRKSRC}/lib/libdisorder.a ${STAGEDIR}${PREFIX}/lib
	${INSTALL_LIB} ${WRKSRC}/src/libdisorder.so \
		${STAGEDIR}${PREFIX}/lib/libdisorder.so.1
	${INSTALL_PROGRAM} ${WRKSRC}/tool/ropy ${STAGEDIR}${PREFIX}/bin
	${LN} -sf ${PREFIX}/lib/libdisorder.so.1 ${STAGEDIR}${PREFIX}/lib/libdisorder.so

.include <bsd.port.mk>