From 9a64868b087cf02fafa35c5fd66ef3db32d2ddb0 Mon Sep 17 00:00:00 2001 From: Marcus Alves Grando Date: Mon, 7 Apr 2008 02:50:39 +0000 Subject: [PATCH] - Use pkg-config to determinate if sqlite3 are compiled with threads - Add USE_GNOME=pkgconfig Reported by: pav --- textproc/soothsayer/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/textproc/soothsayer/Makefile b/textproc/soothsayer/Makefile index 808afa573a05..a4d400c4ed98 100644 --- a/textproc/soothsayer/Makefile +++ b/textproc/soothsayer/Makefile @@ -17,6 +17,7 @@ BUILD_DEPENDS= swig>=1.3.31:${PORTSDIR}/devel/swig13 USE_LDCONFIG= yes USE_SQLITE= 3 +USE_GNOME= pkgconfig GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-static --localstatedir=${PREFIX}/var/${PORTNAME} CPPFLAGS+= -I${LOCALBASE}/include @@ -29,5 +30,8 @@ post-patch: @${REINPLACE_CMD} -e 's|\$$\^|$${.ALLSRC}|' ${WRKSRC}/resources/Makefile.in @${REINPLACE_CMD} -e '1s|/.*|/bin/sh|'\ ${WRKSRC}/resources/profiles/generate_soothsayer_config.sh + @${REINPLACE_CMD} -E -e "s|(LIBS=.*)-lsqlite3(.*)|\1\`pkg-config --static --libs sqlite3\`\2|" \ + -e "s|(.*SQLITE_LIBS=.*)-lsqlite3(.*)|\1\`pkg-config --static --libs sqlite3\`\2|" \ + ${WRKSRC}/configure .include