Add stage support.

Approved by:	bdrewery
This commit is contained in:
Mikolaj Golub 2013-10-10 13:31:37 +00:00
parent a96fe7cc44
commit 0f3996304a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=329995
2 changed files with 10 additions and 7 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= mk-configure
PORTVERSION= 0.24.0
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
@ -21,18 +22,12 @@ 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
NO_STAGE= yes
post-patch:
@${ECHO_CMD} "MKDEP ?= bmkdep" >> ${WRKSRC}/sys.mk
@ -44,7 +39,7 @@ 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}
cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>

View file

@ -16,6 +16,14 @@ bin/mkcmake
%%DATADIR%%/custom/prog_flex
%%DATADIR%%/custom/prog_gawk
%%DATADIR%%/custom/prog_gm4
man/man1/mkc_check_custom.1.gz
man/man1/mkc_check_decl.1.gz
man/man1/mkc_check_funclib.1.gz
man/man1/mkc_check_header.1.gz
man/man1/mkc_check_prog.1.gz
man/man1/mkc_check_sizeof.1.gz
man/man1/mkcmake.1.gz
man/man7/mk-configure.7.gz
@dirrm %%DATADIR%%/custom
@dirrm %%DATADIR%%
share/mkc-mk/configure.mk