freebsd-ports/devel/abi-compliance-checker/Makefile
Li-Wen Hsu 9b71876a2d - Update to 1.13
PR:		ports/144048
Submitted by:	bf <bf1783 AT gmail.com> (maintainer)

Feature safe:	yes
2010-02-17 20:40:31 +00:00

40 lines
1,006 B
Makefile

# New ports collection makefile for: abi-compliance-checker
# Date created: August 21, 2009
# Whom: bf <bf1783@gmail.com>
#
# $FreeBSD$
#
PORTNAME= abi-compliance-checker
PORTVERSION= 1.13
CATEGORIES= devel perl5
MASTER_SITES= http://ispras.linux-foundation.org/images/b/ba/
DISTFILES= ${PORTNAME:S/^a/A/}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= bf1783@gmail.com
COMMENT= Checks binary compatibility of two versions of a C/C++ shared library
RUN_DEPENDS= ${LOCALBASE}/bin/gsed:${PORTSDIR}/textproc/gsed
NO_BUILD= yes
USE_PERL5_RUN= yes
PLIST_FILES= bin/${PORTNAME}.pl
CPPFILT?= c++filt
READELF?= readelf
post-patch:
${REINPLACE_CMD} -e "s|c++filt|${CPPFILT}|g" \
-e "s|readelf|${READELF}|g" -e "s|g++|${CXX}|g" \
-e "s|\"gcc|\"${CC}|g" -e "s|-shared|& -fPIC|g" \
-e "s|gsed|${LOCALBASE}/bin/gsed|g" \
${WRKSRC}/${PORTNAME}.pl
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin
test: build
@(cd ${WRKSRC} && ./${PORTNAME}.pl -test )
.include <bsd.port.mk>