aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/skype4/Makefile
blob: f1c6a5a71329e0fe27d0235093169bfd78ac0f80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Created by: netchild@FreeBSD.org
# $FreeBSD$

PORTNAME=   skype
PORTVERSION=    4.3.0.37
PORTREVISION=   5
PORTEPOCH=  1
CATEGORIES= net-im
MASTER_SITES=   http://download.skype.com/linux/
PKGNAMESUFFIX=  4

MAINTAINER= ports@FreeBSD.org
COMMENT=    P2P VoIP software

RUN_DEPENDS=    ${LINUXBASE}/lib/skype_oss_wrapper/libpulse.so.0:audio/linux-skype_oss_wrapper

CONFLICTS=  skype-devel-[0-9]*

OPTIONS_DEFINE= VIDEO
OPTIONS_DEFAULT=VIDEO

NO_BUILD=   yes

USES=       cpe desktop-file-utils linux tar:bzip2
USE_LINUX=  fontconfig xorglibs qt qt-x11 qtwebkit openssl pulseaudio-libs

RESTRICTED= Redistribution prohibited.

SKYPEDIR=   share/skype
PORTDOCS=   LICENSE README
PLIST_SUB+= SKYPEDIR=${SKYPEDIR}
SUB_FILES=  skype.sh
SUB_LIST+=  SKYPEDIR=${SKYPEDIR}

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MVIDEO}
RUN_DEPENDS+=   webcamd:multimedia/webcamd
USE_LINUX+= 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 <bsd.port.mk>