svn commit: r340761 - head/devel/cdialog

Baptiste Daroussin bapt at FreeBSD.org
Thu Jan 23 00:21:12 UTC 2014


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 at 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>


More information about the svn-ports-all mailing list