Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jul 2014 09:17:24 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r361204 - head/lang/ats
Message-ID:  <201407080917.s689HOul049803@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Tue Jul  8 09:17:24 2014
New Revision: 361204
URL: http://svnweb.freebsd.org/changeset/ports/361204
QAT: https://qat.redports.org/buildarchive/r361204/

Log:
  Stagify.

Modified:
  head/lang/ats/Makefile

Modified: head/lang/ats/Makefile
==============================================================================
--- head/lang/ats/Makefile	Tue Jul  8 09:07:45 2014	(r361203)
+++ head/lang/ats/Makefile	Tue Jul  8 09:17:24 2014	(r361204)
@@ -19,14 +19,14 @@ CFLAGS+=	-I${LOCALBASE}/include \
 		-L${LOCALBASE}/lib
 
 MAKE_JOBS_UNSAFE=yes
-
 PORTDOCS=	FAQ.txt
 PORTEXAMPLES=	AUP INTRO KernighanRitchie MISC MULTICORE TEST
 
-OPTIONS_DEFINE=		GMP PCRE
+OPTIONS_DEFINE=	GMP PCRE DOCS EXAMPLES
 OPTIONS_DEFAULT=	GMP PCRE
+GMP_LIB_DEPENDS=	libgmp.so:${PORTSDIR}/math/gmp
+PCRE_LIB_DEPENDS=	libpcre.so:${PORTSDIR}/devel/pcre
 
-NO_STAGE=	yes
 .include <bsd.port.pre.mk>
 
 .if ${ARCH} == amd64
@@ -35,14 +35,6 @@ PLIST_SUB+=	LIBDIR="lib64"
 PLIST_SUB+=	LIBDIR="lib"
 .endif
 
-.if ${PORT_OPTIONS:MGMP}
-LIB_DEPENDS+=	gmp:${PORTSDIR}/math/gmp
-.endif
-
-.if ${PORT_OPTIONS:MPCRE}
-LIB_DEPENDS+=	pcre:${PORTSDIR}/devel/pcre
-.endif
-
 post-patch:
 	${SED} -i '' -e 's/gcc/${CC}/' \
 	    ${WRKSRC}/ccomp/runtime/GCATS/Makefile \
@@ -63,18 +55,14 @@ post-configure:
 .endif
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC}/doc && \
-	${COPYTREE_SHARE} "${PORTDOCS}" ${DOCSDIR}
-.endif
-.if !defined(NOPORTEXAMPLES)
-	${MKDIR} ${EXAMPLESDIR}
+	${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	cd ${WRKSRC}/doc/EXAMPLE && \
-	${COPYTREE_SHARE} "${PORTEXAMPLES}" ${EXAMPLESDIR}
-	${FIND} ${EXAMPLESDIR} -name Makefile \
+	${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR}
+	${FIND} ${STAGEDIR}${EXAMPLESDIR} -name Makefile \
 	    -exec ${SED} -i '' -e 's|^ATSUSRQ=.*|ATSUSRQ="${PREFIX}"|' {} \;
-.endif
 
 .include "bsd.ats.mk"
 .include <bsd.port.post.mk>



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