freebsd-ports/devel/api-sanity-autotest/Makefile
Gerald Pfeifer e59c88cece Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
   c++14-lang, c++0x, c11, or gcc-c++11-lib.

PR:		219275
2017-09-10 20:55:38 +00:00

71 lines
1.6 KiB
Makefile

# Created by: bf <bf@FreeBSD.org>
# $FreeBSD$
PORTNAME= api-sanity-checker
PORTVERSION= 1.98.4
PORTREVISION= 3
CATEGORIES= devel perl5
MASTER_SITES= LOCAL/bf/${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Quickly generate sanity tests for the API of a C/C++ shared library
LICENSE= LGPL20 GPLv2
LICENSE_COMB= dual
RUN_DEPENDS= ${LOCALBASE}/bin/abi-compliance-checker.pl:devel/abi-compliance-checker
USES= perl5 shebangfix
SHEBANG_FILES= ${PORTNAME}.pl
USE_GITHUB= yes
GH_ACCOUNT= lvc
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
BUILD_DEPENDS= ${LOCALBASE}/bin/abi-compliance-checker.pl:devel/abi-compliance-checker
.else
USE_PERL5= run
.endif
USE_GCC= 4.8 # same as devel/elfutils
NO_BUILD= yes
PLIST_FILES= bin/${PORTNAME}.pl
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
CPPFILT?= /usr/bin/c++filt
READELF?= /usr/bin/readelf
.if ${ARCH} == "sparc64"
PICFLAG?= -fPIC
.else
PICFLAG?= -fpic
.endif
post-patch:
@${REINPLACE_CMD} -E \
-e 's/gcc([ \])/${CC}\1/' \
-e 's/g\+\+([ \])/${CXX}\1/' \
-e 's/ -shared/& ${PICFLAG}/' \
-e 's|abi-compliance-checker|${LOCALBASE}/bin/&.pl|' \
${WRKSRC}/${PORTNAME}.pl \
${WRKSRC}/Makefile.pl \
${WRKSRC}/modules/Internals/RegTests.pm
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${STAGEDIR}${PREFIX}/bin
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
check regression-test test: build
cd ${WRKSRC}; ${PERL} ./${PORTNAME}.pl -test
.endif
PORTDOCS= Changes.html Descriptor.html Options.html Readme.html SpecType.html
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/doc; ${INSTALL_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>