pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
chezscheme: added options.mk to support configure with --threads.
Module Name: pkgsrc-wip
Committed By: Aleksej Lebedev <root%zta.lk@localhost>
Pushed By: zhtw
Date: Wed May 17 01:07:25 2017 +0200
Changeset: cd75c47c50d8309d25169eb953ec5eb24e50a450
Modified Files:
chezscheme/Makefile
chezscheme/PLIST
Added Files:
chezscheme/options.mk
Log Message:
chezscheme: added options.mk to support configure with --threads.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cd75c47c50d8309d25169eb953ec5eb24e50a450
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
chezscheme/Makefile | 8 ++++++--
chezscheme/PLIST | 8 ++++----
chezscheme/options.mk | 11 +++++++++++
3 files changed, 21 insertions(+), 6 deletions(-)
diffs:
diff --git a/chezscheme/Makefile b/chezscheme/Makefile
index 2e5fc6dd58..b2cb857ba1 100644
--- a/chezscheme/Makefile
+++ b/chezscheme/Makefile
@@ -27,17 +27,21 @@ HAS_CONFIGURE= yes
USE_TOOLS+= gmake
USE_LANGUAGES+= c
+.include "options.mk"
+
pre-configure:
cd ${WRKSRC} && rmdir stex && mv ../stex-1.2.1 stex && \
rmdir zlib && mv ../zlib-1.2.8 zlib && \
rmdir nanopass && mv ../nanopass-framework-scheme-1.9 nanopass
do-configure:
- cd ${WRKSRC} && ./configure --installprefix=${PREFIX} \
+ cd ${WRKSRC} && ./configure ${CONFIGURE_ARGS} \
+ --installprefix=${PREFIX} \
--installman=${PREFIX}/${PKGMANDIR} \
--temproot=${DESTDIR} \
LDFLAGS="${LDFLAGS}"
-BUILD_TARGET=build
+BUILD_TARGET= build
+PLIST_SUBST+= T=${T}
.include "../../mk/curses.buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
diff --git a/chezscheme/PLIST b/chezscheme/PLIST
index 29bc2a7907..1e7e5ff722 100644
--- a/chezscheme/PLIST
+++ b/chezscheme/PLIST
@@ -2,10 +2,6 @@
bin/petite
bin/scheme
bin/scheme-script
-lib/csv${PKGVERSION}/a6le/petite.boot
-lib/csv${PKGVERSION}/a6le/scheme-script.boot
-lib/csv${PKGVERSION}/a6le/scheme.boot
-lib/csv${PKGVERSION}/a6le/scheme.h
lib/csv${PKGVERSION}/examples/Makefile
lib/csv${PKGVERSION}/examples/compat.ss
lib/csv${PKGVERSION}/examples/crepl.c
@@ -32,5 +28,9 @@ lib/csv${PKGVERSION}/examples/setof.ss
lib/csv${PKGVERSION}/examples/socket.ss
lib/csv${PKGVERSION}/examples/template.ss
lib/csv${PKGVERSION}/examples/unify.ss
+lib/csv${PKGVERSION}/${T}a6le/petite.boot
+lib/csv${PKGVERSION}/${T}a6le/scheme-script.boot
+lib/csv${PKGVERSION}/${T}a6le/scheme.boot
+lib/csv${PKGVERSION}/${T}a6le/scheme.h
man/man1/petite.1
man/man1/scheme.1
diff --git a/chezscheme/options.mk b/chezscheme/options.mk
new file mode 100644
index 0000000000..d25a4f9fbe
--- /dev/null
+++ b/chezscheme/options.mk
@@ -0,0 +1,11 @@
+PKG_OPTIONS_VAR= PKG_OPTIONS.chezscheme
+PKG_SUPPORTED_OPTIONS= threads
+PKG_SUGGESTED_OPTIONS= threads
+
+.include "../../mk/bsd.prefs.mk"
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mthreads)
+CONFIGURE_ARGS+=--threads
+T=t
+.endif
Home |
Main Index |
Thread Index |
Old Index