aboutsummaryrefslogtreecommitdiffstats
path: root/devel/c-unit
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2013-04-30 02:47:57 +0800
committerjgh <jgh@FreeBSD.org>2013-04-30 02:47:57 +0800
commit6d540fc65a90a3eebc3912c328c521b9154a7ab3 (patch)
tree6040287917ba2e40b9422fa8fa481a72716ea320 /devel/c-unit
parentefc2d6c89612b58ed4937f1a7d15eff276c9a5e7 (diff)
downloadfreebsd-ports-gnome-6d540fc65a90a3eebc3912c328c521b9154a7ab3.tar.gz
freebsd-ports-gnome-6d540fc65a90a3eebc3912c328c521b9154a7ab3.tar.zst
freebsd-ports-gnome-6d540fc65a90a3eebc3912c328c521b9154a7ab3.zip
- adoption of optionsNG
Approved by: portmgr (bapt)
Diffstat (limited to 'devel/c-unit')
-rw-r--r--devel/c-unit/Makefile70
1 files changed, 33 insertions, 37 deletions
diff --git a/devel/c-unit/Makefile b/devel/c-unit/Makefile
index 3d12f8c6a00a..a8616e2d3f37 100644
--- a/devel/c-unit/Makefile
+++ b/devel/c-unit/Makefile
@@ -1,7 +1,4 @@
-# New ports collection makefile for: c-unit
-# Date created: 14 Apr 2012
-# Whom: Takanori Sawada <tak.swd@gmail.com>
-#
+# Created by: Takanori Sawada <tak.swd@gmail.com>
# $FreeBSD$
PORTNAME= c-unit
@@ -10,7 +7,7 @@ CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
MAINTAINER= tak.swd@gmail.com
-COMMENT= A unit testing framework for C
+COMMENT= Unit testing framework for C
CONFLICTS= cunit-[0-9]*
@@ -21,15 +18,17 @@ USE_LDCONFIG= yes
MAN3= CUnit.3
-OPTIONS= DEB "Enable debug interface" Off \
- AUT "Enable automated(XML) interface" On \
- BAS "Enable basic interface" On \
- CON "Enable console interface" On \
- CUR "Enable curses interface" Off \
- EXA "Compile example programs" Off \
- ITE "Compile internal test program" Off \
- MEM "Enable internal memory tracking" Off
-# DEP "Enable use of deprecated v1.1 names" Off
+OPTIONS_DEFINE= DEB AUT BAS CON CUR EXA ITE MEM
+DEB_DESC= Debug interface
+AUT_DESC= Automated(XML) interface
+BAS_DESC= Basic interface
+CON_DESC= Console interface
+CUR_DESC= Curses interface
+EXA_DESC= Compile example programs
+ITE_DESC= Compile internal test program
+MEM_DESC= Internal memory tracking
+
+OPTIONS_DEFAULT= AUT BAS CON
post-patch:
@${REINPLACE_CMD} \
@@ -45,58 +44,55 @@ post-patch:
's|/@PACKAGE@/Examples/Curses|/examples/@PACKAGE@/Curses|g' \
${WRKSRC}/Examples/CursesTest/Makefile.in
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_DEB)
+.if ${PORT_OPTIONS:MDEB}
CONFIGURE_ARGS+= --enable-debug
.endif
-.if defined(WITHOUT_AUT)
-CONFIGURE_ARGS+= --disable-automated
-.else
+.if ${PORT_OPTIONS:MAUT}
PLIST_FILES+= include/CUnit/Automated.h
-.endif
-.if defined(WITHOUT_BAS)
-CONFIGURE_ARGS+= --disable-basic
.else
-PLIST_FILES+= include/CUnit/Basic.h
+CONFIGURE_ARGS+= --disable-automated
.endif
-.if defined(WITHOUT_CON)
-CONFIGURE_ARGS+= --disable-console
+.if ${PORT_OPTIONS:MBAS}
+PLIST_FILES+= include/CUnit/Basic.h
.else
+CONFIGURE_ARGS+= --disable-basic
+.endif
+.if ${PORT_OPTIONS:MCON}
PLIST_FILES+= include/CUnit/Console.h
+.else
+CONFIGURE_ARGS+= --disable-console
.endif
-.if defined(WITH_CUR)
+.if ${PORT_OPTIONS:MCUR}
CONFIGURE_ARGS+= --enable-curses
PLIST_FILES+= include/CUnit/CUCurses.h
.endif
-.if defined(WITH_EXA)
+.if ${PORT_OPTIONS:MEXA}
CONFIGURE_ARGS+= --enable-examples
-.if defined(WITH_AUT)
+.if ${PORT_OPTIONS:MAUT}
PLIST_FILES+= share/examples/CUnit/Automated/AutomatedTest \
share/examples/CUnit/Automated/README
.endif
-.if defined(WITH_BAS)
+.if ${PORT_OPTIONS:MBAS}
PLIST_FILES+= share/examples/CUnit/Basic/BasicTest \
share/examples/CUnit/Basic/README
.endif
-.if defined(WITH_CON)
+.if ${PORT_OPTIONS:MCON}
PLIST_FILES+= share/examples/CUnit/Console/ConsoleTest \
share/examples/CUnit/Console/README
.endif
-.if defined(WITH_CUR)
+.if ${PORT_OPTIONS:MCUR}
PLIST_FILES+= share/examples/CUnit/Curses/CursesTest \
share/examples/CUnit/Curses/README
.endif
.endif
-.if defined(WITH_ITE)
+.if ${PORT_OPTIONS:MITE}
CONFIGURE_ARGS+= --enable-test
PLIST_FILES+= share/CUnit/Test/test_cunit
.endif
-.if defined(WITH_MEM)
+.if ${PORT_OPTIONS:MMEM}
CONFIGURE_ARGS+= --enable-memtrace
.endif
-#.if defined(WITH_DEP)
-#CONFIGURE_ARGS+= --enable-deprecated
-#.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>