aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorbf <bf@FreeBSD.org>2011-03-24 09:12:11 +0800
committerbf <bf@FreeBSD.org>2011-03-24 09:12:11 +0800
commit1c8e1f172d27060fe0b72e36d5b7e6725bde0c1f (patch)
treeb600c6e40639a6df21f3b8c6b8526c8c53b2ea02 /devel
parent034eefec2f2be2dbbafb7ac758d526da51b40542 (diff)
downloadfreebsd-ports-gnome-1c8e1f172d27060fe0b72e36d5b7e6725bde0c1f.tar.gz
freebsd-ports-gnome-1c8e1f172d27060fe0b72e36d5b7e6725bde0c1f.tar.zst
freebsd-ports-gnome-1c8e1f172d27060fe0b72e36d5b7e6725bde0c1f.zip
fix post-patch; install docs
Diffstat (limited to 'devel')
-rw-r--r--devel/api-sanity-autotest/Makefile30
1 files changed, 19 insertions, 11 deletions
diff --git a/devel/api-sanity-autotest/Makefile b/devel/api-sanity-autotest/Makefile
index 39d12b0213b6..25c8bfa2b8af 100644
--- a/devel/api-sanity-autotest/Makefile
+++ b/devel/api-sanity-autotest/Makefile
@@ -7,8 +7,10 @@
PORTNAME= api-sanity-autotest
PORTVERSION= 1.12.1
+PORTREVISION= 1
CATEGORIES= devel perl5
-MASTER_SITES= http://linuxtesting.org/downloads/
+MASTER_SITES= http://linuxtesting.org/downloads/ \
+ LOCAL/bf
MAINTAINER= bf@FreeBSD.org
COMMENT= Quickly generate sanity tests for the API of a C/C++ shared library
@@ -25,16 +27,14 @@ CPPFILT?= c++filt
READELF?= readelf
post-patch:
- ${REINPLACE_CMD} \
- -e "\%my% { \
- s%\"c++filt\"%\"${CPPFILT}\"%g; \
- s%\"readelf\"%\"${READELF}\"%g; \
- s%\"g++\"%\"${CXX}\"%g; \
- s%\"gcc\"%\"${CC}\"%g; }" \
- -e "\%search_for% { \
- s%\"g++\"%\"${CXX}\"%g; \
- s%\"gcc\"%\"${CC}\"%g; }" \
- -e "s% -shared%& -fPIC%g" \
+ @${REINPLACE_CMD} \
+ -e "\|ArCmd =|s|=.*|= \"${AR}\";|" \
+ -e "\|CPP_FILT =|s|=.*|= \"${CPPFILT}\";|" \
+ -e "\|GCC_PATH =|s|=.*|= \"${CC}\";|" \
+ -e "\|GPP_PATH =|s|=.*|= \"${CXX}\";|" \
+ -e "\|ObjdumpCmd =|s|=.*|= \"${OBJDUMP}\";|" \
+ -e "\|ReadelfCmd =|s|=.*|= \"${READELF}\";|" \
+ -e "s|-shared|& -fPIC|g" \
${WRKSRC}/${PORTNAME}.pl
do-install:
@@ -43,4 +43,12 @@ do-install:
check regression-test test: build
@(cd ${WRKSRC} && ./${PORTNAME}.pl -test )
+.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
.include <bsd.port.mk>