Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Apr 2014 19:46:09 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r349884 - head/devel/aifad
Message-ID:  <201404011946.s31Jk99P049597@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Tue Apr  1 19:46:09 2014
New Revision: 349884
URL: http://svnweb.freebsd.org/changeset/ports/349884
QAT: https://qat.redports.org/buildarchive/r349884/

Log:
  - Add staging support
  - Convert to new LIB_DEPENDS format
  - Define DOCS EXAMPLES options

Modified:
  head/devel/aifad/Makefile

Modified: head/devel/aifad/Makefile
==============================================================================
--- head/devel/aifad/Makefile	Tue Apr  1 19:43:27 2014	(r349883)
+++ head/devel/aifad/Makefile	Tue Apr  1 19:46:09 2014	(r349884)
@@ -15,30 +15,26 @@ BUILD_DEPENDS=	menhir:${PORTSDIR}/devel/
 		ocaml-cfg>0:${PORTSDIR}/devel/ocaml-cfg \
 		ocaml-pcre>0:${PORTSDIR}/devel/ocaml-pcre \
 		ocaml-res>0:${PORTSDIR}/devel/ocaml-res
-LIB_DEPENDS=	pcre:${PORTSDIR}/devel/pcre
+LIB_DEPENDS=	libpcre.so:${PORTSDIR}/devel/pcre
 
 USE_OCAML=	yes
 NO_OCAML_RUNDEPENDS=yes
 
 HAS_CONFIGURE=	yes
-CONFIGURE_ARGS=	--prefix ${PREFIX}
+CONFIGURE_ARGS=	--prefix ${STAGEDIR}${PREFIX}
 
 PORTDOCS=	*
 PORTEXAMPLES=	*
 PLIST_FILES=	bin/${PORTNAME}
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 post-install:
-	@${STRIP_CMD} ${PREFIX}/bin/${PORTNAME}
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-.for i in AUTHORS.txt CHANGES.txt README.md TODO.md
-	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
-.endfor
-.endif
-.if !defined(NOPORTEXAMPLES)
-	@${MKDIR} ${EXAMPLESDIR}
-	(cd ${WRKSRC}/examples && ${INSTALL_DATA} * ${EXAMPLESDIR})
-.endif
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS.txt CHANGES.txt README.md \
+		TODO.md ${STAGEDIR}${DOCSDIR})
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	(cd ${WRKSRC}/examples && ${INSTALL_DATA} * ${STAGEDIR}${EXAMPLESDIR})
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404011946.s31Jk99P049597>