2001-03-30 21:25:18 -05:00
|
|
|
# New ports collection makefile for: mango
|
|
|
|
# Date created: 23 March 2001
|
2003-01-15 11:54:23 -05:00
|
|
|
# Whom: Roland Jesse <roland.jesse@gmx.net>
|
2001-03-30 21:25:18 -05:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mango
|
2003-10-31 10:08:21 -05:00
|
|
|
PORTVERSION= 0.27
|
2001-03-30 21:25:18 -05:00
|
|
|
CATEGORIES= misc
|
2002-05-11 05:33:46 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR=mango
|
2003-01-15 11:54:23 -05:00
|
|
|
DIST_SUBDIR= KDE
|
2001-03-30 21:25:18 -05:00
|
|
|
|
2003-01-15 11:54:23 -05:00
|
|
|
MAINTAINER= roland.jesse@gmx.net
|
2003-02-21 07:51:06 -05:00
|
|
|
COMMENT= A recipe management software
|
2001-03-30 21:25:18 -05:00
|
|
|
|
2004-02-26 15:59:36 -05:00
|
|
|
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
|
|
|
|
|
2003-01-15 11:54:23 -05:00
|
|
|
.if defined(WITH_KDE)
|
|
|
|
LIB_DEPENDS+= kextmdi.2:${PORTSDIR}/devel/qextmdi
|
2003-02-19 10:09:00 -05:00
|
|
|
PKGNAMESUFFIX= -kde
|
2003-01-15 11:54:23 -05:00
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= qextmdi.2:${PORTSDIR}/devel/qextmdi
|
2003-02-19 10:09:00 -05:00
|
|
|
PKGNAMESUFFIX= -nokde
|
2003-01-15 11:54:23 -05:00
|
|
|
.endif
|
2001-03-30 21:25:18 -05:00
|
|
|
|
2004-02-06 08:12:53 -05:00
|
|
|
PLIST_FILES= bin/mango
|
2001-03-30 21:25:18 -05:00
|
|
|
USE_BZIP2= yes
|
2003-06-26 12:45:48 -04:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
MAKE_ENV+= QTDIR=${QT_PREFIX} LDFLAGS="-lkextmdi"
|
2003-01-15 11:54:23 -05:00
|
|
|
.if defined(WITH_KDE)
|
2004-02-11 10:30:28 -05:00
|
|
|
USE_KDELIBS_VER= 3
|
2003-06-26 12:45:48 -04:00
|
|
|
.else
|
|
|
|
USE_QT_VER= 3
|
2003-01-15 11:54:23 -05:00
|
|
|
.endif
|
|
|
|
.if defined(MAKE_JOBS)
|
|
|
|
MAKE_ARGS+= -j${MAKE_JOBS}
|
|
|
|
.endif
|
2001-03-30 21:25:18 -05:00
|
|
|
|
2003-01-15 11:54:23 -05:00
|
|
|
.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
|
2001-03-30 21:25:18 -05:00
|
|
|
|
2003-01-15 11:54:23 -05:00
|
|
|
do-configure:
|
|
|
|
.if defined(WITH_KDE)
|
|
|
|
@(cd ${WRKSRC} && \
|
2003-06-26 12:45:48 -04:00
|
|
|
${REINPLACE_CMD} -e 's|warn_on debug|warn_off release kde|' mango.pro)
|
2003-01-15 11:54:23 -05:00
|
|
|
.else
|
|
|
|
@(cd ${WRKSRC} && \
|
2003-06-26 12:45:48 -04:00
|
|
|
${REINPLACE_CMD} -e 's|warn_on debug|warn_off release|' mango.pro)
|
2003-01-15 11:54:23 -05:00
|
|
|
.endif
|
|
|
|
@(cd ${WRKSRC} && \
|
2003-06-26 12:45:48 -04:00
|
|
|
${SETENV} ${MAKE_ENV} PREFIX=${PREFIX} \
|
2004-01-30 08:02:15 -05:00
|
|
|
qmake -spec ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ mango.pro)
|
2003-01-15 11:54:23 -05:00
|
|
|
|
|
|
|
pre-install:
|
2003-01-21 05:23:10 -05:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/mango ${PREFIX}/bin
|
2001-03-30 21:25:18 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|