1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Unbreak package building.

On FreeBSD-STABLE, it seems impossible to link with -liodbc.3 without
giving PTHREAD_LIBS (and PTHREAD_CFLAGS), then the ODBC driver was not
built.

Approved by:	portmgr (marcus).
This commit is contained in:
Thierry Thomas 2004-04-24 19:34:55 +00:00
parent fe9010cb8a
commit ed23609d10
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107804
2 changed files with 8 additions and 5 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= clip
PORTVERSION= 1.1.9.1
PORTREVISION= 1
CATEGORIES= databases lang
MASTER_SITES= ftp://ftp.linux.ru.net/mirrors/clip/ \
ftp://ftp.lastik.ru/clip/ \
@ -104,6 +105,8 @@ pre-configure:
-e "s|#!/bin/sh|#!${LOCALBASE}/bin/bash|" \
-e "s|/usr/local|${LOCALBASE}|g" \
-e "s|/usr/X11R6|${X11BASE}|g"
@${REINPLACE_CMD} -e "s|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|" \
-e "s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|" ${WRKSRC}/cliplibs/clip-odbc/configure
do-install:
${CP} -R ${WRKDIR}/cliproot ${PREFIX}/clip

View File

@ -1,11 +1,11 @@
--- cliplibs/clip-odbc/configure.orig Mon May 27 12:25:29 2002
+++ cliplibs/clip-odbc/configure Sat Sep 20 23:46:44 2003
@@ -21,11 +21,11 @@
--- cliplibs/clip-odbc/configure.orig Fri Dec 26 11:34:59 2003
+++ cliplibs/clip-odbc/configure Sat Apr 24 15:52:06 2004
@@ -22,11 +22,11 @@
LIBODBC=''
LIBOOB=''
-gcc -o test_odbc test_odbc.c -liodbc >/dev/null 2>&1 && LIBODBC='-liodbc' && echo 'iODBC driver manager were found'
+gcc -o test_odbc test_odbc.c -I/usr/local/include -L/usr/local/lib -liodbc >/dev/null 2>&1 && LIBODBC='-liodbc' && echo 'iODBC driver manager were found'
+gcc -o test_odbc test_odbc.c %%PTHREAD_CFLAGS%% -I/usr/local/include -L/usr/local/lib %%PTHREAD_LIBS%% -liodbc >/dev/null 2>&1 && LIBODBC='-liodbc' && echo 'iODBC driver manager were found'
if [ -z "$LIBODBC" ]
then
@ -14,7 +14,7 @@
fi
if [ -z "$LIBODBC" ]
@@ -36,6 +36,6 @@
@@ -37,6 +37,6 @@
gcc -o test_odbc test_odbc.c -L/usr/local/easysoft/oob/client -lesoobclient >/dev/null 2>&1 && LIBOOB='-L\/usr\/local\/easysoft\/oob\/client -lesoobclient' && echo 'ODBC-ODBC bridge client were found'