aboutsummaryrefslogtreecommitdiffstats
path: root/devel/premake4/Makefile
blob: c23bd13a227dc51710f8ad3db61086e4a7a417f5 (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
# New ports collection makefile for:    premake4
# Date created:     2011-08-21
# Whom:         Vitaly Magerya <vmagerya@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   premake4
PORTVERSION=    4.3
CATEGORIES= devel
MASTER_SITES=   SF/premake/Premake/${PORTVERSION}
DISTNAME=   premake-${PORTVERSION}-src

MAINTAINER= vmagerya@gmail.com
COMMENT=    Writes build scripts

WRKSRC=     ${WRKDIR}/premake-${PORTVERSION}
BUILD_WRKSRC=   ${WRKSRC}/build/gmake.unix

USE_ZIP=    yes
USE_GMAKE=  yes
MAKE_ARGS=  ARCH=""

PLIST_FILES=    bin/premake4

PORTDOCS=   CHANGES.txt LICENSE.txt README.txt

.include <bsd.port.pre.mk>

post-patch:
    ${REINPLACE_CMD} -e 's|-ldl||' ${BUILD_WRKSRC}/Premake4.make

do-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
    @${INSTALL_PROGRAM} ${WRKSRC}/bin/release/premake4 ${PREFIX}/bin

.include <bsd.port.post.mk>