blob: 8976ef9a20fa3c07c9331e12495e13b3ddd06679 (
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
|
# New ports collection makefile for: pidgin-skype
# Date created: 2010-12-19
# Whom: mandree@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= pidgin-skype
PORTVERSION= 0.0.0.628
CATEGORIES= net-im
MASTER_SITES= LOCAL/mandree
DISTFILES= pidgin-skype-svn-r${PORTVERSION:E}.tar.xz
MAINTAINER= mandree@FreeBSD.org
COMMENT= Plugin to use Skype chat from Pidgin (with Skype running)
LICENSE= GPLv2
BUILD_DEPENDS= ${LOCALBASE}/include/pidgin/pidgin.h:${PORTSDIR}/net-im/pidgin \
${LOCALBASE}/bin/skype:${PORTSDIR}/net-im/skype
RUN_DEPENDS= pidgin:${PORTSDIR}/net-im/pidgin \
${LOCALBASE}/bin/skype:${PORTSDIR}/net-im/skype
USE_GMAKE= yes
USE_GNOME= glib20
USE_XZ= yes
# this is a local target to build a tarball
build-tarball: ${DISTFILES}
${DISTFILES}:
${RM} -rf ${WRKSRC}
svn export -r${PORTVERSION:E} \
http://skype4pidgin.googlecode.com/svn/trunk/ ${WRKSRC}
tar -C ${WRKSRC}/.. -cvf - ${WRKSRC:T} | ${XZ_CMD} -vvc >${DISTFILES} || \
{ ${RM} -f ${DISTFILES} ; exit 1 ; }
upload-tarball: build-tarball
scp ${DISTFILES} freefall.freebsd.org:public_distfiles/
mycflags= -shared -fPIC -DPIC ${PTHREAD_CFLAGS} \
-I${LOCALBASE}/include \
-I${LOCALBASE}/include/libpurple \
-I${LOCALBASE}/include/pidgin \
-I${LOCALBASE}/include/glib-2.0 \
-DPURPLE_PLUGINS
mylibs= ${PTHREAD_LIBS}
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} ${mycflags} \
-o libskype.so libskype.c ${mylibs}
do-install:
${MKDIR} ${PREFIX}/lib/purple-2
${INSTALL_DATA} ${WRKSRC}/libskype.so ${PREFIX}/lib/purple-2
${MKDIR} ${PREFIX}/share/pixmaps/pidgin/emotes/skype
${INSTALL_DATA} ${WRKSRC}/theme ${PREFIX}/share/pixmaps/pidgin/emotes/skype
.for i in 16 22 48
${MKDIR} ${PREFIX}/share/pixmaps/pidgin/protocols/${i}
${INSTALL_DATA} ${WRKSRC}/icons/${i}/skypeout.png \
${WRKSRC}/icons/${i}/skype.png \
${PREFIX}/share/pixmaps/pidgin/protocols/${i}/
.endfor
.include <bsd.port.mk>
|