Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Aug 2006 18:10:02 GMT
From:      Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/102155: [PATCH] graphics/libcaca: fix some problems on amd64
Message-ID:  <200608161810.k7GIA2Fe071480@www.freebsd.org>
Resent-Message-ID: <200608161810.k7GIAFLi096929@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         102155
>Category:       ports
>Synopsis:       [PATCH] graphics/libcaca: fix some problems on amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 16 18:10:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jose Alonso Cardenas Marquez
>Release:        FreeBSD 6.1-STABLE
>Organization:
BSDPeru ( http://www.bsd.org.pe )
>Environment:
FreeBSD HellFire.BSD.org.pe 6.1-STABLE FreeBSD 6.1-STABLE #0: Sun Aug 13 23:06:24 PET 2006
>Description:
Days ago , i fixed some problems with graphics/crystalspace on amd64. It include
some tiny modifications on graphics/libcaca (crystalspace dependency).
I'm sending you this patch that i applied on graphics/libcaca. With it, i compiled crystalspace without problems.

http://tb3.droso.net/logs/6-acm/libcaca-0.9_4.log
http://tb3.droso.net/logs/6-acm/crystalspace-0.99_4.log
>How-To-Repeat:
Try compile graphics/crystalspace and see the messages about missing -fPIC flag on graphics/libcaca
>Fix:
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/graphics/libcaca/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile	9 Jun 2006 18:59:20 -0000	1.11
+++ Makefile	11 Aug 2006 22:31:03 -0000
@@ -6,7 +6,7 @@
 
 PORTNAME=	libcaca
 PORTVERSION=	0.9
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	graphics
 MASTER_SITES=	http://sam.zoy.org/projects/libcaca/
 
@@ -34,6 +34,10 @@
 
 .include <bsd.port.pre.mk>
 
+.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
+CFLAGS+=	-fPIC -DPIC
+.endif
+
 .if defined(WITH_SLANG) || exists(${LOCALBASE}/lib/libslang.so)
 LIB_DEPENDS+=		slang.1:${PORTSDIR}/devel/libslang
 CONFIGURE_ARGS+=	--enable-slang

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608161810.k7GIA2Fe071480>