Index: head/net-im/skype4/Makefile =================================================================== --- head/net-im/skype4/Makefile (revision 390098) +++ head/net-im/skype4/Makefile (revision 390099) @@ -1,74 +1,74 @@ # Created by: netchild@FreeBSD.org # $FreeBSD$ PORTNAME= skype PORTVERSION= 4.3.0.37 PORTEPOCH= 1 CATEGORIES= net-im MASTER_SITES= http://download.skype.com/linux/ PKGNAMESUFFIX= 4 -MAINTAINER= xmj@chaot.net +MAINTAINER= xmj@FreeBSD.org COMMENT= P2P VoIP software RUN_DEPENDS= ${LINUXBASE}/lib/skype_oss_wrapper/libpulse.so.0:${PORTSDIR}/audio/linux-skype_oss_wrapper CONFLICTS= skype-devel-[0-9]* OPTIONS_DEFINE= VIDEO OPTIONS_DEFAULT= VIDEO NO_BUILD= yes USES= cpe desktop-file-utils tar:bzip2 USE_LINUX= yes USE_LINUX_APPS+= fontconfig xorglibs qt47 qt47-x11 qt47-webkit openssl-compat RESTRICTED= Redistribution prohibited. SKYPEDIR= share/skype PORTDOCS= LICENSE README PLIST_SUB+= SKYPEDIR=${SKYPEDIR} SUB_FILES= skype.sh SUB_LIST+= SKYPEDIR=${SKYPEDIR} .include .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100075 BROKEN= Skype 4.3 requires Linux 2.6.32 emulation. .endif NVIDIA_GL_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver NVIDIA_GL_USE= LINUX_APPS=xorglibs NVIDIA_GL_USE_OFF= LINUX_APPS=dri .include .if ${PORT_OPTIONS:MVIDEO} RUN_DEPENDS+= webcamd>0:${PORTSDIR}/multimedia/webcamd USE_LINUX_APPS+= libv4l SUB_LIST+= VIDEO="LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so " .else SUB_LIST+= VIDEO="" .endif do-install: @${INSTALL} -d ${STAGEDIR}${PREFIX}/share/applications @${INSTALL_DATA} ${WRKSRC}/skype.desktop \ ${STAGEDIR}${PREFIX}/share/applications/ @${INSTALL_DATA} ${WRKSRC}/icons/SkypeBlue_48x48.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/skype.png @cd ${WRKSRC}/ && ${MKDIR} ${STAGEDIR}${PREFIX}/${SKYPEDIR} && \ ${COPYTREE_SHARE} "avatars icons sounds lang" \ ${STAGEDIR}${PREFIX}/${SKYPEDIR}/ # The binary main program @${INSTALL_PROGRAM} ${WRKSRC}/skype ${STAGEDIR}${PREFIX}/${SKYPEDIR}/ # The wrapper for main program @${INSTALL_SCRIPT} ${WRKDIR}/skype.sh ${STAGEDIR}${PREFIX}/bin/skype # Documentation @${INSTALL} -d ${STAGEDIR}${DOCSDIR} @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .include Index: head/net-im/skype4/pkg-message =================================================================== --- head/net-im/skype4/pkg-message (revision 390098) +++ head/net-im/skype4/pkg-message (revision 390099) @@ -1,101 +1,105 @@ 1. Minimum OS version. +====================== Skype is a Linux binary package that we run on FreeBSD via our Linux compat. -In order for Skype to work OK, you need your kernel and modules to be: -- post 2011-05-03 in on HEAD -- post 2011-05-08 in on 7,8-STABLE -The port tries to check for this, but there is a smaller or bigger interval for -which this can't be done automatically. So in case of any trouble please make + +In order for Skype to work at all, you need to be running FreeBSD 11.0-CURRENT with +a Kernel and modules later than 2015-05-24. + +The port tries to check for this, and determines your kernel's osversion. +Chances are, if your kernel isn't new enough, the installation will fail. + +So in case of any trouble please make sure you run kernel/modules built from sources after above dates. -Tests were only done on HEAD and 8-STABLE with linux-fc10, and I don't think it -can work with fc4. +Tests were only done on HEAD with linux CentOS 6, and it's certainly broken +with Fedora 10 (legacy). 2. Sound +======== -Since the OSS interface was removed, Skype now uses linux-alsa compat packages. +Since the OSS interface was removed, Skype now uses linux-pulseaudio compat packages. By default you get one device corresponding to your default OSS dsp device (so -Skype will use it for ringing, incoming voice and mic). If that doesn't suit -needs, you can map the other dsp devices for example by editing -/compat/linux/etc/alsa/pcm/pcm-oss.conf. You need to (re)start Skype after you -edit this file in order to get Skype pick up the changes. -Adding the following to the stock file, and then starting Skype and choosing -in Options-->Sound Devices: Speakers: oss1 -will let you use the second dsp (usually the front panel connectors for your -headphones, while still hearing the call ringing and other notification on the -first dsp device (presumably the one you connect your speakers to). -pcm.oss1 { - type oss - device /dev/dsp1 - hint { - description "Open Sound System" - } -} +Skype will use it for ringing, incoming voice and mic). +For this to function properly, we've sourced a very specific libpulse.so, which +implements most of the things Skype actually needs through OSS, and not much +else. And that's okay, as libpulse.so is used exclusively for Skype via +LD_LIBRARY_PATH, and nothing else. -ctl.oss1 { - type oss - device /dev/mixer1 - hint { - description "Open Sound System" - } -} +Chances are, if you want to use Skype 4.3 *and* something that actually +requires (Linux) PulseAudio, you'll be better off running Linux natively. 3. Video +======== 3.1. Receiving video +-------------------- Should work out of the box. Please make sure you have -Options --> Video Devices --> Enable Skype Video checked. +Options --> Video Devices --> Enable Skype Video checked. 3.2. Sending video +------------------ Skype uses /dev/videoX (usually /dev/video0). This device node is created by the drivers for your webcam (eg. multimedia/webcamd). If you selected the VIDEO option (default) multimedia/webcamd will be pulled in. + First please make sure your webcam works with the drivers webcamd provides; you can use multimedia/pwcview's pwcview(1) to check that you get a good image from your webcam; if you get a good image, you will get video in Skype also. It also uses v4l2 interface hence you very likely need to have linux_v4l2wrapper kernel module (which you either have in base on recent HEAD or the port will install for you); you need to load the module before stating Skype: # kldload linux_v4l2wrapper To make it permanent you can: # echo 'linux_v4l2wrapper_load="YES"' >> /boot/loader.conf 4. SMSes +======== You can send SMSes with this version (provided you have Skype credit, of course). Check Options --> SMS for details. 5. Screen sharing +================= -You should be able to receive and send. -Please make sure you have Options --> Video Devices --> Enable Skype Video -checked to use this feature (yes, even if you don't use video). +You should be able to receive and send once you have enabled Skype Video (check +ยง3) 6. Skype Access +=============== Doesn't work and it is likely not very probable it will ever work since it uses a lot of Linux-specific things. -7. Next version ... +7. Troubleshooting +================== -.. is in net-im/skype-devel. It probably works worse that this version. Use it -at your own risk. +If Skype coredumps after displaying a (grey) About screen, you need to mount +linprocfs. +# mount -t linprocfs linprocfs /compat/linux/proc +To persist the changes, add it to your fstab. +This should work: + +linprocfs /compat/linux/proc linprocfs rw,late 0 0 + + 8. Problems and bug reports +=========================== First of all, please understand that this is a closed, binary Linux application that makes use for some more-or-less cutting edge Linux features/interfaces, etc. As such, making it work on FreeBSD is mainly a question of keeping our -linuxulator as close as possible to the Linux kernel, and our Linux compat +Linuxulator as close as possible to the Linux kernel, and our Linux compat ports up to date. When reporting problems at very least we need to know the output of: $ uname -a; sysctl compat.linux | head -2; grep OVERRIDE_LINUX_ /etc/make.conf -the skype version you are using, and hardware details (eg. webcam) if related. +the Skype version you are using, and hardware details (eg. webcam) if related.