pkgsrc/net/teamspeak-client/Makefile

61 lines
2.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.3 2006/09/25 13:15:35 abs Exp $
PKGNAME= teamspeak-client-2.0.32.60
DISTNAME= ts2_client_rc2_2032
CATEGORIES= net audio
MASTER_SITES= ftp://ftp.freenet.de/pub/4players/teamspeak.org/releases/ \
ftp://213.202.254.114/teamspeak/releases/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= abs@NetBSD.org
HOMEPAGE= http://www.goteamspeak.com/
COMMENT= Teamspeak group VoIP client
.include "../../emulators/suse_linux/Makefile.application"
.if !defined(USE_NATIVE_LINUX)
DEPENDS+= suse_base-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_base
DEPENDS+= suse_x11-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_x11
DEPENDS+= suse_libjpeg-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_libjpeg
.endif
ONLY_FOR_PLATFORM= *-*-i386
NO_CONFIGURE= yes
USE_LANGUAGES=
PLIST_SRC= ${WRKDIR}/PLIST
RESTRICTED= Redistribution to third parties is expressly prohibited
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
LICENSE= teamspeak-license
WRKSRC= ${WRKDIR}/${DISTNAME}/setup.data/image
LIB_DIR= ${PREFIX}/lib/teamspeak-client
DOC_DIR= ${PREFIX}/share/doc/teamspeak-client
do-build:
${SED} "s|%installdir%|${LIB_DIR}|" ${WRKSRC}/TeamSpeak \
> ${WRKDIR}/TeamSpeak
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/TeamSpeak ${PREFIX}/bin
${INSTALL_DATA_DIR} ${LIB_DIR}
${INSTALL_DATA_DIR} ${LIB_DIR}/sounds
${INSTALL_LIB} ${WRKSRC}/TeamSpeak.bin ${LIB_DIR}
${INSTALL_LIB} ${WRKSRC}/icon.xpm ${LIB_DIR}
${INSTALL_LIB} ${WRKSRC}/sounds/* ${LIB_DIR}/sounds
${INSTALL_LIB} ${WRKSRC}/*.so* ${LIB_DIR}
${INSTALL_DATA_DIR} ${DOC_DIR}
${INSTALL_DATA} -m 644 ${WRKSRC}/Readme.txt ${DOC_DIR}
${INSTALL_DATA} -m 644 ${WRKSRC}/clicense.txt ${DOC_DIR}
${INSTALL_DATA} -m 644 ${WRKSRC}/manual/* ${DOC_DIR}
${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC}
(cd ${PREFIX}; ${FIND} lib/teamspeak-client share/doc/teamspeak-client -type f -print ) >> ${PLIST_SRC}
(cd ${PREFIX}; ${FIND} lib/teamspeak-client share/doc/teamspeak-client -type d -print ) | ${SED} 's/^/@dirrm /' | ${SORT} -r >> ${PLIST_SRC}
.include "../../mk/bsd.pkg.mk"