From 0cdf27debf8e50fefe84094149957e9cc08a90b4 Mon Sep 17 00:00:00 2001 From: bapt Date: Mon, 7 Apr 2014 15:30:00 +0000 Subject: Support stage --- science/cdcl/Makefile | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'science/cdcl/Makefile') diff --git a/science/cdcl/Makefile b/science/cdcl/Makefile index a7bcdf1a8838..50c8a3635cde 100644 --- a/science/cdcl/Makefile +++ b/science/cdcl/Makefile @@ -12,20 +12,17 @@ DISTNAME= dcl-${PORTVERSION}-C MAINTAINER= murashin@gfd-dennou.org COMMENT= Scientific graphic library for geoscience -USES= pkgconfig -USE_GCC= any +OPTIONS_DEFINE= DOCS +USES= desthack pkgconfig USE_XORG= x11 xext USE_GNOME= gtk20 gdkpixbuf2 GNU_CONFIGURE= yes -CONFIGURE_ARGS= --prefix=${PREFIX} --exec-prefix=${PREFIX} --with-x --enable-shared +CONFIGURE_ARGS= --with-x --enable-shared PLIST_SUB= DCL_VERSION=${PORTVERSION:S/.//g} MAKE_JOBS_UNSAFE= yes -NO_STAGE= yes -.include - BINARIES= cdclcmap cdclclr cdcldate cdcldbs cdclexec cdclfont \ cdclpara cdcltone cdcltrf cdclver PORTDOCS= CHECK CREDITS HISTORY README @@ -38,17 +35,13 @@ post-configure: post-install: .for i in ${BINARIES} - ${STRIP_CMD} ${PREFIX}/bin/${i} + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${i} .endfor -.if !defined(NOPORTEXAMPLES) - @${MKDIR} ${EXAMPLESDIR} - (cd ${WRKSRC}/demo/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}) -.endif -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/demo/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/ .endfor -.endif -.include +.include -- cgit