From 1c4afffca77ee4dcf20a5037adc8c8453a4e32b6 Mon Sep 17 00:00:00 2001 From: obraun Date: Wed, 21 May 2003 15:59:29 +0000 Subject: - Install some documentation - Respect NOPORTDOCS - Use HAS_CONFIGURE and CONFIGURE_ARGS instead of redefining do-configure target PR: ports/52502 Submitted by: Sergei Kolobov Approved by: maintainer --- devel/buildtool/Makefile | 15 ++++++++++++--- devel/buildtool/pkg-plist | 11 ++++++++--- 2 files changed, 20 insertions(+), 6 deletions(-) (limited to 'devel/buildtool') diff --git a/devel/buildtool/Makefile b/devel/buildtool/Makefile index ccc5861b7a1..a6a12920ab7 100644 --- a/devel/buildtool/Makefile +++ b/devel/buildtool/Makefile @@ -14,10 +14,19 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= jos@catnook.com COMMENT= A set of portable software build utilities +HAS_CONFIGURE= yes +CONFIGURE_ARGS= -p ${PREFIX} +.if defined(NOPORTDOCS) +CONFIGURE_ARGS+= -n doc +.endif + MAN1= buildtool.1 +DOCS= CHANGES PEOPLE README TODO -do-configure: - @cd ${WRKSRC} \ - && ./configure -p ${PREFIX} +.if !defined(NOPORTDOCS) +post-install: + @${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} +.endif .include diff --git a/devel/buildtool/pkg-plist b/devel/buildtool/pkg-plist index 5cf7c978ef5..1d4c65786ea 100644 --- a/devel/buildtool/pkg-plist +++ b/devel/buildtool/pkg-plist @@ -39,6 +39,11 @@ share/buildtool-0/templates/mk_top @dirrm share/buildtool-0/licenses @dirrm share/buildtool-0/bt_config @dirrm share/buildtool-0 -@unexec install-info --delete %D/info/buildtool.info %D/info/dir -info/buildtool.info -@exec install-info %D/info/buildtool.info %D/info/dir +%%PORTDOCS%%@unexec install-info --delete %D/info/buildtool.info %D/info/dir +%%PORTDOCS%%info/buildtool.info +%%PORTDOCS%%@exec install-info %D/info/buildtool.info %D/info/dir +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/PEOPLE +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TODO +%%PORTDOCS%%@dirrm %%DOCSDIR%% -- cgit