aboutsummaryrefslogtreecommitdiffstats
path: root/devel/bam/Makefile
blob: f803c83ab6d0909431e645a87e8d2992f717f275 (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
# Created by: Timothy Beyer <beyert@cs.ucr.edu>
# $FreeBSD$

PORTNAME=   bam
PORTVERSION=    0.4.0
CATEGORIES= devel
MASTER_SITES=   http://github.com/downloads/matricks/bam/

MAINTAINER= beyert@cs.ucr.edu
COMMENT=    A fast and flexible build system using Lua

LICENSE=    ZLIB
LICENSE_FILE=   ${WRKSRC}/license.txt

FETCH_ARGS= "-Fpr"
USE_BZIP2=  yes

PLIST_FILES=    bin/bam

do-build:
.if defined(CC) && ${CC:T:Mclang}
    @${REINPLACE_CMD} -e 's|-ldl||g' ${WRKSRC}/make_unix_clang.sh
    (cd ${WRKSRC} && ${SH} make_unix_clang.sh)
.else
    @${REINPLACE_CMD} -e 's|-ldl||g' ${WRKSRC}/make_unix.sh
    (cd ${WRKSRC} && ${SH} make_unix.sh)
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bam ${PREFIX}/bin

.include <bsd.port.mk>