diff options
author | arved <arved@FreeBSD.org> | 2003-01-16 00:54:23 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2003-01-16 00:54:23 +0800 |
commit | e2466ea55d93541eb98e7bb26cd486d7c85f417c (patch) | |
tree | 8dd8e8da90538bb01fc18011b3eb4366ee3deecc /misc/mango/Makefile | |
parent | 3537269cb414809567a9c0a3172cd07b25789719 (diff) | |
download | freebsd-ports-gnome-e2466ea55d93541eb98e7bb26cd486d7c85f417c.tar.gz freebsd-ports-gnome-e2466ea55d93541eb98e7bb26cd486d7c85f417c.tar.zst freebsd-ports-gnome-e2466ea55d93541eb98e7bb26cd486d7c85f417c.zip |
Update to 0.23
PR: 47012,47050
Submitted by: Roland Jesse <roland.jesse@gmx.net> (maintainer)
Diffstat (limited to 'misc/mango/Makefile')
-rw-r--r-- | misc/mango/Makefile | 55 |
1 files changed, 42 insertions, 13 deletions
diff --git a/misc/mango/Makefile b/misc/mango/Makefile index 63e41b069294..f1917a8253e5 100644 --- a/misc/mango/Makefile +++ b/misc/mango/Makefile @@ -1,31 +1,60 @@ # New ports collection makefile for: mango # Date created: 23 March 2001 -# Whom: Roland Jesse <jesse@cs.uni-magdeburg.de> +# Whom: Roland Jesse <roland.jesse@gmx.net> # # $FreeBSD$ # PORTNAME= mango -PORTVERSION= 0.3 -PORTREVISION= 2 +PORTVERSION= 0.23 CATEGORIES= misc MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR=mango +DIST_SUBDIR= KDE -MAINTAINER= jesse@cs.uni-magdeburg.de +MAINTAINER= roland.jesse@gmx.net -BUILD_DEPENDS= tmake:${PORTSDIR}/devel/tmake +.if defined(WITH_KDE) +LIB_DEPENDS+= kextmdi.2:${PORTSDIR}/devel/qextmdi +.else +LIB_DEPENDS+= qextmdi.2:${PORTSDIR}/devel/qextmdi +.endif USE_BZIP2= yes -USE_QT_VER= 2 -TMAKEENV= TMAKEPATH=${PREFIX}/share/tmake/freebsd-g++ QTDIR=${X11BASE} -MAKE_ENV+= QTDIR=${X11BASE} +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 -do-build: - (cd ${WRKSRC}; ${SETENV} ${TMAKEENV} tmake -o Makefile mango.pro) - (cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}) +.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-install: - @${INSTALL_PROGRAM} ${WRKSRC}/mango ${PREFIX}/bin +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 .include <bsd.port.mk> |