aboutsummaryrefslogtreecommitdiff
path: root/devel/mk-configure/Makefile
blob: f9b0e04d51a8ef83d5334bade2a8579947f613b4 (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
PORTNAME=	mk-configure
PORTVERSION=	0.37.0
CATEGORIES=	devel
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	trociny@FreeBSD.org
COMMENT=	Lightweight, easy to use replacement for GNU autotools
WWW=		https://sourceforge.net/projects/mk-configure/

LICENSE=	BSD2CLAUSE

BUILD_DEPENDS=	${BMAKE}:devel/bmake
RUN_DEPENDS:=	${BUILD_DEPENDS} \
		bmkdep:devel/bmkdep

MAKE_JOBS_UNSAFE=	yes
NO_ARCH=	yes

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

PORTDATA=	*
PORTEXAMPLES=	*

OPTIONS_DEFINE=	DOCS EXAMPLES

post-patch:
	@${ECHO_CMD} "MKDEP ?= bmkdep" >> ${WRKSRC}/mk/sys.mk

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}
	cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}

do-test:
	${SETENV} NOSUBDIR="tests/pkg_config_2 tests/predopost_targets \
		tests/lua_dirs examples/hello_lua examples/hello_lua2 \
		examples/hello_lua3" CPPFLAGS='-I/usr/local/include' \
		LDFLAGS='-L/usr/local/lib -Wl,-rpath /usr/local/lib' \
		${INSTALL_WRKSRC}/scripts/mkcmake -C ${INSTALL_WRKSRC} test

.include <bsd.port.mk>