From b5e6aea28afd792a3f9e5de04f86d32a9d89763e Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Mon, 27 Jan 2014 08:52:10 +0000 Subject: [PATCH] Support stage Add a DOCS option --- devel/libxalloc/Makefile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/devel/libxalloc/Makefile b/devel/libxalloc/Makefile index 740ea5b54cdb..fe2bb06ca9c8 100644 --- a/devel/libxalloc/Makefile +++ b/devel/libxalloc/Makefile @@ -8,20 +8,19 @@ MASTER_SITES= http://shh.thathost.com/pub-unix/files/ DISTNAME= xalloc-${PORTVERSION} MAINTAINER= rodrigo@bebik.net -COMMENT= A memory allocation library with error checking +COMMENT= Memory allocation library with error checking + +OPTIONS_DEFINE= DOCS + +USES= uidfix MAKEFILE= ${FILESDIR}/Makefile.lib USE_LDCONFIG= yes MAKE_ENV= WITHOUT_PROFILE=yes __MAKE_CONF=/dev/null SRCCONF=/dev/null -NO_STAGE= yes -.include - post-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/CREDITS ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/CREDITS ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .include