mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
83 lines
2.5 KiB
Makefile
83 lines
2.5 KiB
Makefile
# Ports collection makefile for: kadu
|
|
# Date created: 17 July 2003
|
|
# Whom: Jacek Pelka <jacek@combit.com.pl>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= kadu
|
|
PORTVERSION= 0.12.0
|
|
PORTEPOCH= 1
|
|
CATEGORIES= polish net-im
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}/:kadu \
|
|
GOOGLE_CODE:kadu \
|
|
http://download.kadu.im/stable/:kadu \
|
|
http://download.kadu.im/additions/:additions
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:kadu
|
|
DIST_SUBDIR= kadu
|
|
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= pawel@FreeBSD.org
|
|
COMMENT= Internet communicator supporting Gadu-Gadu and Jabber/XMPP
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
|
|
pl-libgadu>=1.11.0:${PORTSDIR}/polish/libgadu
|
|
LIB_DEPENDS= enchant.1:${PORTSDIR}/textproc/enchant \
|
|
gadu.3:${PORTSDIR}/polish/libgadu \
|
|
idn.17:${PORTSDIR}/dns/libidn \
|
|
mpdclient.2:${PORTSDIR}/audio/libmpdclient \
|
|
qca.2:${PORTSDIR}/devel/qca \
|
|
sndfile.1:${PORTSDIR}/audio/libsndfile
|
|
RUN_DEPENDS= qca-ossl>=2.0.0.b3:${PORTSDIR}/security/qca-ossl
|
|
# TODO enable devel/libexecinfo
|
|
# TODO ntrack and ntrack-qt (needs porting) ?
|
|
# TODO separate ports for plugins and themes (possible starting with 0.10)
|
|
|
|
GG6_EMOTS_DISTFILE= kompatybilne_z_GG6.tar.gz
|
|
GG7_EMOTS_DISTFILE= dodatkowe_emoty_GG7.tar.gz
|
|
|
|
USE_BZIP2= yes
|
|
USE_CMAKE= yes
|
|
USE_XORG= xscrnsaver
|
|
CMAKE_ARGS= -DKADU_VERSION:STRING="${DISTVERSION}" -DWITH_ENCHANT=ON
|
|
# Setting KADU_VERSION disables git invocation
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
USE_QT4= dbus gui network script scripttools webkit xml phonon \
|
|
linguist_build moc_build qmake_build rcc_build uic_build \
|
|
imageformats_run sql-sqlite3_run
|
|
WANT_GNOME= yes
|
|
INSTALLS_ICONS= yes
|
|
|
|
OPTIONS_DEFINE= GG_EMOTS
|
|
GG_EMOTS_DESC= Install GG-compatible emoticons
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MGG_EMOTS}
|
|
PLIST_SUB+= GG_EMOTS=""
|
|
DISTFILES+= ${GG6_EMOTS_DISTFILE}:additions \
|
|
${GG7_EMOTS_DISTFILE}:additions
|
|
EXTRA_PATCHES+= ${FILESDIR}/emoticons-CMakeLists.txt
|
|
.else
|
|
PLIST_SUB+= GG_EMOTS="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
|
${WRKSRC}/plugins/single_window/CMakeLists.txt \
|
|
${WRKSRC}/plugins/tabs/CMakeLists.txt
|
|
@${FIND} ${WRKSRC} -exec ${GREP} -q "#!/bin/bash" {} \; \
|
|
-exec ${REINPLACE_CMD} -e 's|#!/bin/bash|#!/usr/bin/env bash|g' {} \;
|
|
|
|
.if ${PORT_OPTIONS:MGG_EMOTS}
|
|
@cd ${WRKSRC}/varia/themes/emoticons && \
|
|
${TAR} -zxf ${_DISTDIR}/${GG6_EMOTS_DISTFILE} && \
|
|
${MV} kompatybilne_z_GG6 gg6_compatible && \
|
|
cd gg6_compatible && ${TAR} -zxf ${_DISTDIR}/${GG7_EMOTS_DISTFILE}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|