Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Mar 2014 11:26:15 +1100 (EST)
From:      Peter Jeremy <peter@rulingia.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/187386: [patch] Update graphics/jogl to work without base gcc.
Message-ID:  <201403090026.s290QFQm007853@server.rulingia.com>
Resent-Message-ID: <201403090050.s290o1kZ067208@freefall.freebsd.org>

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

>Number:         187386
>Category:       ports
>Synopsis:       [patch] Update graphics/jogl to work without base gcc.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 09 00:50:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Peter Jeremy
>Release:        FreeBSD 10.0-PRERELEASE amd64
>Organization:
n/a
>Environment:
System: FreeBSD server.rulingia.com 10.0-PRERELEASE FreeBSD 10.0-PRERELEASE #22 r259613M: Sat Dec 21 09:49:27 EST 2013 root@server.rulingia.com:/var/obj/usr/src/sys/server amd64

>Description:
	Fix graphics/jogl to work on FreeBSD without base gcc.  This port
	still has a few Makefile warnings which I'll correct in later patches.

	Commit message:
1) Update maintainer email
2) Fix compilation when base gcc is not installed.

On point 2: jogl uses Apache Ant which has a range of compilers hard-
coded into it.  Ant requires the compiler to be named 'gcc' and won't
accept 'cc' (as used by clang) or 'gcc46' (as used by the ports USE_GCC).
To work around this, create a local symlink named 'gcc' that points at
the base 'cc'.

Submitted by:	truckman@ (2)
PR:	  	187186, <<this PR>>
Tested on:	redports
>How-To-Repeat:
	Reported by pkg fallout builder.
>Fix:
Index: Makefile
===================================================================
--- Makefile	(revision 347490)
+++ Makefile	(working copy)
@@ -8,10 +8,10 @@
 MASTER_SITES=http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1/
 EXTRACT_SUFX=	-src.zip
 
-MAINTAINER=	peterjeremy@optushome.com.au
+MAINTAINER=	peterj@freebsd.org
 COMMENT=	Java bindings for OpenGL
 
-LIB_DEPENDS=	drm.2:${PORTSDIR}/graphics/libdrm
+LIB_DEPENDS=	libdrm.so:${PORTSDIR}/graphics/libdrm
 BUILD_DEPENDS=	java:${PORTSDIR}/java/javavmwrapper     \
 		${JAVALIBDIR}/antlr.jar:${PORTSDIR}/devel/antlr
 RUN_DEPENDS=	java:${PORTSDIR}/java/javavmwrapper
@@ -45,6 +45,8 @@
 JAVA_VERSION=	1.6+
 
 BUILD_WRKSRC=	${WRKSRC}/jogl/make
+BUILD_BINPATH=	${WRKSRC}/bin
+MAKE_ENV+=	PATH="${BUILD_BINPATH}:${PATH}"
 
 NO_STAGE=	yes
 post-patch:
@@ -54,6 +56,10 @@
 			  -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
 		${WRKSRC}/jogl/make/build.xml
 
+pre-build:
+	${MKDIR} ${BUILD_BINPATH}
+	${LN} -sf /usr/bin/cc ${BUILD_BINPATH}/gcc
+
 do-install:
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DATADIR}



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



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