pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
sc-im: Options and other package improvements
Module Name: pkgsrc-wip
Committed By: Sijmen J. Mulder <ik%sjmulder.nl@localhost>
Pushed By: sjmulder
Date: Mon Dec 10 15:53:33 2018 +0100
Changeset: 912ca7825731ccc5302ca07e417284d81db8ba73
Modified Files:
sc-im/Makefile
Added Files:
sc-im/TODO
sc-im/options.mk
Log Message:
sc-im: Options and other package improvements
- Options: xlsx (read only), lua
- TODO for xlsx export and xls import
- Comments to explain some choices
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=912ca7825731ccc5302ca07e417284d81db8ba73
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
sc-im/Makefile | 8 ++++++++
sc-im/TODO | 2 ++
sc-im/options.mk | 18 ++++++++++++++++++
3 files changed, 28 insertions(+)
diffs:
diff --git a/sc-im/Makefile b/sc-im/Makefile
index 0ced976627..f84432b68b 100644
--- a/sc-im/Makefile
+++ b/sc-im/Makefile
@@ -12,10 +12,18 @@ HOMEPAGE= https://github.com/andmarti1424/sc-im/
COMMENT= Curses-based spreadsheet program based on sc
LICENSE= original-bsd
+.include "../../mk/bsd.prefs.mk"
+
+# pkg-config to avoid broken Makefile self-configuration
USE_TOOLS+= gmake pkg-config
+# gnuplot is invoked through the shell, no need to check at compile time
+CFLAGS+= -DGNUPLOT
+# defaults to sc-im
MAKE_FLAGS+= name=sc-im
MAKE_FLAGS+= prefix=${PREFIX}
MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}/man1
+.include "options.mk"
+
.include "../../devel/ncursesw/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/sc-im/TODO b/sc-im/TODO
new file mode 100644
index 0000000000..3bd7fcdcbb
--- /dev/null
+++ b/sc-im/TODO
@@ -0,0 +1,2 @@
+- xlsx export (requires libxlsexport package)
+- xls option (requires xlsreader package)
diff --git a/sc-im/options.mk b/sc-im/options.mk
new file mode 100644
index 0000000000..24a749a48b
--- /dev/null
+++ b/sc-im/options.mk
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.sc-im
+PKG_SUPPORTED_OPTIONS+= xlsx lua
+
+.include "../../mk/bsd.options.mk"
+
+# reader only, writer needs libxlsxwriter
+.if !empty(PKG_OPTIONS:Mxlsx)
+CFLAGS+= -DXLSX
+.include "../../archivers/libzip/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mlua)
+CFLAGS+= -DXLUA
+.include "../../lang/lua51/buildlink3.mk"
+.endif
Home |
Main Index |
Thread Index |
Old Index