diff options
author | mnag <mnag@FreeBSD.org> | 2008-04-07 10:40:05 +0800 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2008-04-07 10:40:05 +0800 |
commit | 99cf96ee692d7e89053727137baadf0f1d5889a3 (patch) | |
tree | a59c681c337c67bd0b2a4962dfc3f6f7ecb42541 /irc | |
parent | bb63a63a276baa5b932fb62c1335ef0df568ba0c (diff) | |
download | freebsd-ports-gnome-99cf96ee692d7e89053727137baadf0f1d5889a3.tar.gz freebsd-ports-gnome-99cf96ee692d7e89053727137baadf0f1d5889a3.tar.zst freebsd-ports-gnome-99cf96ee692d7e89053727137baadf0f1d5889a3.zip |
- Use pkg-config to determinate if sqlite3 are compiled with threads
- Add USE_GNOME=pkgconfig
Reported by: pav
Diffstat (limited to 'irc')
-rw-r--r-- | irc/ratbox-services/Makefile | 4 |
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" \ |