Support stage

Avoid installing .orig file
This commit is contained in:
Baptiste Daroussin 2014-01-25 00:17:31 +00:00
parent 89f4bd6f9d
commit 701cf71fad
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340960

View file

@ -9,7 +9,7 @@ MASTER_SITES= SF
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Standard Template Library for Extra Large Data Sets
USE_GMAKE= yes
USES= gmake
ALL_TARGET= library_g++
MAKE_ENV+= COMPILER_GCC="${CXX}" OPT="${CXXFLAGS}" \
@ -20,14 +20,12 @@ PORTDOCS= *
OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS
OPTIONS_DEFAULT=OPTIMIZED_CFLAGS
OPTIMIZED_CFLAGS_CXXFLAGS= -O3
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
CXXFLAGS+= -O3
.endif
.if ${OSVERSION} >= 1000000
post-patch:
.if ${OSVERSION} >= 1000000
@${REINPLACE_CMD} -i '' -e 's|std::tr1::|std::|' \
${WRKSRC}/include/stxxl/bits/compat/type_traits.h \
${WRKSRC}/include/stxxl/bits/compat/shared_ptr.h \
@ -36,13 +34,14 @@ post-patch:
do-install:
${INSTALL_DATA} ${WRKSRC}/lib/lib${PORTNAME}.a ${STAGEDIR}${PREFIX}/lib
@cd ${WRKSRC}/include && ${COPYTREE_SHARE} "${PORTNAME} ${PORTNAME}.h" \
cd ${WRKSRC}/include && ${COPYTREE_SHARE} "${PORTNAME} ${PORTNAME}.h" \
${STAGEDIR}${PREFIX}/include
${MKDIR} ${STAGEDIR}${DOCSDIR}
${RM} -f ${STAGEDIR}${PREFIX}/include/stxxl/bits/mng/config.h.orig
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
regression-test:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} tests_g++
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} tests_g++
cd ${WRKSRC}/misc && ${SH} run-all-tests
.include <bsd.port.mk>