1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/net-im/skype/Makefile
Jan Beich 79fe485645 multimedia/webcamd: clarify version requirements in consumers
webcamd exposes V4L/DVB/EVDEV/etc devices with consumer ABI configured
by v4l_compat version during build. Drop >0 dummy as V4L is available
since day 1 and we only want the daemon. This syncs RUN_DEPENDS with:

  multimedia/gstreamer-plugins-v4l2
  multimedia/gstreamer1-plugins-v4l2
2015-09-16 10:26:41 +00:00

70 lines
1.8 KiB
Makefile

# Created by: netchild@FreeBSD.org
# $FreeBSD$
PORTNAME= skype
PORTVERSION= 2.1.0.81
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= net-im
MASTER_SITES= http://download.skype.com/linux/
DISTNAME= skype_static-${DISTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= P2P VoIP software
CONFLICTS= skype-devel-[0-9]*
OPTIONS_DEFINE= NVIDIA_GL VIDEO
OPTIONS_DEFAULT= VIDEO
NO_BUILD= yes
USES= cpe tar:bzip2
USE_LINUX= yes
USE_LINUX_APPS+=alsalib alsa-plugins-oss expat fontconfig libasyncns \
libsigcpp20
RESTRICTED= Redistribution prohibited.
WRKSRC= ${WRKDIR}/${PORTNAME}_static-${DISTVERSION}
SKYPEDIR= share/skype
PORTDOCS= LICENSE README
PLIST_SUB+= SKYPEDIR=${SKYPEDIR}
SUB_FILES= skype.sh
SUB_LIST+= SKYPEDIR=${SKYPEDIR}
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MNVIDIA_GL}
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
USE_LINUX_APPS+=xorglibs
.else
USE_LINUX_APPS+=dri
.endif
.if ${PORT_OPTIONS:MVIDEO}
RUN_DEPENDS+= webcamd:${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
.if ${PORT_OPTIONS:MDOCS}
@${INSTALL} -d ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.post.mk>