summaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2008-04-07 02:40:05 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2008-04-07 02:40:05 +0000
commit8f9ba792f92db1a8e867a0283024f1e4f58b8a01 (patch)
tree31f77a277595c7fb1cf5b6595885dfaf7294cbce /irc
parent- Use pkg-config to determinate if sqlite3 are compiled with threads (diff)
- Use pkg-config to determinate if sqlite3 are compiled with threads
- Add USE_GNOME=pkgconfig Reported by: pav
Notes
Notes: svn path=/head/; revision=210692
Diffstat (limited to 'irc')
-rw-r--r--irc/ratbox-services/Makefile4
1 files changed, 4 insertions, 0 deletions
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" \