2002-09-09 20:47:42 +02:00
|
|
|
# New ports collection makefile for: gauche
|
|
|
|
# Date created: 9 September 2002
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gauche
|
2006-11-26 09:02:09 +01:00
|
|
|
PORTVERSION= 0.8.8 # Keep databases/gauche-gdbm in sync with this
|
2003-08-21 07:33:09 +02:00
|
|
|
CATEGORIES= lang scheme
|
2002-09-09 20:47:42 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTNAME= Gauche-${PORTVERSION}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2004-05-16 09:30:10 +02:00
|
|
|
MAINTAINER= erik@smluc.org
|
2003-02-21 13:35:09 +01:00
|
|
|
COMMENT= Scheme script interpreter with multibyte character handling
|
2002-09-09 20:47:42 +02:00
|
|
|
|
|
|
|
# Choices are: "pthreads" and "no", but it seems that FreeBSD does not
|
|
|
|
# yet fully support threads with Boehm GC.
|
|
|
|
GAUCHE_THREADS?= no
|
|
|
|
# Choices are: "utf-8", "euc-jp", "shift-jis" and "no"
|
|
|
|
GAUCHE_ENCODING?= utf-8
|
|
|
|
|
2003-12-17 12:35:44 +01:00
|
|
|
# breaks in ext/uvecor.c on some locales
|
|
|
|
MAKE_ENV= LANG=C
|
|
|
|
|
2002-09-09 20:47:42 +02:00
|
|
|
INFOSECTION= The Algorithmic Language Scheme
|
|
|
|
|
|
|
|
MAN1= gosh.1 \
|
|
|
|
gauche-config.1
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --enable-threads=${GAUCHE_THREADS} \
|
2003-12-17 12:35:44 +01:00
|
|
|
--enable-multibyte=${GAUCHE_ENCODING} \
|
2004-01-19 10:49:24 +01:00
|
|
|
--with-slib=${LOCALBASE}/share/slib \
|
|
|
|
--with-iconv=${LOCALBASE}
|
2002-09-09 20:47:42 +02:00
|
|
|
PLIST_SUB= VERSION="${PORTVERSION}" \
|
|
|
|
TARGET="${CONFIGURE_TARGET}" \
|
|
|
|
INFOSECTION="${INFOSECTION}"
|
2004-03-30 21:20:22 +02:00
|
|
|
USE_ICONV= yes
|
2004-02-07 06:58:26 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
INFO= gauche-refe gauche-refj
|
|
|
|
|
2004-03-07 00:45:15 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-07-03 16:53:56 +02:00
|
|
|
.if (${ARCH} == "ia64") || (${ARCH} == "sparc64")
|
|
|
|
BROKEN= Does not compile on ${ARCH}
|
2004-03-07 00:45:15 +01:00
|
|
|
.endif
|
|
|
|
|
2004-02-07 06:58:26 +01:00
|
|
|
post-build:
|
|
|
|
${REINPLACE_CMD} 's/gauche-refj. info/gauche-refj.info/' ${WRKSRC}/doc/gauche-refj.info
|
2002-09-09 20:47:42 +02:00
|
|
|
|
|
|
|
post-install:
|
2002-09-09 21:34:32 +02:00
|
|
|
${STRIP_CMD} ${PREFIX}/bin/gosh
|
2003-12-17 12:35:44 +01:00
|
|
|
${RM} -f ${PREFIX}/share/gauche/${PORTVERSION}/lib/slibcat
|
2005-04-09 17:12:36 +02:00
|
|
|
${MKDIR} ${PREFIX}/share/gauche/site/lib/.packages
|
|
|
|
${TOUCH} ${PREFIX}/share/gauche/site/lib/.packages/.keepme
|
2003-12-17 12:35:44 +01:00
|
|
|
${TOUCH} ${PREFIX}/lib/gauche/site/${PORTVERSION}/${CONFIGURE_TARGET}/.keepme
|
2005-02-20 15:52:28 +01:00
|
|
|
${MKDIR} ${PREFIX}/share/gauche/${PORTVERSION}/lib/.packages
|
2005-04-09 17:12:36 +02:00
|
|
|
${TOUCH} ${PREFIX}/share/gauche/${PORTVERSION}/lib/.packages/.keepme
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${TOUCH} ${DOCSDIR}/.keepme
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${TOUCH} ${EXAMPLESDIR}/.keepme
|
2003-12-17 12:35:44 +01:00
|
|
|
|
2002-09-09 20:47:42 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${MANPREFIX}/man/man1/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.info ${PREFIX}/info/
|
|
|
|
.endif
|
|
|
|
|
2004-03-07 00:45:15 +01:00
|
|
|
.include <bsd.port.post.mk>
|