From 99cf96ee692d7e89053727137baadf0f1d5889a3 Mon Sep 17 00:00:00 2001 From: mnag Date: Mon, 7 Apr 2008 02:40:05 +0000 Subject: - Use pkg-config to determinate if sqlite3 are compiled with threads - Add USE_GNOME=pkgconfig Reported by: pav --- irc/ratbox-services/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'irc') diff --git a/irc/ratbox-services/Makefile b/irc/ratbox-services/Makefile index cb768afeca96..47dad526a9fc 100644 --- a/irc/ratbox-services/Makefile +++ b/irc/ratbox-services/Makefile @@ -30,6 +30,7 @@ LOGDIR?= /var/log RUNDIR?= /var/run DBDIR?= /var/db/${PORTNAME} PERL?= ${LOCALBASE}/bin/perl +USE_GNOME= pkgconfig SUB_FILES= pkg-message pkg-install PLIST_SUB= LOGDIR=${LOGDIR} RUNDIR=${RUNDIR} DBDIR=${DBDIR} PERL=${PERL} SUB_LIST= LOGDIR=${LOGDIR} RUNDIR=${RUNDIR} DBDIR=${DBDIR} PERL=${PERL} @@ -155,6 +156,9 @@ pre-configure: post-patch: @${REINPLACE_CMD} -e "s#-O[02]##g" ${WRKSRC}/configure + @${REINPLACE_CMD} -E -e "s|(LIBS=.*)-lsqlite3(.*)|\1\`pkg-config --static --libs sqlite3\`\2|" \ + -e "s|(.*DB_LIBS=.*)-lsqlite3(.*)|\1\`pkg-config --static --libs sqlite3\`\2|" \ + ${WRKSRC}/configure @${REINPLACE_CMD} -e "s#%%DBDIR%%#${DBDIR}#g" ${WRKSRC}/include/config.h @${REINPLACE_CMD} -e "s#%%PREFIX%%#${PREFIX}#g" \ -- cgit