Bug 77120 - Dirty hack to make ggz-client-libs detect libggz
Summary: Dirty hack to make ggz-client-libs detect libggz
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pav Lucistnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-05 05:30 UTC by Ying-Chieh Chen
Modified: 2005-02-06 13:38 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ying-Chieh Chen 2005-02-05 05:30:16 UTC
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!

Fix: Apply the following patch:



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>--yrd9NKz2gOtFhSAvgO6PNIVL01D33WFNcRpGQJBG5pmU8j35
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

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 @@
How-To-Repeat: cd /usr/ports/games/ggz-client-libs; make configure
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2005-02-05 17:32:23 UTC
State Changed
From-To: open->feedback

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 ... 


Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2005-02-05 17:32:23 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pav

Watch
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2005-02-06 13:37:55 UTC
State Changed
From-To: feedback->closed

Committed, thanks!