Tue Aug 6 10:05:39 2013 UTC ()
Add debug option to package.


(jmcneill)
diff -r1.3 -r1.4 pkgsrc/misc/raspberrypi-userland/Makefile
diff -r0 -r1.1 pkgsrc/misc/raspberrypi-userland/options.mk

cvs diff -r1.3 -r1.4 pkgsrc/misc/raspberrypi-userland/Makefile (expand / switch to unified diff)

--- pkgsrc/misc/raspberrypi-userland/Makefile 2013/08/05 18:47:48 1.3
+++ pkgsrc/misc/raspberrypi-userland/Makefile 2013/08/06 10:05:39 1.4
@@ -1,27 +1,28 @@ @@ -1,27 +1,28 @@
1# $NetBSD: Makefile,v 1.3 2013/08/05 18:47:48 jmcneill Exp $ 1# $NetBSD: Makefile,v 1.4 2013/08/06 10:05:39 jmcneill Exp $
2# 2#
3 3
4DISTNAME= raspberrypi-userland-20130803 4DISTNAME= raspberrypi-userland-20130803
5CATEGORIES= misc 5CATEGORIES= misc
6MASTER_SITES= http://ftp.NetBSD.org/pub/NetBSD/misc/skrll/rpi/ 6MASTER_SITES= http://ftp.NetBSD.org/pub/NetBSD/misc/skrll/rpi/
7 7
8MAINTAINER= jmcneill@NetBSD.org 8MAINTAINER= jmcneill@NetBSD.org
9HOMEPAGE= http://github.com/jaredmcneill/userland 9HOMEPAGE= http://github.com/jaredmcneill/userland
10COMMENT= Various libraries for the Raspberry Pi 10COMMENT= Various libraries for the Raspberry Pi
11LICENSE= modified-bsd 11LICENSE= modified-bsd
12 12
13ONLY_FOR_PLATFORM= NetBSD-*-*arm 13ONLY_FOR_PLATFORM= NetBSD-*-*arm
14 14
15USE_LANGUAGES= c c++ 15USE_LANGUAGES= c c++
16 16
17USE_CMAKE= yes 17USE_CMAKE= yes
18CMAKE_ARGS+= -DCMAKE_TOOLCHAIN_FILE=${WRKSRC}/makefiles/cmake/toolchains/arm-netbsdelf.cmake 18CMAKE_ARGS+= -DCMAKE_TOOLCHAIN_FILE=${WRKSRC}/makefiles/cmake/toolchains/arm-netbsdelf.cmake
19CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release 
20 19
21SUBST_CLASSES+= vc 20SUBST_CLASSES+= vc
22SUBST_STAGE.vc= pre-configure 21SUBST_STAGE.vc= pre-configure
23SUBST_MESSAGE.vc= Fixing hard-coded install paths. 22SUBST_MESSAGE.vc= Fixing hard-coded install paths.
24SUBST_FILES.vc= makefiles/cmake/vmcs.cmake 23SUBST_FILES.vc= makefiles/cmake/vmcs.cmake
25SUBST_SED.vc= -e 's,/opt/vc,${PREFIX},g' 24SUBST_SED.vc= -e 's,/opt/vc,${PREFIX},g'
26 25
 26.include "options.mk"
 27
27.include "../../mk/bsd.pkg.mk" 28.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/misc/raspberrypi-userland/options.mk
# $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