aboutsummaryrefslogtreecommitdiff
path: root/audio/teamspeak_client/Makefile
blob: c1657744fc51a31b7cbd75489f814e5ea5f7ef00 (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
66
67
68
69
70
71
72
73
74
75
76
# New ports collection makefile for:	teamspeak
# Date created:				22 January 2003
# Whom:					Daniel O'Connor
#
# $FreeBSD$
#

PORTNAME=	teamspeak_client
PORTVERSION=	2.0.32
PORTREVISION=	1
CATEGORIES=	audio
MASTER_SITES=	ftp://ftp.freenet.de/pub/4players/teamspeak.org/releases/:main \
		http://www.gsoft.com.au/~doconnor/:misc
DISTNAME=	ts2_client_rc2_2032
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:main setduplexfake.so.gz:misc
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	darius@dons.net.au
COMMENT=	Client side of a group voice chat system

RUN_DEPENDS=	${LINUXBASE}/usr/lib/libjpeg.so.62:${PORTSDIR}/graphics/linux-jpeg

ONLY_FOR_ARCHS=	i386 amd64
USE_BZIP2=	yes
USE_LINUX=	yes
USE_X_PREFIX=	yes
NO_BUILD=	yes

TSIMG=		${WRKSRC}/setup.data/image
TSHOME=		${PREFIX}/lib/teamspeak_client

SUB_FILES=	TeamSpeak
SUB_LIST=	TSHOME="${TSHOME}"

PORTDOCS=	*

DESKTOP_ENTRIES="TeamSpeak" \
		"Voice-chat with people" \
		"${TSHOME}/icon.xpm" \
		"TeamSpeak" \
		"Application;Audio;Network;" \
		false

post-extract:
	@${MKDIR} ${WRKDIR}/programs
	@${GZIP_CMD} -dc ${DISTDIR}/setduplexfake.so.gz >${WRKDIR}/programs/setduplexfake.so

post-patch:
	@${RM} -f ${TSIMG}/TeamSpeak
	@${MKDIR} ${WRKDIR}/doc
.for f in Readme.txt clicense.txt manual
	@${MV} -f ${TSIMG}/${f} ${WRKDIR}/doc
.endfor
.for f in TeamSpeak.bin lib*
	@${MV} ${TSIMG}/${f} ${WRKDIR}/programs
.endfor
	@${MKDIR} ${WRKDIR}/programs/client_sdk
.for f in lib* tsControl
	@${MV} ${TSIMG}/client_sdk/${f} ${WRKDIR}/programs/client_sdk
.endfor

do-install:
	cd ${TSIMG} && \
	${FIND} * -type d -exec ${MKDIR} "${TSHOME}/{}" \; && \
	${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${TSHOME}/{}" \;
	cd ${WRKDIR}/programs && \
	${FIND} * -type d -exec ${MKDIR} "${TSHOME}/{}" \; && \
	${FIND} * -type f -exec ${INSTALL_PROGRAM} "{}" "${TSHOME}/{}" \;
	${INSTALL_SCRIPT} ${WRKDIR}/TeamSpeak ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	cd ${WRKDIR}/doc && \
	${FIND} * -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
	${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
.endif

.include <bsd.port.mk>