From nobody@FreeBSD.org  Sat Feb  5 05:23:46 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 11CBC16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Feb 2005 05:23:46 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E9B5E43D58
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Feb 2005 05:23:45 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j155NjZ3088993
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 5 Feb 2005 05:23:45 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j155Nj1C088992;
	Sat, 5 Feb 2005 05:23:45 GMT
	(envelope-from nobody)
Message-Id: <200502050523.j155Nj1C088992@www.freebsd.org>
Date: Sat, 5 Feb 2005 05:23:45 GMT
From: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Dirty hack to make ggz-client-libs detect libggz
X-Send-Pr-Version: www-2.3

>Number:         77120
>Category:       ports
>Synopsis:       Dirty hack to make ggz-client-libs detect libggz
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 05 05:30:16 GMT 2005
>Closed-Date:    Sun Feb 06 13:38:02 GMT 2005
>Last-Modified:  Sun Feb 06 13:38:02 GMT 2005
>Originator:     Ying-Chieh Chen
>Release:        4.10-RELEASE-p4
>Organization:
MANA lab, CCU CS
>Environment:
FreeBSD nb.mana.cs.ccu.edu.tw 4.10-RELEASE-p4 FreeBSD 4.10-RELEASE-p4 #2: Thu Nov 25 15:14:47 CST 2004     root@nb.mana.cs.ccu.edu.tw:/usr/obj/usr/src/sys/KERNEL  i386

>Description:
In ggz-client-libs, the "configure" script detects libggz by locating ${PREFIX}/lib/libggz.la,
but libggz.la is not installed in FreeBSD.

The problem is solved in the current CVS tree,
but before the next release appears,
I should use a dirty hack to make the "configure" script
detect libggz by locating ${PREFIX}/lib/libggz.so instead of
${PREFIX}/lib/libggz.la .

PORTREVISION is also defined to reflect the dirty fix.
Please commit it, thanks!
>How-To-Repeat:
cd /usr/ports/games/ggz-client-libs; make configure
>Fix:
Apply the following patch:

diff -ruN /usr/ports/games/ggz-client-libs/Makefile ggz-client-libs/Makefile
--- /usr/ports/games/ggz-client-libs/Makefile   Fri Jan 28 17:56:50 2005
+++ ggz-client-libs/Makefile    Sat Feb  5 10:31:01 2005
@@ -8,6 +8,7 @@

 PORTNAME=      ggz-client-libs
 PORTVERSION=   0.0.10
+PORTREVISION=  1
 CATEGORIES=    games
 MASTER_SITES=  http://ftp.ggzgamingzone.org/pub/ggz/%SUBDIR%/
 MASTER_SITE_SUBDIR=    ${PORTVERSION}
@@ -37,6 +38,7 @@

 post-patch:
        @${REINPLACE_CMD} -e 's|LIBGGZ_INCLUDES=.*$$|LIBGGZ_INCLUDES=|g ; \
-                s|LIBGGZ_LDFLAGS=.*$$|LIBGGZ_LDFLAGS=|g' ${WRKSRC}/configure
+                s|LIBGGZ_LDFLAGS=.*$$|LIBGGZ_LDFLAGS=|g ;                \
+                s|libggz.la|libggz.so|g' ${WRKSRC}/configure

 .include <bsd.port.mk>

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Sat Feb 5 17:32:23 GMT 2005 
State-Changed-Why:  
Does this have any effect outside the configure script? 
I just tried to build this and it found libggz (libraries NONE, includes /usr/local/include) 
and all the compiled binaries seems to be linked to -lggz ... 


Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Sat Feb 5 17:32:23 GMT 2005 
Responsible-Changed-Why:  
Watch 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77120 
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Sun Feb 6 13:37:55 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77120 
>Unformatted:
