pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/sc-im sc-im: Add xls option and add it to suggest...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3af1bd951ec0
branches:  trunk
changeset: 391570:3af1bd951ec0
user:      leot <leot%pkgsrc.org@localhost>
date:      Mon Feb 11 22:01:18 2019 +0000

description:
sc-im: Add xls option and add it to suggested option

Bump PKGREVISION.

Patch provided by Sijmen J. Mulder via tech-pkg@, thanks!

diffstat:

 math/sc-im/Makefile   |   3 ++-
 math/sc-im/options.mk |  12 +++++++++---
 2 files changed, 11 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r 0f0873d78a46 -r 3af1bd951ec0 math/sc-im/Makefile
--- a/math/sc-im/Makefile       Mon Feb 11 21:59:32 2019 +0000
+++ b/math/sc-im/Makefile       Mon Feb 11 22:01:18 2019 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2019/01/30 12:58:24 leot Exp $
+# $NetBSD: Makefile,v 1.2 2019/02/11 22:01:18 leot Exp $
 
 DISTNAME=      sc-im-0.7.0
+PKGREVISION=   1
 CATEGORIES=    math
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=andmarti1424/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
diff -r 0f0873d78a46 -r 3af1bd951ec0 math/sc-im/options.mk
--- a/math/sc-im/options.mk     Mon Feb 11 21:59:32 2019 +0000
+++ b/math/sc-im/options.mk     Mon Feb 11 22:01:18 2019 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.1 2019/01/30 12:58:24 leot Exp $
+# $NetBSD: options.mk,v 1.2 2019/02/11 22:01:18 leot Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.sc-im
-PKG_SUPPORTED_OPTIONS+=        color xlsx lua
-PKG_SUGGESTED_OPTIONS+=        color xlsx lua
+PKG_SUPPORTED_OPTIONS+=        color xls xlsx lua
+PKG_SUGGESTED_OPTIONS+=        color xls xlsx lua
 
 .include "../../mk/bsd.options.mk"
 
@@ -10,6 +10,12 @@
 CFLAGS+=       -DUSECOLORS
 .endif
 
+.if !empty(PKG_OPTIONS:Mxls)
+CFLAGS+=       -DXLS
+LDFLAGS+=      -lxlsreader
+.include "../../textproc/libxls/buildlink3.mk"
+.endif
+
 .if !empty(PKG_OPTIONS:Mxlsx)
 CFLAGS+=       -DXLSX -DXLSX_EXPORT
 LDFLAGS+=      -lxlsxwriter



Home | Main Index | Thread Index | Old Index