aboutsummaryrefslogtreecommitdiff
path: root/net-im/ramblercontacts/Makefile
blob: 7652693f840f79ee66d81e2f7853a40333c94162 (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
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$

PORTNAME=	ramblercontacts
PORTVERSION=	0.3.2.1030
PORTREVISION=	2
CATEGORIES=	net-im russian
MASTER_SITES=	http://freebsd.nsu.ru/distfiles/
DISTNAME=	${PORTNAME}_v${PORTVERSION}_beta_src

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Free, multi-service communication client from Rambler

LICENSE=	GPLv3

USES=		qmake dos2unix
DOS2UNIX_FILES=	src/config.inc
USE_XORG=	xscrnsaver
USE_QT4=	moc_build rcc_build uic_build designer_build \
		webkit
USE_LDCONFIG=	yes

post-patch:
# Remove bogus Byte Order Mark (BOM) from some source files
	@${REINPLACE_CMD} -e '1s/^[^#]*//' ${WRKSRC}/src/utils/balloontip.*
# Apparently, these are results of development on Windoze
	@${REINPLACE_CMD} -e 's/info>/Info>/ ; s/metrics>/Metrics>/' \
		${WRKSRC}/src/plugins/stylesheeteditor/private/qcssparser.cpp
# Fix namespace syntax (curly braces seem to be required in this case) and
# allow the program to find its resources from arbitrary directory (use
# absolute paths)
	@${REINPLACE_CMD} -e '/unix:!macx/s/INSTALL_.*/{ & }/ ; \
		51,53s/\.\./$$$${INSTALL_PREFIX}/' ${WRKSRC}/src/config.inc
# Do not install yet another copy of GPL, we have LICENSE knob for this
	@${REINPLACE_CMD} -e 's| ../../COPYING||' \
		${WRKSRC}/src/loader/loader.pro

.include <bsd.port.mk>