freebsd-ports/devel/api-sanity-autotest/Makefile

71 lines
1.6 KiB
Makefile
Raw Normal View History

2012-12-30 22:38:28 +01:00
# Created by: bf <bf@FreeBSD.org>
# $FreeBSD$
2012-02-16 12:44:36 +01:00
PORTNAME= api-sanity-checker
PORTVERSION= 1.98.4
CATEGORIES= devel perl5
MASTER_SITES= LOCAL/bf/${PORTNAME}
MAINTAINER= bf@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
2012-12-30 22:38:28 +01:00
2014-06-15 05:06:08 +02:00
USES= perl5 shebangfix
SHEBANG_FILES= ${PORTNAME}.pl
USE_GITHUB= yes
GH_ACCOUNT= lvc
2012-02-16 12:44:36 +01:00
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
BUILD_DEPENDS= ${LOCALBASE}/bin/abi-compliance-checker.pl:devel/abi-compliance-checker
.else
USE_PERL5= run
.endif
2012-12-30 22:38:28 +01:00
USE_GCC= any
2012-10-30 07:37:12 +01:00
NO_BUILD= yes
PLIST_FILES= bin/${PORTNAME}.pl
OPTIONS_DEFINE= DOCS
2012-12-30 22:38:28 +01:00
.include <bsd.port.options.mk>
2012-02-16 12:44:36 +01:00
CPPFILT?= /usr/bin/c++filt
READELF?= /usr/bin/readelf
2011-05-01 01:56:55 +02:00
.if ${ARCH} == "sparc64"
PICFLAG?= -fPIC
.else
PICFLAG?= -fpic
.endif
post-patch:
2012-12-30 22:38:28 +01:00
@${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:
2014-06-15 05:06:08 +02:00
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${STAGEDIR}${PREFIX}/bin
2012-02-16 12:44:36 +01:00
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
2011-03-09 03:49:54 +01:00
check regression-test test: build
2012-02-16 12:44:36 +01:00
cd ${WRKSRC}; ${PERL} ./${PORTNAME}.pl -test
.endif
2011-03-24 02:12:11 +01:00
PORTDOCS= Changes.html Descriptor.html Options.html Readme.html SpecType.html
post-install:
2014-06-15 05:06:08 +02:00
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/doc; ${INSTALL_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
2011-03-24 02:12:11 +01:00
2012-12-30 22:38:28 +01:00
.include <bsd.port.mk>