svn commit: r340822 - head/devel/cdialog

Baptiste Daroussin bapt at FreeBSD.org
Thu Jan 23 11:10:47 UTC 2014


Author: bapt
Date: Thu Jan 23 11:10:46 2014
New Revision: 340822
URL: http://svnweb.freebsd.org/changeset/ports/340822
QAT: https://qat.redports.org/buildarchive/r340822/

Log:
  Fix build without ncurses port installed
  
  Reported by:	olgeni

Modified:
  head/devel/cdialog/Makefile

Modified: head/devel/cdialog/Makefile
==============================================================================
--- head/devel/cdialog/Makefile	Thu Jan 23 10:15:29 2014	(r340821)
+++ head/devel/cdialog/Makefile	Thu Jan 23 11:10:46 2014	(r340822)
@@ -24,13 +24,18 @@ USE_LDCONFIG=	yes
 CONFIGURE_ARGS=	--enable-widec \
 		--includedir=${PREFIX}/include/${PORTNAME} \
 		--with-libtool \
-		--with-curses-dir=${NCURSESBASE} \
 		--with-ncursesw \
 		--with-package=${PORTNAME}
 MAKEFILE=	makefile
 
 INSTALL_TARGET=	install-strip install-man install-lib
 
+.include <bsd.port.pre.mk>
+
+.if ${NCURSESBASE} != /usr
+CONFIGURE_ARGS=	--with-curses-dir=${NCURSESBASE}
+.endif
+
 post-patch:
 	@${FIND} ${WRKSRC}/samples/ -type f -exec ${REINPLACE_CMD} -i "" "s|dialog|cdialog|g" {} \;
 
@@ -38,4 +43,4 @@ post-install:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-all mailing list