I have the same question for other port. How to create flavors only
for some architectures?
On Sun, Oct 11, 2015 at 11:36:09PM +0200, Gregor Best wrote:
> > [...]
> > When threading support on openbsd is deemed mature enough, only then
> > will it become enabled in the default flavor.
> > [...]
>
> I've recently had a go at it again because I need threads for cl-rabbit.
> I've attached a patch that adds a 'threads' flavor, but haven't yet
> figured out how to disable the flavor for powerpc.
>
> Would you consider adding thread support as a flavor until it
> stabilized? How can I help with the powerpc port?
>
> --
> Gregor
> --
>
> Index: Makefile
> ===================================================================
> RCS file: /mnt/media/cvs/ports/lang/sbcl/Makefile,v
> retrieving revision 1.24
> diff -u -p -r1.24 Makefile
> --- Makefile 31 Aug 2015 18:37:30 -0000 1.24
> +++ Makefile 11 Oct 2015 21:28:20 -0000
> @@ -4,12 +4,14 @@
> ONLY_FOR_ARCHS = amd64 i386 powerpc
>
> COMMENT= compiler and runtime system for ANSI Common Lisp
> +COMMENT-threads= ${COMMENT} (with native threading support)
>
> V = 1.2.14
> DISTNAME= sbcl-${V}-source
> PKGNAME= sbcl-${V}
> WRKDIST= ${WRKDIR}/sbcl-${V}
> EXTRACT_SUFX= .tar.bz2
> +REVISION= 1
>
> CATEGORIES= lang
> HOMEPAGE= http://www.sbcl.org/
> @@ -26,6 +28,7 @@ MODGCC4_LANGS= c
>
> WANTLIB= c m util
>
> +FLAVORS= threads
> PSEUDO_FLAVORS= native_bootstrap
> FLAVOR?=
>
> @@ -44,6 +47,12 @@ PORTHOME= ${TMPDIR}
> MAKE_ENV= GNUMAKE=${GMAKE} INSTALL_ROOT=${PREFIX} \
> MAN_DIR=${PREFIX}/man INFO_DIR=${PREFIX}/info
>
> +.if ${FLAVOR:Mthreads}
> +MAKE_ENV += LINKFLAGS="-pthread" LDFLAGS="-pthread"
> +CFLAGS += -pthread
> +BUILD_EXTRA += --with-sb-thread
> +.endif
> +
> # Upstream asks that packagers append something like this to the
> # version to distinguish official tarballs from third-party packages.
> .if defined(REVISION) && !empty(REVISION)
> @@ -61,7 +70,8 @@ pre-configure:
>
> do-build:
> cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} /bin/sh make.sh \
> - --prefix=${PREFIX} --xc-host="${BOOTSTRAP_CMD}"
> + --prefix=${PREFIX} --xc-host="${BOOTSTRAP_CMD}" \
> + ${BUILD_EXTRA}
> cd ${WRKSRC}/doc/manual && touch sbcl.texinfo && \
> ${SETENV} ${MAKE_ENV} ${GMAKE} asdf.info sbcl.info
>
>
--
Juan Francisco Cantero Hurtado http://juanfra.info