summaryrefslogtreecommitdiffstats
path: root/security/clambc/Makefile
blob: 9f186aaa3b717301f98ff8aba6aa86c05c98ab86 (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
# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$

PORTNAME=	clambc
DISTVERSION=	0.98.5rc1
PORTREVISION=	2
CATEGORIES=	security
MASTER_SITES=	SF/clamav/${PORTNAME:tl}

MAINTAINER=	zi@FreeBSD.org
COMMENT=	Bytecode signature compiler for ClamAV

LICENSE=	GPLv2

USES=		gmake libtool perl5
ALL_TARGET=	clambc-only
GNU_CONFIGURE=	yes
CONFIGURE_OUTSOURCE=	yes
USE_GCC=	any
USE_LDCONFIG=	yes
USE_PERL5=	build
CONFIGURE_SCRIPT=llvm/configure
CONFIGURE_ARGS=	--enable-optimized --enable-targets=host-only \
		--disable-bindings --enable-bindings=none

WRKSRC=		${WRKDIR}/clamav-bytecode-compiler-${DISTNAME}

MAKE_JOBS_UNSAFE=	yes

do-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}/include/
	@${RM} ${WRKSRC}/clang/lib/Headers/CMakeLists.txt \
		${WRKSRC}/clang/lib/Headers/Makefile
	(cd ${WRKSRC}/clang/lib/Headers/ && ${COPYTREE_SHARE} . \
		${STAGEDIR}${DATADIR}/include/)
	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/Release/bin/clambc-compiler \
		${STAGEDIR}${PREFIX}/bin/

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