pkgsrc-wip/ecl/options.mk
Aleksej Saushev b07087eecd Convert to 9.4.0 release.
Add "unicode" option (turned on by default).
Add experimental "threads" option (turned off by default).
2009-04-05 10:02:55 +00:00

23 lines
716 B
Makefile

# $NetBSD: options.mk,v 1.1 2009/04/05 10:02:56 asau Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ecl
PKG_SUPPORTED_OPTIONS+= threads unicode
PKG_SUGGESTED_OPTIONS+= unicode
# Threads are off, since threaded ECL build crashes on NetBSD and FreeBSD.
.include "../../mk/bsd.options.mk"
PLIST_SRC= PLIST # default value
.if !empty(PKG_OPTIONS:Mthreads)
CONFIGURE_ARGS+= --enable-threads --enable-debug
CONFIGURE_ENV+= THREAD_CFLAGS=${PTHREAD_CFLAGS:Q}
CONFIGURE_ENV+= THREAD_LDLAGS=${BUILDLINK_LDLAGS.pthread:Q}
CONFIGURE_ENV+= THREAD_LIBS=${BUILDLINK_LIBS.pthread:Q}
.include "../../mk/pthread.buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Municode)
CONFIGURE_ARGS+= --enable-unicode
PLIST_SRC+= PLIST.unicode
.endif