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

74 lines
1.8 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: api-sanity-autotest
# Date created: February 16, 2009
# Whom: bf <bf@FreeBSD.org>
#
# $FreeBSD$
#
2012-02-16 12:44:36 +01:00
PORTNAME= api-sanity-checker
2012-10-30 07:37:12 +01:00
PORTVERSION= 1.12.10
CATEGORIES= devel perl5
2012-10-30 07:37:12 +01:00
MASTER_SITES= http://forge.ispras.ru/attachments/download/2634/ \
2011-03-24 02:12:11 +01:00
LOCAL/bf
MAINTAINER= bf@FreeBSD.org
COMMENT= Quickly generate sanity tests for the API of a C/C++ shared library
LICENSE= LGPL20 GPLv2
LICENSE_COMB= dual
2012-02-16 12:44:36 +01:00
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
USE_PERL5= yes
.else
USE_PERL5_RUN= yes
.endif
2012-10-30 07:37:12 +01:00
NO_BUILD= yes
PLIST_FILES= bin/${PORTNAME}.pl
2011-05-01 01:56:55 +02:00
.include <bsd.port.pre.mk>
2012-02-16 12:44:36 +01:00
.if !empty(CC:M*clang*) || !empty(CXX:M*clang*)
IGNORE = : this port requires CC and CXX to be versions of gcc
.endif
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:
2011-03-24 02:12:11 +01:00
@${REINPLACE_CMD} \
-e "\|get_CmdPath(\"ar\")|s|\"ar\"|\"${AR}\"|" \
2012-02-16 12:44:36 +01:00
-e "\|get_CmdPath(\"c++filt\")|s|\"c++filt\"|\"${CPPFILT}\"|" \
-e "\|get_CmdPath(\"gcc\")|s|\"gcc\"|\"${CC}\"|" \
-e "\|get_CmdPath(\"g++\")|s|\"g++\"|\"${CXX}\"|" \
-e "\|get_CmdPath(\"objdump\")|s|\"objdump\"|\"${OBJDUMP}\"|" \
-e "\|get_CmdPath(\"pidof\")|s|\"pidof\"|\"pgrep\"|" \
-e "\|get_CmdPath(\"readelf\")|s|\"readelf\"|\"${READELF}\"|" \
-e "s| -shared|& ${PICFLAG}|g" \
${WRKSRC}/${PORTNAME}.pl
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${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
.ifndef(NOPORTDOCS)
PORTDOCS= Changes.html Descriptor.html Options.html Readme.html SpecType.html
post-install:
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC}/doc; ${INSTALL_MAN} ${PORTDOCS} ${DOCSDIR})
.endif
2011-05-01 01:56:55 +02:00
.include <bsd.port.post.mk>