summaryrefslogtreecommitdiff
path: root/misc/mango/Makefile
blob: 833a76c146e05f795bb38de9917b3eff86a74629 (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
# New ports collection makefile for:   mango
# Date created:        23 March 2001
# Whom:                Roland Jesse <roland.jesse@gmx.net>
#
# $FreeBSD$
#

PORTNAME=	mango
PORTVERSION=	0.24
CATEGORIES=	misc
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=mango
DIST_SUBDIR=	KDE

MAINTAINER=	roland.jesse@gmx.net
COMMENT=	A recipe management software

.if defined(WITH_KDE)
LIB_DEPENDS+=	kextmdi.2:${PORTSDIR}/devel/qextmdi
PKGNAMESUFFIX=	-kde
.else
LIB_DEPENDS+=	qextmdi.2:${PORTSDIR}/devel/qextmdi
PKGNAMESUFFIX=	-nokde
.endif

USE_BZIP2=	yes
USE_QT_VER=	3
MAKE_ENV+=	QTDIR=${QT_PREFIX} LDFLAGS="-lkdevelopqextmdi"
.if defined(WITH_KDE)
USE_KDEBASE_VER=	3
.endif
.if defined(MAKE_JOBS)
MAKE_ARGS+=	-j${MAKE_JOBS}
.endif

.if !defined(WITH_KDE)
pre-configure:
	@${ECHO_CMD}
	@${ECHO_CMD} "Note: Mango can be build with KDE support."
	@${ECHO_CMD} "      Please specify WITH_KDE in case you want to do so."
	@${ECHO_CMD} "      Make sure that the prerequisite QextMDI library"
	@${ECHO_CMD} "      was also installed with KDE support. The easiest"
	@${ECHO_CMD} "      way to accomplish this is to set WITH_KDE=yes in"
	@${ECHO_CMD} "      /etc/make.conf."
	@${ECHO_CMD}
.endif

do-configure:
.if defined(WITH_KDE)
	@(cd ${WRKSRC} && \
	${SED} -i -e 's|warn_on debug|warn_off release kde thread|' mango.pro)
.else
	@(cd ${WRKSRC} && \
	${SED} -i -e 's|warn_on debug|warn_off release thread|' mango.pro)
.endif
	@(cd ${WRKSRC} && \
	${SETENV} ${MAKE_ENV} PREFIX=${PREFIX} QMAKESPEC=freebsd-g++ \
	qmake mango.pro)

pre-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/mango ${PREFIX}/bin

.include <bsd.port.mk>