2013-05-23 18:10:43 +02:00
|
|
|
# Created by: netchild@FreeBSD.org
|
2004-06-23 12:06:46 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= skype
|
2011-05-11 11:51:07 +02:00
|
|
|
PORTVERSION= 2.1.0.81
|
2012-06-07 21:41:34 +02:00
|
|
|
PORTREVISION= 1
|
2007-11-01 13:24:53 +01:00
|
|
|
PORTEPOCH= 1
|
2011-05-11 11:51:07 +02:00
|
|
|
CATEGORIES= net-im
|
2008-03-16 05:58:49 +01:00
|
|
|
MASTER_SITES= http://download.skype.com/linux/
|
2011-05-11 11:51:07 +02:00
|
|
|
DISTNAME= skype_static-${DISTVERSION}
|
2004-06-23 12:06:46 +02:00
|
|
|
|
2014-08-18 20:41:00 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-06-23 12:06:46 +02:00
|
|
|
COMMENT= P2P VoIP software
|
|
|
|
|
2012-06-07 21:41:34 +02:00
|
|
|
CONFLICTS= skype-devel-[0-9]*
|
2013-05-23 18:10:43 +02:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= VIDEO NVIDIA_GL
|
|
|
|
NVIDIA_GL_DESC= libGL provided by NVidia binary drivers
|
|
|
|
|
|
|
|
OPTIONS_DEFAULT= VIDEO
|
2007-01-09 00:53:42 +01:00
|
|
|
|
2011-05-11 11:51:07 +02:00
|
|
|
NO_BUILD= yes
|
2010-02-13 10:19:02 +01:00
|
|
|
|
2014-08-18 20:41:00 +02:00
|
|
|
USES= tar:bzip2
|
2007-10-29 20:36:50 +01:00
|
|
|
USE_LINUX= yes
|
2011-05-11 11:51:07 +02:00
|
|
|
USE_LINUX_APPS+=alsalib alsa-plugins-oss expat fontconfig libasyncns \
|
|
|
|
libsigcpp20
|
2007-11-01 13:24:53 +01:00
|
|
|
RESTRICTED= Redistribution prohibited.
|
|
|
|
|
2011-05-11 11:51:07 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_static-${DISTVERSION}
|
2008-05-03 05:53:28 +02:00
|
|
|
SKYPEDIR= share/skype
|
2008-03-14 00:11:32 +01:00
|
|
|
PORTDOCS= LICENSE README
|
2008-11-26 04:21:47 +01:00
|
|
|
PLIST_SUB+= SKYPEDIR=${SKYPEDIR}
|
|
|
|
SUB_FILES= skype.sh
|
|
|
|
SUB_LIST+= SKYPEDIR=${SKYPEDIR}
|
2007-11-01 13:24:53 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-05-23 18:10:43 +02:00
|
|
|
.if ${PORT_OPTIONS:MNVIDIA_GL}
|
2011-05-11 11:51:07 +02:00
|
|
|
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
|
|
|
|
USE_LINUX_APPS+=xorglibs
|
|
|
|
.else
|
|
|
|
USE_LINUX_APPS+=dri
|
|
|
|
.endif
|
|
|
|
|
2013-05-23 18:10:43 +02:00
|
|
|
.if ${PORT_OPTIONS:MVIDEO}
|
2011-05-11 11:51:07 +02:00
|
|
|
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
|
2008-05-26 06:29:20 +02:00
|
|
|
|
2004-06-23 12:06:46 +02:00
|
|
|
do-install:
|
2014-08-18 20:41:00 +02:00
|
|
|
@${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}/
|
2008-03-14 00:11:32 +01:00
|
|
|
|
2008-11-26 04:21:47 +01:00
|
|
|
# The binary main program
|
2014-08-18 20:41:00 +02:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/skype ${STAGEDIR}${PREFIX}/${SKYPEDIR}/
|
2008-11-26 04:21:47 +01:00
|
|
|
|
|
|
|
# The wrapper for main program
|
2014-08-18 20:41:00 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/skype.sh ${STAGEDIR}${PREFIX}/bin/skype
|
2008-11-26 04:21:47 +01:00
|
|
|
|
2013-05-23 18:10:43 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-08-18 20:41:00 +02:00
|
|
|
@${INSTALL} -d ${STAGEDIR}${DOCSDIR}
|
|
|
|
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2008-03-14 00:11:32 +01:00
|
|
|
.endif
|
|
|
|
|
2007-11-01 13:24:53 +01:00
|
|
|
.include <bsd.port.post.mk>
|