2012-12-30 22:38:28 +01:00
|
|
|
# Created by: bf <bf@FreeBSD.org>
|
2010-05-10 04:23:59 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2012-02-16 12:44:36 +01:00
|
|
|
PORTNAME= api-sanity-checker
|
2013-05-29 16:53:52 +02:00
|
|
|
PORTVERSION= 1.98.4
|
2010-05-10 04:23:59 +02:00
|
|
|
CATEGORIES= devel perl5
|
2015-05-18 19:07:45 +02:00
|
|
|
MASTER_SITES= LOCAL/bf/${PORTNAME}
|
2010-05-10 04:23:59 +02:00
|
|
|
|
2010-07-08 14:51:37 +02:00
|
|
|
MAINTAINER= bf@FreeBSD.org
|
2010-05-10 04:23:59 +02:00
|
|
|
COMMENT= Quickly generate sanity tests for the API of a C/C++ shared library
|
|
|
|
|
2010-09-04 14:29:33 +02:00
|
|
|
LICENSE= LGPL20 GPLv2
|
|
|
|
LICENSE_COMB= dual
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
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
|
2015-05-18 19:07:45 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= lvc
|
2013-09-17 08:12:35 +02:00
|
|
|
|
2012-02-16 12:44:36 +01:00
|
|
|
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
|
2016-04-01 16:00:51 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/abi-compliance-checker.pl:devel/abi-compliance-checker
|
2011-06-23 11:43:22 +02:00
|
|
|
.else
|
2013-09-17 08:12:35 +02:00
|
|
|
USE_PERL5= run
|
2011-06-23 11:43:22 +02:00
|
|
|
.endif
|
2012-12-30 22:38:28 +01:00
|
|
|
USE_GCC= any
|
2010-05-10 04:23:59 +02:00
|
|
|
|
2012-10-30 07:37:12 +01:00
|
|
|
NO_BUILD= yes
|
2010-05-10 04:23:59 +02:00
|
|
|
PLIST_FILES= bin/${PORTNAME}.pl
|
|
|
|
|
2014-02-21 14:36:12 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-02-10 14:54:26 +01:00
|
|
|
|
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
|
|
|
|
|
2010-05-10 04:23:59 +02:00
|
|
|
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
|
2010-05-10 04:23:59 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-06-15 05:06:08 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${STAGEDIR}${PREFIX}/bin
|
2010-05-10 04:23:59 +02:00
|
|
|
|
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
|
2011-06-23 11:43:22 +02:00
|
|
|
|
|
|
|
.endif
|
2010-05-10 04:23:59 +02:00
|
|
|
|
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>
|