pkgsrc-WIP-changes archive

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

Import virtualbox-0.0.0nb20160805 as wip/virtualbox-svn.



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Fri Aug 5 17:42:56 2016 +0200
Changeset:	eebbf6005c388a3c76b58d04878f872a2023e3b1

Added Files:
	virtualbox-svn/DESCR
	virtualbox-svn/Makefile
	virtualbox-svn/PLIST
	virtualbox-svn/distinfo

Log Message:
Import virtualbox-0.0.0nb20160805 as wip/virtualbox-svn.

VirtualBox is a family of powerful x86 virtualization products for
enterprise as well as home use. Not only is VirtualBox an extremely
feature rich, high performance product for enterprise customers, it
is also the only professional solution that is freely available as
Open Source Software under the terms of the GNU General Public License.

WWW: http://www.virtualbox.org/

Reimport this as an SVN repository. The git mirror is back in time too much.

For now there are no patches, they will be recreated on top of the current
master from VCS with improved support for NetBSD.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=eebbf6005c388a3c76b58d04878f872a2023e3b1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 virtualbox-svn/DESCR    |   7 +++
 virtualbox-svn/Makefile | 115 ++++++++++++++++++++++++++++++++++++++++++++++++
 virtualbox-svn/PLIST    |   0
 virtualbox-svn/distinfo |   6 +++
 4 files changed, 128 insertions(+)

