ports/devel/api-sanity-autotest/Makefile
Muhammad Moinur Rahman bbab7f59e9 */*: Sunset 12.4-RELEASE/12-STABLE from ports tree
- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
  ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
  Also move conditional flags for non sparc64/arm ARCH to fixed flags.

Reviewed by:	brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068
2023-12-31 01:37:05 +01:00

65 lines
1.6 KiB
Makefile

PORTNAME= api-sanity-checker
PORTVERSION= 1.98.4
PORTREVISION= 7
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
WWW= https://ispras.linux-foundation.org/index.php/API_Sanity_Autotest
LICENSE= LGPL20 GPLv2
LICENSE_COMB= dual
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${LOCALBASE}/bin/abi-compliance-checker: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:devel/abi-compliance-checker
.else
USE_PERL5= run
.endif
USE_GCC= yes # same as devel/elfutils
NO_BUILD= yes
PLIST_FILES= bin/${PORTNAME}.pl
PORTDOCS= Changes.html Descriptor.html Options.html Readme.html \
SpecType.html
OPTIONS_DEFINE= DOCS
PICFLAG?= -fpic
.include <bsd.port.options.mk>
CPPFILT?= /usr/bin/c++filt
READELF?= /usr/bin/readelf
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
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}
# XXX: tests fail: ERROR: can't find GCC>=3.0 in PATH
do-test:
cd ${WRKSRC} && ${PERL} ./${PORTNAME}.pl -test
.include <bsd.port.mk>