aboutsummaryrefslogtreecommitdiffstats
path: root/security/clambc/Makefile
blob: 8ded81f94e0f7bcd082e4ed796ab56cd54c58ba6 (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
35
36
37
38
39
40
# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$

PORTNAME=   clambc
DISTVERSION=    0.98.5rc1
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
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}/obj

MAKE_JOBS_UNSAFE=   yes

post-extract:
    @${MKDIR} ${WRKSRC}

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} ${WRKSRC}/Release/bin/clambc-compiler \
        ${STAGEDIR}${PREFIX}/bin/

.include <bsd.port.mk>