svn commit: r362113 - head/databases/sqlite2

Baptiste Daroussin bapt at FreeBSD.org
Wed Jul 16 21:51:43 UTC 2014


Author: bapt
Date: Wed Jul 16 21:51:43 2014
New Revision: 362113
URL: http://svnweb.freebsd.org/changeset/ports/362113
QAT: https://qat.redports.org/buildarchive/r362113/

Log:
  Fix build without shared readline in base

Modified:
  head/databases/sqlite2/Makefile

Modified: head/databases/sqlite2/Makefile
==============================================================================
--- head/databases/sqlite2/Makefile	Wed Jul 16 21:07:18 2014	(r362112)
+++ head/databases/sqlite2/Makefile	Wed Jul 16 21:51:43 2014	(r362113)
@@ -10,7 +10,7 @@ MASTER_SITES=	http://www.sqlite.org/
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	SQL database engine in a C library
 
-USES=		gmake pkgconfig
+USES=		gmake pkgconfig readline
 USE_AUTOTOOLS=	libtool
 USE_LDCONFIG=	YES
 
@@ -19,12 +19,14 @@ CONFIGURE_ARGS=		--prefix=${PREFIX} --wi
 DOCSDIR=	${PREFIX}/share/doc/sqlite2
 EXAMPLESDIR=	${PREFIX}/share/examples/sqlite2
 
-LATEST_LINK=	${PKGNAMEPREFIX}${PORTNAME}2
-
 EXTRACT_AFTER_ARGS=	--exclude CVS
 
 OPTIONS_DEFINE=	TCL THREADS DOCS
 
+.if !exists(/usr/lib/libreadline.so)
+MAKE_ARGS=	READLINE_FLAGS="-DHAVE_READLINE=1 -I${LOCALBASE}/include -L${LOCALBASE}/lib"
+.endif
+
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MTCL}


More information about the svn-ports-all mailing list