blob: 4fa278aa42afd099e02911fd0726717a0d5e1c98 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
PORTNAME= gl
PORTVERSION= 0.6
PORTREVISION= 5
CATEGORIES= graphics scheme
MASTER_SITES= SF/gauche/Gauche-gl
PKGNAMEPREFIX= gauche-
DISTNAME= Gauche-${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= OpenGL binding for Gauche
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= gosh:lang/gauche
RUN_DEPENDS= gosh:lang/gauche
USES= gl localbase makeinfo tar:tgz xorg
USE_CSTD= gnu99
USE_XORG= ice sm x11 xext xmu xi
USE_GL= gl glu glut
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
GAUCHE_ABI= 0.97
DOCSDIR= ${PREFIX}/share/doc/gauche/${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/gauche/${PORTNAME}
PLIST_SUB= TARGET="${CONFIGURE_TARGET}" ABI_VER=${GAUCHE_ABI}
INFO= gauche-gl-refe gauche-gl-refj
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
.for i in configure src/gauche-gl.c src/gauche-gl.h src/glut-lib.stub
@${REINPLACE_CMD} -e '/glut.h/s|GLUT|GL|' ${WRKSRC}/${i}
.endfor
do-install:
.for i in src lib
@(cd ${WRKSRC}/${i} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
.endfor
.for i in ${INFO}
${GZCAT} ${WRKSRC}/doc/${i}.info.gz \
> ${STAGEDIR}${PREFIX}/${INFO_PATH}/${i}.info
.endfor
@(cd ${STAGEDIR}${PREFIX}/lib/gauche-${GAUCHE_ABI}/site/${CONFIGURE_TARGET} && \
${CHMOD} u+w libgauche-*.so && ${STRIP_CMD} libgauche-*.so && \
${CHMOD} u-w libgauche-*.so)
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
|