summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/cunit/Makefile4
-rw-r--r--devel/cunit/PLIST3
-rw-r--r--devel/cunit/options.mk18
3 files changed, 23 insertions, 2 deletions
diff --git a/devel/cunit/Makefile b/devel/cunit/Makefile
index acfc54436c2..1b29643f30c 100644
--- a/devel/cunit/Makefile
+++ b/devel/cunit/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2013/12/06 21:50:12 joerg Exp $
+# $NetBSD: Makefile,v 1.5 2015/10/19 08:32:39 wiz Exp $
DISTNAME= CUnit-2.1-0-src
PKGNAME= CUnit-2.1
@@ -19,4 +19,6 @@ WRKSRC= ${WRKDIR}/CUnit-2.1-0
INSTALLATION_DIRS+= include/CUnit share/doc/CUnit
INSTALLATION_DIRS+= share/CUnit share/doc/CUnit/headers
+.include "options.mk"
+
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/cunit/PLIST b/devel/cunit/PLIST
index 6f314b47178..bfb33a806f1 100644
--- a/devel/cunit/PLIST
+++ b/devel/cunit/PLIST
@@ -1,8 +1,9 @@
-@comment $NetBSD: PLIST,v 1.2 2009/06/14 17:48:38 joerg Exp $
+@comment $NetBSD: PLIST,v 1.3 2015/10/19 08:32:39 wiz Exp $
include/CUnit/Automated.h
include/CUnit/Basic.h
include/CUnit/CUError.h
include/CUnit/CUnit.h
+${PLIST.curses}include/CUnit/CUCurses.h
include/CUnit/Console.h
include/CUnit/MyMem.h
include/CUnit/TestDB.h
diff --git a/devel/cunit/options.mk b/devel/cunit/options.mk
new file mode 100644
index 00000000000..462dd289480
--- /dev/null
+++ b/devel/cunit/options.mk
@@ -0,0 +1,18 @@
+# $NetBSD: options.mk,v 1.1 2015/10/19 08:32:39 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.cunit
+PKG_SUPPORTED_OPTIONS= curses
+PKG_SUGGESTED_OPTIONS= # empty
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= curses
+
+.if !empty(PKG_OPTIONS:Mcurses)
+.include "../../devel/ncurses/buildlink3.mk"
+PLIST.curses= yes
+USE_NCURSES= yes
+CONFIGURE_ARGS+= --enable-curses
+LDFLAGS+= -lcurses
+CFLAGS+= -DNCURSES_OPAQUE=0
+.endif