ports/163205: graphics/gauche-gl won't build with gauche 0.9.2

scheidell at FreeBSD.org scheidell at FreeBSD.org
Tue Dec 27 14:15:30 UTC 2011


Synopsis: graphics/gauche-gl won't build with gauche 0.9.2

State-Changed-From-To: feedback->open 
State-Changed-By: scheidell
State-Changed-When: Tue Dec 27 14:09:25 UTC 2011
State-Changed-Why: 
Back to the pool.
There are too many inconsistancies in gauche- and gaughe-gl.
Suggest you look at update to newest gauche, 0.5.1.
STILL, HOWEVER, this and main gauche should have consistant use of
/usr/local/share/gauche/ vs ../gauche-0.9/0.9.2.  same with libs.

this makefile is a START, but since I don't know where and how the applications themselves look for libs, I will not try to see if tinderbox will compile it.

use this as a STARTING POINT, pay careful attention to 
MASTER_SITES (looks like it changed)
BUILD_DEPENTS (you might need a minimum version to support new file trees)
USE_LDCONFIG
DATADIR (SITELIBDIR),  gauche 0.9.2 wants it gauche-config --sitelibdir 
don't need the post patch (looks like upstream fixed)

pay attention to pkg-plist.

so, my starter patch:
pcvs diff -Nu Makefile | less
socket: Protocol not supported
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/graphics/gauche-gl/Makefile,v
retrieving revision 1.30
diff -u -u -r1.30 Makefile
--- Makefile    18 Dec 2011 21:45:39 -0000      1.30
+++ Makefile    27 Dec 2011 14:11:49 -0000
@@ -6,10 +6,9 @@
 #

 PORTNAME=      gl
-PORTVERSION=   0.4.4
-PORTREVISION=  1
+PORTVERSION=   0.5.1
 CATEGORIES=    graphics scheme
-MASTER_SITES=  SF/gauche/Gauche-gl/${PORTVERSION}
+MASTER_SITES=  SF/gauche/Gauche-gl/
 PKGNAMEPREFIX= gauche-
 DISTNAME=      Gauche-${PORTNAME}-${PORTVERSION}
 EXTRACT_SUFX=  .tgz
@@ -17,27 +16,27 @@
 MAINTAINER=    erik at bz.bzflag.bz
 COMMENT=       OpenGL binding for Gauche

-BUILD_DEPENDS= gosh:${PORTSDIR}/lang/gauche
-RUN_DEPENDS=   ${BUILD_DEPENDS}
-
-BROKEN=                does not build
+BUILD_DEPENDS= gauche>=0.9.2:${PORTSDIR}/lang/gauche
+RUN_DEPENDS=   gauche>=0.9.2:${PORTSDIR}/lang/gauche
+# before you touch this above, see: portlint and error if you set build_depends = run_depends

 USE_GL=                glut
 GNU_CONFIGURE= yes
+VERSION=       `gauche-config -V`
+USE_LDCONFIG=  lib/gauche/${VERSION}/${CONFIGURE_TARGET}
 MAKE_JOBS_UNSAFE=      yes

 EXAMPLESDIR=   ${PREFIX}/share/examples/gauche/${PORTNAME}
 DOCSDIR=       ${PREFIX}/share/doc/gauche/${PORTNAME}
-PLIST_SUB=     VERSION="`gauche-config -V`" \
-               TARGET="${CONFIGURE_TARGET}"
+SITELIBDIR=    `gauche-config --sitelibdir | ${SED} -e 's|${PREFIX}||'`
+PLIST_SUB=     VERSION="${VERSION}" \
+               TARGET="${CONFIGURE_TARGET}" \
+               SITELIBDIR="${SITELIBDIR}"

 .if !defined(NOPORTDOCS)
 INFO=          gauche-gl-refe gauche-gl-refj
 .endif

-post-patch:
-       ${REINPLACE_CMD} s/VESRION/VERSION/ ${WRKSRC}/src/gen-ptrs.scm
-
 do-install:
        cd ${WRKSRC}/src; ${MAKE} ${INSTALL_TARGET}
        cd ${WRKSRC}/lib; ${MAKE} ${INSTALL_TARGET}



Responsible-Changed-From-To: scheidell->freebsd-ports-bugs 
Responsible-Changed-By: scheidell
Responsible-Changed-When: Tue Dec 27 14:09:25 UTC 2011
Responsible-Changed-Why: 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163205



More information about the freebsd-ports-bugs mailing list