2002-09-09 18:47:42 +00:00
|
|
|
# New ports collection makefile for: gauche
|
|
|
|
# Date created: 9 September 2002
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gauche
|
2004-02-07 05:58:26 +00:00
|
|
|
PORTVERSION= 0.7.4.1 # Keep databases/gauche-gdbm in sync with this
|
2003-08-21 05:33:09 +00:00
|
|
|
CATEGORIES= lang scheme
|
2002-09-09 18:47:42 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTNAME= Gauche-${PORTVERSION}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2002-12-18 13:04:36 +00:00
|
|
|
MAINTAINER= erik@smluc.org
|
2003-02-21 12:35:09 +00:00
|
|
|
COMMENT= Scheme script interpreter with multibyte character handling
|
2002-09-09 18:47:42 +00:00
|
|
|
|
2004-01-19 09:49:24 +00:00
|
|
|
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
|
|
|
|
|
2002-09-09 18:47:42 +00: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 11:35:44 +00:00
|
|
|
# breaks in ext/uvecor.c on some locales
|
|
|
|
MAKE_ENV= LANG=C
|
|
|
|
|
2002-09-09 18:47:42 +00:00
|
|
|
INFOSECTION= The Algorithmic Language Scheme
|
|
|
|
|
|
|
|
MAN1= gosh.1 \
|
|
|
|
gauche-config.1
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --enable-threads=${GAUCHE_THREADS} \
|
2003-12-17 11:35:44 +00:00
|
|
|
--enable-multibyte=${GAUCHE_ENCODING} \
|
2004-01-19 09:49:24 +00:00
|
|
|
--with-slib=${LOCALBASE}/share/slib \
|
|
|
|
--with-iconv=${LOCALBASE}
|
2002-09-09 18:47:42 +00:00
|
|
|
PLIST_SUB= VERSION="${PORTVERSION}" \
|
|
|
|
TARGET="${CONFIGURE_TARGET}" \
|
|
|
|
INFOSECTION="${INFOSECTION}"
|
2004-02-07 05:58:26 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
INFO= gauche-refe gauche-refj
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
${REINPLACE_CMD} 's/gauche-refj. info/gauche-refj.info/' ${WRKSRC}/doc/gauche-refj.info
|
2002-09-09 18:47:42 +00:00
|
|
|
|
|
|
|
post-install:
|
2002-09-09 19:34:32 +00:00
|
|
|
${STRIP_CMD} ${PREFIX}/bin/gosh
|
2003-12-17 11:35:44 +00:00
|
|
|
${RM} -f ${PREFIX}/share/gauche/${PORTVERSION}/lib/slibcat
|
|
|
|
${TOUCH} ${PREFIX}/share/gauche/site/lib/.keepme
|
|
|
|
${TOUCH} ${PREFIX}/lib/gauche/site/${PORTVERSION}/${CONFIGURE_TARGET}/.keepme
|
|
|
|
|
2002-09-09 18:47:42 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${MANPREFIX}/man/man1/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.info ${PREFIX}/info/
|
2004-02-07 05:58:26 +00:00
|
|
|
.for info in ${INFO}
|
|
|
|
install-info --section="${INFOSECTION}" ${WRKSRC}/doc/${info}.info ${PREFIX}/info/dir
|
2002-09-09 18:47:42 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|