summaryrefslogtreecommitdiff
path: root/net/skype/Makefile
blob: e30f3aecde899fd98c789f442291498188ef71f1 (plain)
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
# $NetBSD: Makefile,v 1.31 2009/07/22 09:01:41 wiz Exp $
#

DISTNAME=		skype_static-1.4.0.118-oss
PKGNAME=		skype-1.4.0.118
PKGREVISION=		1
CATEGORIES=		net
MASTER_SITES=		http://download.skype.com/linux/
EXTRACT_SUFX=		.tar.bz2
# see https://developer.skype.com/LinuxSkype/ReleaseNotes for changes

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.skype.com/
COMMENT=		P2P VoIP software
LICENSE=		skype-license

RESTRICTED=		Complex terms for redistribution.
NO_SRC_ON_FTP=		${RESTRICTED}
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_FTP=		${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}

PKG_DESTDIR_SUPPORT=	user-destdir

EMUL_PLATFORMS=		linux-i386
EMUL_MODULES.linux=	base compat fontconfig freetype2 glx \
			libsigc++2 resmgr x11

USE_TOOLS+=		pax
WRKSRC=			${WRKDIR}/${DISTNAME}

DATADIR=		${PREFIX}/share/skype
DOCDIR=			${PREFIX}/share/doc/skype

INSTALLATION_DIRS=	bin

do-build:
	set -e; \
	{ ${ECHO} "#!${SH}"; \
	  ${ECHO} 'exec ${DATADIR}/skype --resources=${DATADIR} "$$@"'; \
	} > ${WRKSRC}/skype.sh

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/skype.sh ${DESTDIR}${PREFIX}/bin/skype
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/applications
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/icons/hicolor/16x16/apps
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/icons/hicolor/32x32/apps
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/icons/hicolor/48x48/apps
	${INSTALL_DATA} ${WRKSRC}/skype.desktop \
		${DESTDIR}${PREFIX}/share/applications
	${INSTALL_DATA} ${WRKSRC}/icons/SkypeBlue_16x16.png \
		${DESTDIR}${PREFIX}/share/icons/hicolor/16x16/apps/skype.png
	${INSTALL_DATA} ${WRKSRC}/icons/SkypeBlue_32x32.png \
		${DESTDIR}${PREFIX}/share/icons/hicolor/32x32/apps/skype.png
	${INSTALL_DATA} ${WRKSRC}/icons/SkypeBlue_48x48.png \
		${DESTDIR}${PREFIX}/share/icons/hicolor/48x48/apps/skype.png
	${INSTALL_DATA_DIR} ${DESTDIR}${DATADIR}
	${INSTALL_PROGRAM} ${WRKSRC}/skype ${DESTDIR}${DATADIR}
	cd ${WRKSRC} && pax -rwppm icons sounds ${DESTDIR}${DATADIR}
	${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}

.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"