aboutsummaryrefslogtreecommitdiff
path: root/editors/textroom/Makefile
blob: 6a13433060dfe0e85e1f0271ef0417bc9f90ea3d (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
# New ports collection makefile for: textroom
# Date created:        27 April 2010
# Whom:                admin@mjbrune.org
#
# $FreeBSD$
#

PORTNAME=	textroom
PORTVERSION=	0.6.5
CATEGORIES=	editors
MASTER_SITES=	SF

MAINTAINER=	admin@mjbrune.org
COMMENT=	A full screen text editor

BUILD_DEPENDS=	update-mime-database:${PORTSDIR}/misc/shared-mime-info
LIB_DEPENDS=	hunspell-1.2:${PORTSDIR}/hungarian/hunspell
RUN_DEPENDS=	update-mime-database:${PORTSDIR}/misc/shared-mime-info

USE_SDL=	mixer
USE_QT_VER=	4
QT_COMPONENTS=	moc_build qmake_build rcc_build uic_build corelib gui
QMAKE_ARGS=	PREFIX=${PREFIX} LOCALBASE=${LOCALBASE}
HAS_CONFIGURE=	yes
MAKE_JOBS_SAFE=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|-lhunspell|-lhunspell-1.2|' \
		${WRKSRC}/textroom.pro
	@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
		${WRKSRC}/src/textroom.cpp

do-configure:
	@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
	${QMAKE} ${QMAKEFLAGS} ${QMAKE_ARGS} textroom.pro

post-install:
	@-update-mime-database ${PREFIX}/share/mime

.include <bsd.port.mk>