[ports/devel/libgii] Respect PTHREAD_LIBS

2006-12-09 Thread Norikatsu Shigemura
Hi Antoine.

I found a issue of not respect PTHREAD_LIBS.
May I commit following patch?

Index: Makefile
===
RCS file: /home/ncvs/ports/devel/libgii/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- Makefile18 Mar 2006 13:42:48 -  1.25
+++ Makefile29 Nov 2006 14:21:49 -
@@ -207,6 +207,9 @@
 PLIST_SUB+=VGL=
 .endif
 
+post-patch:
+   ${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/' ${WRKSRC}/configure
+
 post-install:
${INSTALL_DATA} ${WRKSRC}/libgii.conf ${PREFIX}/etc/ggi/libgii.conf.dist
${INSTALL_DATA} ${WRKSRC}/filter/mouse/mouse 
${PREFIX}/etc/ggi/filter/mouse.dist
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [ports/devel/libgii] Respect PTHREAD_LIBS

2006-12-09 Thread Antoine Brodin
Norikatsu Shigemura [EMAIL PROTECTED] wrote:
 Hi Antoine.
 
   I found a issue of not respect PTHREAD_LIBS.
   May I commit following patch?
[snip]

Approved.  Is there something to submit upstream ?
Can you replace INSTALLS_SHLIB=yes by USE_LDCONFIG=yes, while you are at it ?

Cheers,

Antoine
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [ports/devel/libgii] Respect PTHREAD_LIBS

2006-12-09 Thread Norikatsu Shigemura
On Sat, 9 Dec 2006 16:26:36 +0100
Antoine Brodin [EMAIL PROTECTED] wrote:
  I found a issue of not respect PTHREAD_LIBS.
  May I commit following patch?
 [snip]
 Approved.  Is there something to submit upstream ?
 Can you replace INSTALLS_SHLIB=yes by USE_LDCONFIG=yes, while you are at it ?

Thank you.  I committed, done.

Yes, if passible, please submit 'check PTHREAD_LIBS and PTHREAD_CFLAGS
in configure like synergy's configure.'.  I confirmed following
codes in synergy(synergy-1.3.1.tar.gz)'s aclocal.m4.
Please SEE ALSO: http://synergy2.sourceforge.net/


# First of all, check if the user has set any of the PTHREAD_LIBS,
# etcetera environment variables, and if threads linking works using
# them:
if test x$PTHREAD_LIBS$PTHREAD_CFLAGS != x; then
save_CFLAGS=$CFLAGS
CFLAGS=$CFLAGS $PTHREAD_CFLAGS
save_LIBS=$LIBS
LIBS=$PTHREAD_LIBS $LIBS
AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTH
READ_CFLAGS])
AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes)
AC_MSG_RESULT($acx_pthread_ok)
if test x$acx_pthread_ok = xno; then
PTHREAD_LIBS=
PTHREAD_CFLAGS=
fi
LIBS=$save_LIBS
CFLAGS=$save_CFLAGS
fi
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]