Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2014 00:21:12 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340761 - head/devel/cdialog
Message-ID:  <201401230021.s0N0LCd5041468@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Jan 23 00:21:11 2014
New Revision: 340761
URL: http://svnweb.freebsd.org/changeset/ports/340761
QAT: https://qat.redports.org/buildarchive/r340761/

Log:
  Support stage
  Fix build with ports ncurses

Modified:
  head/devel/cdialog/Makefile

Modified: head/devel/cdialog/Makefile
==============================================================================
--- head/devel/cdialog/Makefile	Thu Jan 23 00:20:38 2014	(r340760)
+++ head/devel/cdialog/Makefile	Thu Jan 23 00:21:11 2014	(r340761)
@@ -10,35 +10,32 @@ DISTNAME=	${PORTNAME:S|^c||}-${PORTVERSI
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	sylvio@FreeBSD.org
-COMMENT=	An enhanced version of 'dialog' to work with ncurses
+COMMENT=	Enhanced version of 'dialog' to work with ncurses
+
+OPTIONS_DEFINE=	EXAMPLES
 
 LICENSE=	LGPL21
 
+USES=		ncurses
+
 USE_AUTOTOOLS=	libtool
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 CONFIGURE_ARGS=	--enable-widec \
 		--includedir=${PREFIX}/include/${PORTNAME} \
 		--with-libtool \
+		--with-curses-dir=${NCURSESBASE} \
 		--with-ncursesw \
 		--with-package=${PORTNAME}
 MAKEFILE=	makefile
 
-MAN1=		cdialog.1
-MAN3=		cdialog.3
-MANCOMPRESSED=	no
-
 INSTALL_TARGET=	install-strip install-man install-lib
 
-NO_STAGE=	yes
-.if !defined(NOPORTEXAMPLES)
 post-patch:
 	@${FIND} ${WRKSRC}/samples/ -type f -exec ${REINPLACE_CMD} -i "" "s|dialog|cdialog|g" {} \;
 
 post-install:
-	@${MKDIR} ${EXAMPLESDIR}
-	cd ${WRKSRC}/samples && ${FIND} . | \
-		${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>



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