diffs:
diff --git a/virtualbox-svn/DESCR b/virtualbox-svn/DESCR
new file mode 100644
index 0000000..d10019c
--- /dev/null
+++ b/virtualbox-svn/DESCR
@@ -0,0 +1,7 @@
+VirtualBox is a family of powerful x86 virtualization products for
+enterprise as well as home use. Not only is VirtualBox an extremely
+feature rich, high performance product for enterprise customers, it
+is also the only professional solution that is freely available as
+Open Source Software under the terms of the GNU General Public License.
+
+WWW: http://www.virtualbox.org/
diff --git a/virtualbox-svn/Makefile b/virtualbox-svn/Makefile
new file mode 100644
index 0000000..70f78da
--- /dev/null
+++ b/virtualbox-svn/Makefile
@@ -0,0 +1,115 @@
+# $NetBSD$
+
+
+SVN_REPOSITORIES=	mirror
+SVN_ROOT.mirror=	https://www.virtualbox.org/svn/vbox
+
+.include "../../wip/mk/svn-package.mk"
+
+PKGNAME=	virtualbox-0.0.0
+CATEGORIES=	emulators
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+COMMENT=	General-purpose full virtualizer for x86 hardware
+LICENSE=	gnu-gpl-v2
+
+DEPENDS+=	cdrtools-[0-9]*:../../sysutils/cdrtools
+
+BUILD_DEPENDS+=	yasm-[0-9]*:../../devel/yasm
+BUILD_DEPENDS+=	kbuild-[0-9]*:../../devel/kbuild
+BUILD_DEPENDS+=	acpica-utils-[0-9]*:../../sysutils/acpica-utils
+
+TOOL_DEPENDS+=	libxml2-[0-9]*:../../textproc/libxml2 # for xmllint
+
+USE_TOOLS+=	gtar pkg-config bison flex perl
+
+WRKSRC=		${WRKDIR}/mirror/trunk
+
+HAS_CONFIGURE=		yes
+USE_LANGUAGES+=	c c++
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Linux"
+# Required by Linux build
+BUILD_DEPENDS+=	makeself-[0-9]*:../../archivers/makeself
+.endif
+
+SUBST_CLASSES+=		paths
+SUBST_MESSAGE.paths=	Adjust paths for pkgsrc
+SUBST_STAGE.paths=	pre-configure
+#SUBST_STAGE.paths=	post-build
+SUBST_FILES.paths+=	configure
+SUBST_SED.paths+=	-e 's!^INCCRYPTO=.*!INCCRYPTO="-I${BUILDLINK_PREFIX.openssl}/include"!g'
+SUBST_SED.paths+=	-e 's!^LIBCRYPTO=.*!LIBCRYPTO="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib -L${BUILDLINK_PREFIX.openssl}/lib -lssl -lcrypto"!g'
+SUBST_SED.paths+=	-e 's!^INCX11=.*!INCX11="-I${X11BASE}/include"!g'
+SUBST_SED.paths+=	-e 's!^LIBX11=.*!LIBX11="${COMPILER_RPATH_FLAG}${X11BASE}/lib -L${X11BASE}/lib -lXext -lX11"!g'
+SUBST_SED.paths+=	-e 's!^INCZ=.*!INCZ="-I${BUILDLINK_PREFIX.zlib}/include"!g'
+SUBST_SED.paths+=	-e 's!^LIBZ=.*!LIBZ="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.zlib}/lib -L${BUILDLINK_PREFIX.zlib}/lib -lz"!g'
+.if ${OPSYS} == "Linux"
+.include "../../sysutils/lvm2/buildlink3.mk"
+SUBST_SED.paths+=	-e 's!^INCDEVMAPPER=.*!INCDEVMAPPER="-I${BUILDLINK_PREFIX.lvm2}/include"!g'
+SUBST_SED.paths+=	-e 's!^LIBDEVMAPPER=.*!LIBDEVMAPPER="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.lvm2}/lib -L${BUILDLINK_PREFIX.lvm2}/lib -ldevmapper"!g'
+.include "../../sysutils/libcap/buildlink3.mk"
+SUBST_SED.paths+=	-e 's!^INCCAP=.*!INCCAP="-I${BUILDLINK_PREFIX.libcap}/include"!g'
+SUBST_SED.paths+=	-e 's!^LIBCAP=.*!LIBCAP="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libcap}/lib -L${BUILDLINK_PREFIX.libcap}/lib -lcap"!g'
+.endif
+SUBST_SED.paths+=	-e 's!^INCCURL=.*!INCCURL="-I${BUILDLINK_PREFIX.curl}/include"!g'
+SUBST_SED.paths+=	-e 's!^LIBCURL=.*!LIBCURL="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.curl}/lib -L${BUILDLINK_PREFIX.curl}/lib -lcurl"!g'
+SUBST_SED.paths+=	-e 's!^INCPULSE=.*!INCPULSE="-I${BUILDLINK_PREFIX.pulseaudio}/include"!g'
+SUBST_SED.paths+=	-e 's!^LIBPULSE=.*!LIBPULSE="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.pulseaudio}/lib -L${BUILDLINK_PREFIX.pulseaudio}/lib"!g'
+SUBST_SED.paths+=	-e 's!^INCPNG=.*!INCPNG="-I${BUILDLINK_PREFIX.png}/include"!g'
+SUBST_SED.paths+=	-e 's!^LIBPNG=.*!LIBPNG="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.png}/lib -L${BUILDLINK_PREFIX.png}/lib"!g'
+SUBST_SED.paths+=	-e 's!^INCVPX=.*!INCVPX="-I${BUILDLINK_PREFIX.libvpx}/include"!g'
+SUBST_SED.paths+=	-e 's!^LIBVPX=.*!LIBVPX="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libvpx}/lib -L${BUILDLINK_PREFIX.libvpx}/lib -lvpx"!g'
+# These paths are used as a shell enumeration to check
+SUBST_SED.paths+=	-e 's!^PYTHONDIR=.*!PYTHONDIR="${PREFIX}"!g'
+SUBST_SED.paths+=	-e 's!^QT4DIR=.*!QT4DIR="${QTDIR}"!g'
+# Set proper path of Python libs under ${PREFIX}/lib..
+SUBST_SED.paths+=	-e 's!lib/x86_64-linux-gnu lib/i386-linux-gnu lib64 lib/64 lib!lib!g'
+# Use pkgsrc provided Python version
+SUBST_SED.paths+=	-e 's!SUPPYTHONLIBS=.*!SUPPYTHONLIBS="python${PYVERSSUFFIX}"!g'
+# Add needed rpath for testing execution of an application linked with libpython
+SUBST_SED.paths+=	-e 's!PYTHONLIBRPATH=.*!PYTHONLIBRPATH="${COMPILER_RPATH_FLAG}${PREFIX}/lib"!g'
+
+VBLIBDIR=	${PREFIX}/lib/virtualbox
+
+KMK_ENV_VARS+=	KBUILD_PATH=${WRKSRC}/kBuild
+KMK_ENV_VARS+=	KBUILD_LIB_SEARCH_ROOTS="/ /usr/ ${X11BASE}/ ${PREFIX}/"
+# Multiple jobs tend to be broken
+KMK_FLAGS+=	-j1
+
+pre-configure:
+	${RUN} ${ECHO} "VBOX_GCC_OPT=${CXXFLAGS}" >> ${WRKSRC}/LocalConfig.kmk
+	${RUN} ${ECHO} "VBOX_WITH_ORIGIN:=" >> ${WRKSRC}/LocalConfig.kmk
+	${RUN} ${ECHO} "VBOX_WITH_RUNPATH:=${VBLIBDIR}" >> ${WRKSRC}/LocalConfig.kmk
+	${RUN} ${ECHO} "VBOX_PATH_APP_PRIVATE_ARCH:=${VBLIBDIR}" >> ${WRKSRC}/LocalConfig.kmk
+	${RUN} ${ECHO} "VBOX_PATH_APP_PRIVATE:=${VBLIBDIR}" >> ${WRKSRC}/LocalConfig.kmk
+	${RUN} ${ECHO} "VBOX_WITH_TESTCASES=" >> ${WRKSRC}/LocalConfig.kmk
+	${RUN} ${ECHO} "VBOX_WITH_TESTSUITE:=" >> ${WRKSRC}/LocalConfig.kmk
+	${RUN} ${ECHO} "VBOX_JAVA_HOME:=${JAVA_HOME}" >> ${WRKSRC}/LocalConfig.kmk
+	${RUN} ${ECHO} "VBOX_USE_SYSTEM_XORG_HEADERS:=1" >> ${WRKSRC}/LocalConfig.kmk
+
+do-build:
+	${RUN} cd ${WRKSRC} && . ./env.sh && ${KMK_ENV_VARS} kmk ${KMK_FLAGS}
+
+do-install:
+	${RUN} cd ${WRKSRC} && . ./env.sh && kmk install
+
+.include "../../mk/java-vm.mk"
+.include "../../net/libIDL/buildlink3.mk"
+.include "../../audio/pulseaudio/buildlink3.mk"
+.include "../../multimedia/libvpx/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../multimedia/libvpx/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../textproc/libxslt/buildlink3.mk"
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/qt4-libs/buildlink3.mk"
+.include "../../lang/python/pyversion.mk"
+.include "../../lang/python/application.mk"
+.include "../../lang/python/tool.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/virtualbox-svn/PLIST b/virtualbox-svn/PLIST
new file mode 100644
index 0000000..e69de29
diff --git a/virtualbox-svn/distinfo b/virtualbox-svn/distinfo
new file mode 100644
index 0000000..3d322c1
--- /dev/null
+++ b/virtualbox-svn/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (VirtualBox-5.0.16.tar.bz2) = ca7b3fadda37b1b281f78ef2d573aceacab7d9fd
+RMD160 (VirtualBox-5.0.16.tar.bz2) = 6d7a5d6cae5367d26a015895c09294ff0282d062
+SHA512 (VirtualBox-5.0.16.tar.bz2) = 3da3a227360fb50d299e99770378f65e8cb99525377343fa8faff2360be66643d46f68323d6a8b8d4d26182082f171bb35ab2497167bf6df18827a5ea7742074
+Size (VirtualBox-5.0.16.tar.bz2) = 111062984 bytes


Home | Main Index | Thread Index | Old Index