aboutsummaryrefslogtreecommitdiffstats
path: root/devel/mk-configure/Makefile
blob: 638acd15339185e1893c840c94fbe86950d81c19 (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
41
42
43
44
45
46
47
48
49
# New ports collection makefile for:    mk-configure
# Date created:             16 September 2009
# Whom:                 Mikolaj Golub <to.my.trociny@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   mk-configure
PORTVERSION=    0.20.0
CATEGORIES= devel
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER= to.my.trociny@gmail.com
COMMENT=    Lightweight, easy to use replacement for GNU autotools

BUILD_DEPENDS=  ${BMAKE}:${PORTSDIR}/devel/bmake
RUN_DEPENDS:=   ${BUILD_DEPENDS}

LICENSE=    BSD

BMAKE?=     ${LOCALBASE}/bin/bmake
INSTALL_TARGET= installdirs install

PORTDOCS=   README NEWS TODO COPYRIGHT FAQ presentation.pdf
PORTEXAMPLES=   *

MAN1=       mkc_check_funclib.1 mkc_check_header.1 mkc_check_sizeof.1 \
        mkc_check_decl.1 mkc_check_prog.1 mkc_check_custom.1 \
        mkcmake.1
MAN7=       mk-configure.7

.if !defined(NOPORTDOCS)
MAKE_ENV+=  EXTRAFILES="${PORTDOCS:C|.*\.pdf|doc/&|}"
.else
MAKE_ENV+=  EXTRAFILES=""
.endif

do-build:
    @${SETENV} ${MAKE_ENV} ${BMAKE} -C ${BUILD_WRKSRC} ${MAKE_FLAGS} ${MAKEFILE} \
        ${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET}

do-install:
    @${SETENV} ${MAKE_ENV} ${BMAKE} -C ${INSTALL_WRKSRC} ${MAKE_FLAGS} ${MAKEFILE} \
        ${_MAKE_JOBS} ${MAKE_ARGS} ${INSTALL_TARGET}
.if !defined(NOPORTEXAMPLES)
    cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>