1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/lang/gauche/Makefile
Michael Scheidell 0376cb86ca -Update to 0.9.2
-Addresses pr ports/160927

PR:		ports/163096
Approved by:	gabor (mentor)
Feature safe:	yes
2011-12-08 11:12:58 +00:00

87 lines
2.4 KiB
Makefile

# New ports collection makefile for: gauche
# Date created: 9 September 2002
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= gauche
PORTVERSION= 0.9.2 # Keep databases/gauche-gdbm in sync with this
CATEGORIES= lang scheme
MASTER_SITES= SF/${PORTNAME}/Gauche/
DISTNAME= Gauche-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= erik@bz.bzflag.bz
COMMENT= Scheme script interpreter with multibyte character handling
# Choices are: "pthreads" and "no"
GAUCHE_THREADS?= pthreads
# Choices are: "utf-8", "euc-jp", "shift-jis" and "no"
GAUCHE_ENCODING?= utf-8
# breaks in ext/uvecor.c on some locales
MAKE_ENV= LANG=C
# avoids a problem with with ccache's pre-processor optimization
MAKE_ENV+= CCACHE_CPP2=1
#INFOSECTION= The Algorithmic Language Scheme
DATADIR?= ${PREFIX}/share/${PORTNAME}-0.9
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-threads=${GAUCHE_THREADS} \
--enable-multibyte=${GAUCHE_ENCODING} \
--with-slib=${LOCALBASE}/share/slib \
--with-iconv=${LOCALBASE}
PLIST_SUB= VERSION="${PORTVERSION}" \
TARGET="${CONFIGURE_TARGET}"
# INFOSECTION="${INFOSECTION}"
USE_ICONV= yes
USE_LDCONFIG= yes
MAN1= gosh.1 gauche-cesconv.1 gauche-config.1 gauche-install.1 \
gauche-package.1
MAKE_JOBS_UNSAFE=yes
.if !defined(NOPORTDOCS)
INFO= gauche-refe gauche-refj
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN= Does not compile on ia64, powerpc, or sparc64
.endif
.if ${ARCH} == "amd64" && ${OSVERSION} >= 900000
MANUAL_PACKAGE_BUILD= segfaults on pointyhat
.endif
post-patch:
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e 's|all: info|all:|' ${WRKSRC}/doc/Makefile.in
.endif
post-install:
${STRIP_CMD} ${PREFIX}/bin/gosh
${RM} -f ${PREFIX}/share/gauche/${PORTVERSION}/lib/slibcat
${MKDIR} ${PREFIX}/share/gauche/site/lib/.packages
${TOUCH} ${PREFIX}/share/gauche/site/lib/.packages/.keepme
${TOUCH} ${PREFIX}/lib/gauche-0.9/site/${CONFIGURE_TARGET}/.keepme
${MKDIR} ${PREFIX}/share/gauche/${PORTVERSION}/lib/.packages
${TOUCH} ${PREFIX}/share/gauche/${PORTVERSION}/lib/.packages/.keepme
${MKDIR} ${DOCSDIR}
${TOUCH} ${DOCSDIR}/.keepme
${MKDIR} ${EXAMPLESDIR}
${TOUCH} ${EXAMPLESDIR}/.keepme
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${MANPREFIX}/man/man1/
.if !defined(NOPORTDOCS)
${INSTALL_DATA} ${WRKSRC}/doc/*.info.gz ${WRKSRC}/doc/*.info-[1-7].gz ${PREFIX}/info/
.endif
.include <bsd.port.post.mk>