summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorjmcneill <jmcneill@pkgsrc.org>2013-08-06 10:05:39 +0000
committerjmcneill <jmcneill@pkgsrc.org>2013-08-06 10:05:39 +0000
commite3a703043775ad7e2db39a4cd63f87e765f554da (patch)
treed5776090ddb009a18796b4a38859d424e235bad6 /misc
parent0bf3dc6d7d9c698d132f0b20ce5f953209c76c18 (diff)
downloadpkgsrc-e3a703043775ad7e2db39a4cd63f87e765f554da.tar.gz
Add debug option to package.
Diffstat (limited to 'misc')
-rw-r--r--misc/raspberrypi-userland/Makefile5
-rw-r--r--misc/raspberrypi-userland/options.mk12
2 files changed, 15 insertions, 2 deletions
diff --git a/misc/raspberrypi-userland/Makefile b/misc/raspberrypi-userland/Makefile
index 0cbc80023ef..1b889d07e2e 100644
--- a/misc/raspberrypi-userland/Makefile
+++ b/misc/raspberrypi-userland/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2013/08/05 18:47:48 jmcneill Exp $
+# $NetBSD: Makefile,v 1.4 2013/08/06 10:05:39 jmcneill Exp $
#
DISTNAME= raspberrypi-userland-20130803
@@ -16,7 +16,6 @@ USE_LANGUAGES= c c++
USE_CMAKE= yes
CMAKE_ARGS+= -DCMAKE_TOOLCHAIN_FILE=${WRKSRC}/makefiles/cmake/toolchains/arm-netbsdelf.cmake
-CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
SUBST_CLASSES+= vc
SUBST_STAGE.vc= pre-configure
@@ -24,4 +23,6 @@ SUBST_MESSAGE.vc= Fixing hard-coded install paths.
SUBST_FILES.vc= makefiles/cmake/vmcs.cmake
SUBST_SED.vc= -e 's,/opt/vc,${PREFIX},g'
+.include "options.mk"
+
.include "../../mk/bsd.pkg.mk"
diff --git a/misc/raspberrypi-userland/options.mk b/misc/raspberrypi-userland/options.mk
new file mode 100644
index 00000000000..8e819177b95
--- /dev/null
+++ b/misc/raspberrypi-userland/options.mk
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1 2013/08/06 10:05:39 jmcneill Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.raspberrypi-userland
+PKG_SUPPORTED_OPTIONS= debug
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Debug
+.else
+CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
+.endif