diff options
Diffstat (limited to 'net-im/skype-devel/Makefile')
-rw-r--r-- | net-im/skype-devel/Makefile | 90 |
1 files changed, 60 insertions, 30 deletions
diff --git a/net-im/skype-devel/Makefile b/net-im/skype-devel/Makefile index 10c22bb83ac2..6a8f1fa3a08f 100644 --- a/net-im/skype-devel/Makefile +++ b/net-im/skype-devel/Makefile @@ -6,63 +6,93 @@ # PORTNAME= skype -PORTVERSION= 2.0.0.68 -PORTREVISION= 2 -CATEGORIES= net +PORTVERSION= 2.2.0.25 +CATEGORIES= net-im MASTER_SITES= http://download.skype.com/linux/ PKGNAMESUFFIX= -devel -DISTNAME= skype_static-${DISTVERSION}-oss +DISTNAME= skype_static-${DISTVERSION} MAINTAINER= itetcu@FreeBSD.org -COMMENT= P2P VoIP software +COMMENT= P2P VoIP software, development version -RUN_DEPENDS= ${LINUXBASE}/usr/lib/libfontconfig.so.1:${PORTSDIR}/x11-fonts/linux-fontconfig \ - ${LINUXBASE}/usr/lib/libexpat.so.0:${PORTSDIR}/textproc/linux-expat \ - ${LINUXBASE}/usr/lib/libsigc-2.0.so.0:${PORTSDIR}/devel/linux-libsigc++20 \ - ${LINUXBASE}/lib/libasound.so.2:${PORTSDIR}/audio/linux-alsa-lib +OPTIONS= VIDEO "[broken] Video sending support via multimedia/webcamd" on \ + NVIDIA_GL "Use libGL provided by NVidia binary drivers" off -.ifdef WITH_NVIDIA_GL -RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver -.else -USE_LINUX_APPS+=dri -.endif +CONFLICTS= skype-1* skype-2.0* skype-2.1* + +NO_BUILD= yes USE_BZIP2= yes USE_LINUX= yes +USE_LINUX_APPS+=alsalib alsa-plugins-oss expat fontconfig libasyncns \ + libsigcpp20 RESTRICTED= Redistribution prohibited. -IGNORE= has moved, use net/skype instead - -WRKSRC= ${WRKDIR}/${PORTNAME}_static-${DISTVERSION}-oss +WRKSRC= ${WRKDIR}/${PORTNAME}_static-${DISTVERSION} SKYPEDIR= share/skype PORTDOCS= LICENSE README -SUB_FILES= pkg-message -SUB_LIST= SKYPEDIR=${SKYPEDIR} -PLIST_SUB= SKYPEDIR=${SKYPEDIR} +PLIST_SUB+= SKYPEDIR=${SKYPEDIR} +SUB_FILES= skype.sh +SUB_LIST+= SKYPEDIR=${SKYPEDIR} .include <bsd.port.pre.mk> -post-patch: - @${MV} ${WRKSRC}/skype.desktop ${WRKSRC}/skype-devel.desktop - @${REINPLACE_CMD} -e 's|Exec=skype|Exec=skype_devel --resources=${PREFIX}/${SKYPEDIR}|' \ - ${WRKSRC}/skype-devel.desktop +.ifdef WITH_NVIDIA_GL +RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver +USE_LINUX_APPS+=xorglibs +.else +USE_LINUX_APPS+=dri +.endif + +.ifdef WITH_VIDEO +RUN_DEPENDS+= webcamd>0:${PORTSDIR}/multimedia/webcamd +USE_LINUX_APPS+=libv4l +SUB_LIST+= VIDEO="LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so " +. if ${OSVERSION} < 900036 +RUN_DEPENDS+= linux_v4l2wrapper-kmod>=1.0:${PORTSDIR}/multimedia/linux_v4l2wrapper-kmod +. endif +.else +SUB_LIST+= VIDEO="" +.endif -do-build: - @${BRANDELF} -t Linux ${WRKSRC}/skype +### FIX ME, once they get bumped: +# for 7: 704102 +# for 8: 802504 +# for HEAD: 900037 +# we need src/sys/dev/sound/pcm/dsp.c r221388 +IGNORE_MSG= needs sys/dev/sound/pcm/dsp.c r221388 (and other changes).\ + Please update your system post +.if ${OSVERSION} < 704102 +OUTDATED= true +IGNORE_MSG+= r221584 / Sat May 7 09:33:37 2011 UTC +.elif (${OSVERSION} > 800000 && ${OSVERSION} < 802503) +OUTDATED= true +IGNORE_MSG+= r221583 / Sat May 7 09:26:11 2011 UTC +.elif (${OSVERSION} > 900000 && ${OSVERSION} < 900036) +OUTDATED= true +IGNORE_MSG+= r221388 / Tue May 3 15:50:22 2011 UTC +.endif +.ifdef OUTDATED +IGNORE= ${IGNORE_MSG} +.endif do-install: @${INSTALL} -d ${PREFIX}/share/applications - @${INSTALL} ${WRKSRC}/skype-devel.desktop ${PREFIX}/share/applications/ + @${INSTALL_DATA} ${WRKSRC}/skype-devel.desktop ${PREFIX}/share/applications/ @${INSTALL_DATA} ${WRKSRC}/icons/SkypeBlue_48x48.png ${PREFIX}/share/pixmaps/skype.png - @${INSTALL_PROGRAM} ${WRKSRC}/skype ${PREFIX}/bin/skype_devel + @cd ${WRKSRC}/ && ${MKDIR} ${PREFIX}/${SKYPEDIR} && ${COPYTREE_SHARE} "avatars icons sounds lang" ${PREFIX}/${SKYPEDIR}/ + +# The binary main program + @${INSTALL_PROGRAM} ${WRKSRC}/skype ${PREFIX}/${SKYPEDIR}/ + +# The wrapper for main program + @${INSTALL_SCRIPT} ${WRKDIR}/skype.sh ${PREFIX}/bin/skype-devel @${CHMOD} a+rx ${PREFIX}/bin/skype_devel - @cd ${WRKSRC}/&&${COPYTREE_SHARE} "avatars icons sounds lang" ${PREFIX}/${SKYPEDIR}/ .if !defined(NOPORTDOCS) @${INSTALL} -d ${DOCSDIR} @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif - @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> |