Support stage

Add doc option
Simplify the ports to let the ustream build process install the docs, stage
will take care of only packaging what we want.
add GNU_CONFIGURE to properly let the configure process happen with the ports framework
variables set
This commit is contained in:
Baptiste Daroussin 2014-01-27 11:59:40 +00:00
parent 29a603d166
commit 47275c3f45
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341383

View File

@ -9,23 +9,15 @@ MASTER_SITES= SF/worldforge/OldFiles
DISTNAME= ${PORTNAME}-C++-${PORTVERSION}
MAINTAINER= oliver@FreeBSD.org
COMMENT= A C++ reference implementation of the Atlas protocol
COMMENT= C++ reference implementation of the Atlas protocol
OPTIONS_DEFINE= DOCS
GNU_CONFIGURE= yes
USES= pathfix
USE_AUTOTOOLS= libtool
USE_LDCONFIG= YES
USE_BZIP2= YES
USES= pathfix
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's| install-docDATA | |g' ${WRKSRC}/Makefile.in
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for docfile in README COPYING AUTHORS THANKS NEWS ChangeLog TODO HACKING ROADMAP
@${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
.endfor
.endif
MAKE_ARGS= docdir=${DOCSDIR}
.include <bsd.port.mk>