2003-01-25 14:06:53 +00:00
|
|
|
# New ports collection makefile for: Gauche-gl
|
|
|
|
# Date created: 16 December 2002
|
|
|
|
# Whom: Kimura Fuyuki <fuyuki@hadaly.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gl
|
2007-06-06 10:56:30 +00:00
|
|
|
PORTVERSION= 0.4.3
|
2003-08-21 05:34:54 +00:00
|
|
|
CATEGORIES= graphics scheme
|
2003-01-25 14:06:53 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= gauche
|
|
|
|
PKGNAMEPREFIX= gauche-
|
|
|
|
DISTNAME= Gauche-${PORTNAME}-${PORTVERSION}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2004-05-16 07:30:10 +00:00
|
|
|
MAINTAINER= erik@smluc.org
|
2003-02-21 12:17:17 +00:00
|
|
|
COMMENT= OpenGL binding for Gauche
|
2003-01-25 14:06:53 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= gosh:${PORTSDIR}/lang/gauche
|
2006-01-12 12:54:32 +00:00
|
|
|
LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut
|
2003-01-25 14:06:53 +00:00
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
|
2007-05-19 20:36:56 +00:00
|
|
|
USE_GL= glut
|
2003-01-25 14:06:53 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2007-01-09 22:26:16 +00:00
|
|
|
USE_GCC= 3.4+
|
|
|
|
CONFIGURE_ARGS= --x-includes=${X11BASE}/include --x-libraries=${X11BASE}/lib
|
2003-01-25 14:06:53 +00:00
|
|
|
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/gauche/${PORTNAME}
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/gauche/${PORTNAME}
|
|
|
|
PLIST_SUB= VERSION="`gauche-config -V`" \
|
|
|
|
TARGET="${CONFIGURE_TARGET}"
|
|
|
|
|
2005-11-29 00:09:52 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
INFO= gauche-gl-refe gauche-gl-refj
|
|
|
|
.endif
|
|
|
|
|
2006-06-05 13:12:46 +00:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} s/VESRION/VERSION/ ${WRKSRC}/src/gen-ptrs.scm
|
|
|
|
|
2003-01-25 14:06:53 +00:00
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC}/src; ${MAKE} ${INSTALL_TARGET}
|
|
|
|
cd ${WRKSRC}/lib; ${MAKE} ${INSTALL_TARGET}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2005-11-29 00:09:52 +00:00
|
|
|
.for i in gauche-gl-refe.info gauche-gl-refj.info
|
|
|
|
${GZCAT} ${WRKSRC}/doc/${i}.gz >${PREFIX}/info/${i}
|
2003-03-29 00:39:16 +00:00
|
|
|
.endfor
|
2003-01-25 14:06:53 +00:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|