1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/x11-toolkits/gauche-gtk/Makefile
Dirk Meyer de78af3ac5 - update to 1.4.1
Reviewed by:	exp8 run on pointyhat
Supported by:	miwi
2010-03-28 06:47:48 +00:00

58 lines
1.5 KiB
Makefile

# 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= 12
CATEGORIES= x11-toolkits scheme
MASTER_SITES= SF/${PORTNAME}/Gauche-gtk/${PORTVERSION}
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}
BROKEN= does not compile
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="${MACHINE_ARCH}-portbld-freebsd${OSREL}"
CFLAGS+= -fPIC
.if defined(WITH_GTKGLEXT)
LIB_DEPENDS+= gtkglext-x11-1.0.0:${PORTSDIR}/x11-toolkits/gtkglext
CONFIGURE_ARGS= --enable-gtkgl
PLIST_SUB+= GTKGLEXT=""
.else
PLIST_SUB+= GTKGLEXT="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|n-bytes|x-n-bytes|g' -e 's|text-size|x-text-size|g' \
${WRKSRC}/src/gtkentry.stub
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>