From 79284f653ffeacd4449c830a201c632502f13107 Mon Sep 17 00:00:00 2001 From: Stefan Walter Date: Sun, 9 Jun 2013 16:18:29 +0000 Subject: Properly evaluate option PTHREADS. PR: 177494 Submitted by: Hirohisa Yamaguchi Approved by: maintainer timeout (1 month) --- lang/gauche/Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'lang/gauche') diff --git a/lang/gauche/Makefile b/lang/gauche/Makefile index 1afb6fd9a91d..e4c28d9f77af 100644 --- a/lang/gauche/Makefile +++ b/lang/gauche/Makefile @@ -2,7 +2,8 @@ # $FreeBSD$ PORTNAME= gauche -PORTVERSION= 0.9.3.3 # Keep databases/gauche-gdbm in sync with this +PORTVERSION= 0.9.3.3 +PORTREVISION= 1 CATEGORIES= lang scheme MASTER_SITES= SF/${PORTNAME}/Gauche/ DISTNAME= Gauche-${PORTVERSION} @@ -33,7 +34,7 @@ DATADIR?= ${PREFIX}/share/${PORTNAME}-0.9 GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-tls=none \ - --with-iconv=${LOCALBASE} + --with-iconv=${LOCALBASE} PLIST_SUB= VERSION="${PORTVERSION}" \ TARGET="${CONFIGURE_TARGET}" USES= iconv @@ -72,6 +73,12 @@ CONFIGURE_ARGS+=--with-slib=${WRKDIR} PLIST_SUB+= SLIB="@comment " .endif +.if ${PORT_OPTIONS:MPTHREADS} +CONFIGURE_ARGS+= --enable-threads=pthreads +.else +CONFIGURE_ARGS+= --enable-threads=no +.endif + .if ${PORT_OPTIONS:MUTF8} CONFIGURE_ARGS+= --enable-multibyte=utf-8 .elif ${PORT_OPTIONS:MEUCJP} @@ -88,7 +95,7 @@ NOT_FOR_ARCHS= ia64 powerpc sparc64 NOT_FOR_ARCHS_REASON= Does not compile on ia64, powerpc, or sparc64 post-patch: -.if defined(NOPORTDOCS) +.if ! ${PORT_OPTIONS:MDOCS} @${REINPLACE_CMD} -e 's|all: info|all:|' ${WRKSRC}/doc/Makefile.in .endif -- cgit v1.2.3