aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/skype20/Makefile
blob: d3cf0cd0aa63b33998bbf571fb24e4df5652afb7 (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
# New ports collection makefile for:    skype
# Date created:         Jun 21. 2004
# Whom:                 netchild@FreeBSD.org
#
# Maintainers:      Beech Rintoul <beech@FreeBSD.org>
#           Martin Wilke <miwi@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   skype
PORTVERSION=    1.4.0.118
PORTREVISION=   4
PORTEPOCH=  1
CATEGORIES= net
MASTER_SITES=   http://download.skype.com/linux/
DISTNAME=   skype_static-${DISTVERSION}-oss

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

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

.ifdef WITH_NVIDIA_GL
RUN_DEPENDS+=   ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
.else
USE_GL= linux
.endif

USE_BZIP2=  yes
USE_LINUX=  yes

RESTRICTED= Redistribution prohibited.

WRKSRC=     ${WRKDIR}/skype_static-${DISTVERSION}-oss
PORTDOCS=   LICENSE README
SUB_FILES=  pkg-message

.include <bsd.port.pre.mk>

do-build:
    ${BRANDELF} -t Linux ${WRKSRC}/skype

do-install:
    @${INSTALL} -d ${PREFIX}/share/applications
    @${INSTALL_DATA} ${WRKSRC}/skype.desktop ${PREFIX}/share/applications/
    @${INSTALL_DATA} ${WRKSRC}/icons/SkypeBlue_48x48.png ${PREFIX}/share/pixmaps/skype.png
    @${INSTALL_PROGRAM} ${WRKSRC}/skype ${PREFIX}/bin/skype
    @${CHMOD} a+rx ${PREFIX}/bin/skype
    @cd ${WRKSRC}/&&${COPYTREE_SHARE} "avatars icons sounds lang" ${DATADIR}/

.if !defined(NOPORTDOCS)
    @${INSTALL} -d ${DOCSDIR}
    @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>