summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/gauche-gtk/Makefile
blob: c76f0d392f88e46a02335994841a1c461424899c (plain)
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
# New ports collection makefile for:	Gauche-gtk
# Date created:			3 November 2002
# Whom:				Kimura Fuyuki <fuyuki@hadaly.org>
#
# $FreeBSD$
#

PORTNAME=	gauche
PORTVERSION=	0.4.1
PORTREVISION=	3
CATEGORIES=	x11-toolkits scheme
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	gauche
PKGNAMESUFFIX=	-gtk
DISTNAME=	Gauche${PKGNAMESUFFIX}-${PORTVERSION}
EXTRACT_SUFX=	.tgz

MAINTAINER=	erik@smluc.org
COMMENT=	GTK2 binding for Gauche

BUILD_DEPENDS=	gosh:${PORTSDIR}/lang/gauche
RUN_DEPENDS=	${BUILD_DEPENDS}

USE_GNOME=	gtk20 # this alters CONFIGURE_TARGET!
GNU_CONFIGURE=	yes
EXAMPLESDIR=	${PREFIX}/share/examples/${PORTNAME}/gtk
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}/gtk
PLIST_SUB=	VERSION="`gauche-config -V`" \
		TARGET="${ARCH}-portbld-freebsd${OSREL}"

.if defined(WITH_GTKGLEXT)
LIB_DEPENDS+=	gtkglext-x11-1.0.2:${PORTSDIR}/x11-toolkits/gtkglext
CONFIGURE_ARGS=	--enable-gtkgl
PLIST_SUB+=	GTKGLEXT=""
.else
PLIST_SUB+=	GTKGLEXT="@comment "
.endif

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/*.scm ${EXAMPLESDIR}
	${CP} -R ${WRKSRC}/examples/gtk-tutorial ${EXAMPLESDIR}
.if defined(WITH_GTKGLEXT)
	${CP} -R ${WRKSRC}/examples/gtkglext ${EXAMPLESDIR}
.endif
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud