Lines 3-8
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= virtualbox-ose |
4 |
PORTNAME= virtualbox-ose |
5 |
DISTVERSION= 4.3.30 |
5 |
DISTVERSION= 4.3.30 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= emulators |
7 |
CATEGORIES= emulators |
7 |
MASTER_SITES= http://download.virtualbox.org/virtualbox/${DISTVERSION}/ \ |
8 |
MASTER_SITES= http://download.virtualbox.org/virtualbox/${DISTVERSION}/ \ |
8 |
http://tmp.chruetertee.ch/ \ |
9 |
http://tmp.chruetertee.ch/ \ |
Lines 21-29
Link Here
|
21 |
xsltproc:${PORTSDIR}/textproc/libxslt \ |
22 |
xsltproc:${PORTSDIR}/textproc/libxslt \ |
22 |
kmk:${PORTSDIR}/devel/kBuild \ |
23 |
kmk:${PORTSDIR}/devel/kBuild \ |
23 |
gtar:${PORTSDIR}/archivers/gtar \ |
24 |
gtar:${PORTSDIR}/archivers/gtar \ |
24 |
cdrecord:${PORTSDIR}/sysutils/cdrtools |
25 |
cdrecord:${PORTSDIR}/sysutils/cdrtools \ |
|
|
26 |
libIDL-config-2:${PORTSDIR}/devel/libIDL |
25 |
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \ |
27 |
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \ |
26 |
libxslt.so:${PORTSDIR}/textproc/libxslt \ |
28 |
libxml2.so:${PORTSDIR}/textproc/libxml2 \ |
27 |
libcurl.so:${PORTSDIR}/ftp/curl |
29 |
libcurl.so:${PORTSDIR}/ftp/curl |
28 |
RUN_DEPENDS= ${LOCALBASE}/etc/rc.d/vboxnet:${PORTSDIR}/emulators/virtualbox-ose-kmod \ |
30 |
RUN_DEPENDS= ${LOCALBASE}/etc/rc.d/vboxnet:${PORTSDIR}/emulators/virtualbox-ose-kmod \ |
29 |
cdrecord:${PORTSDIR}/sysutils/cdrtools |
31 |
cdrecord:${PORTSDIR}/sysutils/cdrtools |
Lines 34-40
Link Here
|
34 |
WRKSRC= ${WRKDIR}/VirtualBox-${PORTVERSION} |
36 |
WRKSRC= ${WRKDIR}/VirtualBox-${PORTVERSION} |
35 |
ONLY_FOR_ARCHS= i386 amd64 |
37 |
ONLY_FOR_ARCHS= i386 amd64 |
36 |
USES= compiler cpe iconv pkgconfig tar:bzip2 |
38 |
USES= compiler cpe iconv pkgconfig tar:bzip2 |
37 |
USE_GNOME= libidl |
|
|
38 |
USE_LDCONFIG= ${VBOX_DIR} |
39 |
USE_LDCONFIG= ${VBOX_DIR} |
39 |
USE_OPENSSL= yes |
40 |
USE_OPENSSL= yes |
40 |
|
41 |
|
Lines 82-87
Link Here
|
82 |
|
83 |
|
83 |
VDE_RUN_DEPENDS= vde_switch:${PORTSDIR}/net/vde2 |
84 |
VDE_RUN_DEPENDS= vde_switch:${PORTSDIR}/net/vde2 |
84 |
|
85 |
|
|
|
86 |
MANUAL_USE= TEX=dvipsk:build,formats:build |
87 |
PYTHON_USES= python:2 |
88 |
PYTHON_USE= PYTHON=distutils,noegginfo |
89 |
PYTHON_USES_OFF= python:build |
90 |
QT4_USE= QT4=linguisttools_build,moc_build,rcc_build,uic_build |
91 |
QT4_USE+= QT4=gui,network,opengl |
92 |
X11_USE= GL=gl SDL=sdl XORG=x11,xcursor,xmu,inputproto,xinerama |
93 |
|
85 |
DBUS_CONFIGURE_OFF= --disable-dbus |
94 |
DBUS_CONFIGURE_OFF= --disable-dbus |
86 |
DEBUG_CONFIGURE_ON= --build-debug |
95 |
DEBUG_CONFIGURE_ON= --build-debug |
87 |
MANUAL_CONFIGURE_OFF= --disable-docs |
96 |
MANUAL_CONFIGURE_OFF= --disable-docs |
Lines 135-157
Link Here
|
135 |
RESTRICTED_FILES= ${GUESTADDITIONS} |
144 |
RESTRICTED_FILES= ${GUESTADDITIONS} |
136 |
.endif |
145 |
.endif |
137 |
|
146 |
|
138 |
.if ${PORT_OPTIONS:MMANUAL} |
|
|
139 |
USE_TEX= dvipsk:build formats:build |
140 |
.endif |
141 |
|
142 |
.if ${PORT_OPTIONS:MPYTHON} |
147 |
.if ${PORT_OPTIONS:MPYTHON} |
143 |
USES+= python:2 |
|
|
144 |
USE_PYTHON= distutils noegginfo |
145 |
PYDISTUTILS_PKGNAME= vboxapi |
148 |
PYDISTUTILS_PKGNAME= vboxapi |
146 |
PYDISTUTILS_PKGVERSION= 1.0 |
149 |
PYDISTUTILS_PKGVERSION= 1.0 |
147 |
.else |
|
|
148 |
USES+= python:build |
149 |
.endif |
150 |
.endif |
150 |
|
151 |
|
151 |
.if ${PORT_OPTIONS:MQT4} |
152 |
.if ${PORT_OPTIONS:MQT4} |
152 |
QT_NONSTANDARD= yes |
153 |
QT_NONSTANDARD= yes |
153 |
USE_QT4= linguist_build moc_build rcc_build uic_build |
|
|
154 |
USE_QT4+= gui network opengl |
155 |
INSTALLS_ICONS= yes |
154 |
INSTALLS_ICONS= yes |
156 |
VBOX_PROGS+= VirtualBox |
155 |
VBOX_PROGS+= VirtualBox |
157 |
VBOX_UTILS+= VBoxTestOGL |
156 |
VBOX_UTILS+= VBoxTestOGL |
Lines 168-175
Link Here
|
168 |
.endif |
167 |
.endif |
169 |
|
168 |
|
170 |
.if ${PORT_OPTIONS:MX11} |
169 |
.if ${PORT_OPTIONS:MX11} |
171 |
USE_SDL= sdl |
|
|
172 |
USE_XORG= xcursor xmu inputproto xinerama |
173 |
VBOX_PROGS+= VBoxSDL |
170 |
VBOX_PROGS+= VBoxSDL |
174 |
.endif |
171 |
.endif |
175 |
|
172 |
|
Lines 258-264
Link Here
|
258 |
${WRKSRC}/kBuild/units/qt3.kmk ${WRKSRC}/kBuild/units/qt4.kmk \ |
255 |
${WRKSRC}/kBuild/units/qt3.kmk ${WRKSRC}/kBuild/units/qt4.kmk \ |
259 |
${WRKSRC}/kBuild/sdks/LIBSDL.kmk \ |
256 |
${WRKSRC}/kBuild/sdks/LIBSDL.kmk \ |
260 |
${WRKSRC}/src/libs/xpcom18a4/python/gen_python_deps.py |
257 |
${WRKSRC}/src/libs/xpcom18a4/python/gen_python_deps.py |
261 |
@${REINPLACE_CMD} -e 's|\$$KBUILDDIR_BIN/kmk_sed|${LOCALBASE}/bin/kmk_sed|g' ${WRKSRC}/configure |
258 |
@${REINPLACE_CMD} -e 's|\$$KBUILDDIR_BIN/kmk_sed|${LOCALBASE}/bin/kmk_sed|g' \ |
|
|
259 |
-e 's|\[ $$WITH_X11 -eq 1 \] && check_xrandr||' \ |
260 |
-e 's|#include <GL/glu.h>||' \ |
261 |
${WRKSRC}/configure |
262 |
@${REINPLACE_CMD} -e 's|#include <GL/glu.h>||' \ |
263 |
${WRKSRC}/src/VBox/GuestHost/OpenGL/include/chromium.h |
262 |
.if empty(ICONV_LIB) |
264 |
.if empty(ICONV_LIB) |
263 |
@${REINPLACE_CMD} -e 's|iconv||' ${WRKSRC}/Config.kmk ${WRKSRC}/src/VBox/Runtime/Makefile.kmk |
265 |
@${REINPLACE_CMD} -e 's|iconv||' ${WRKSRC}/Config.kmk ${WRKSRC}/src/VBox/Runtime/Makefile.kmk |
264 |
@${ECHO} 'VBOX_ICONV_DEFS = LIBICONV_PLUG' >> ${WRKSRC}/LocalConfig.kmk |
266 |
@${ECHO} 'VBOX_ICONV_DEFS = LIBICONV_PLUG' >> ${WRKSRC}/LocalConfig.kmk |
Lines 284-290
Link Here
|
284 |
${MKDIR} ${STAGEDIR}${VBOX_DIR} |
286 |
${MKDIR} ${STAGEDIR}${VBOX_DIR} |
285 |
cd ${KMK_BUILDDIR}/bin && ${COPYTREE_SHARE} \ |
287 |
cd ${KMK_BUILDDIR}/bin && ${COPYTREE_SHARE} \ |
286 |
"*.so *.gc *.r0 *.fd components" ${STAGEDIR}${VBOX_DIR} |
288 |
"*.so *.gc *.r0 *.fd components" ${STAGEDIR}${VBOX_DIR} |
|
|
289 |
${FIND} ${STAGEDIR}${VBOX_DIR} -type f -name "*.so" \ |
290 |
-exec ${STRIP_CMD} {} \; |
291 |
.if ${PORT_OPTIONS:MPYTHON} || ${PORT_OPTIONS:MWEBSERVICE} |
287 |
${LN} -sf ${DATADIR}/sdk ${STAGEDIR}${VBOX_DIR} |
292 |
${LN} -sf ${DATADIR}/sdk ${STAGEDIR}${VBOX_DIR} |
|
|
293 |
.endif |
288 |
|
294 |
|
289 |
${INSTALL_SCRIPT} ${WRKSRC}/src/VBox/Installer/freebsd/VBox.sh \ |
295 |
${INSTALL_SCRIPT} ${WRKSRC}/src/VBox/Installer/freebsd/VBox.sh \ |
290 |
${STAGEDIR}${VBOX_DIR} |
296 |
${STAGEDIR}${VBOX_DIR} |