freebsd-ports/x11-toolkits/gauche-gtk/Makefile
Vanilla I. Shu e8f9d27c22 Upgrade to 0.3.1.
PR:		ports/57616
Submitted by:	maintainer
2003-10-06 20:52:01 +00:00

50 lines
1.3 KiB
Makefile

# New ports collection makefile for: Gauche-gtk
# Date created: 3 November 2002
# Whom: Kimura Fuyuki <fuyuki@hadaly.org>
#
# $FreeBSD$
#
PORTNAME= gtk
PORTVERSION= 0.3.1
CATEGORIES= x11-toolkits scheme
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gauche
PKGNAMEPREFIX= gauche-
DISTNAME= Gauche-${PORTNAME}-${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/gauche/${PORTNAME}
DOCSDIR= ${PREFIX}/share/doc/gauche/${PORTNAME}
PLIST_SUB= VERSION="`gauche-config -V`" \
TARGET="${MACHINE_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>