2000-02-12 22:50:42 +01:00
|
|
|
# New ports collection makefile for: kdevelop
|
|
|
|
# Date created: 12 Aug 1999
|
|
|
|
# Whom: Will Andrews <andrews@technologist.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-11 23:30:15 +02:00
|
|
|
PORTNAME= kdevelop
|
2009-08-15 03:56:58 +02:00
|
|
|
PORTVERSION= 3.5.4
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 2
|
2001-08-30 20:56:50 +02:00
|
|
|
CATEGORIES?= devel kde
|
2001-03-03 14:45:27 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_KDE}
|
2007-07-04 12:25:00 +02:00
|
|
|
MASTER_SITE_SUBDIR= stable/${KDE_VERSION}/src
|
2004-02-05 02:23:10 +01:00
|
|
|
# DISTNAME= ${KDE_DISTNAME}
|
2001-09-10 22:22:28 +02:00
|
|
|
DIST_SUBDIR= KDE
|
2000-02-12 22:50:42 +01:00
|
|
|
|
2001-09-01 10:35:47 +02:00
|
|
|
MAINTAINER?= kde@FreeBSD.org
|
2006-01-08 20:32:36 +01:00
|
|
|
COMMENT= IDE for a wide variety of programming tasks
|
2000-02-12 22:50:42 +01:00
|
|
|
|
2004-04-07 17:35:46 +02:00
|
|
|
BUILD_DEPENDS= cervisia:${PORTSDIR}/devel/kdesdk3 \
|
2007-03-13 20:13:51 +01:00
|
|
|
dot:${PORTSDIR}/graphics/graphviz \
|
2004-04-07 17:35:46 +02:00
|
|
|
msgfmt:${PORTSDIR}/devel/gettext
|
2007-03-13 20:13:51 +01:00
|
|
|
LIB_DEPENDS= svn_client-1.0:${PORTSDIR}/devel/subversion
|
2003-10-17 08:09:39 +02:00
|
|
|
RUN_DEPENDS= extractrc:${PORTSDIR}/devel/kdesdk3 \
|
2007-07-04 17:58:02 +02:00
|
|
|
gdb66:${PORTSDIR}/devel/gdb6 \
|
2007-09-10 11:11:46 +02:00
|
|
|
gmake:${PORTSDIR}/devel/gmake
|
2005-06-16 19:24:27 +02:00
|
|
|
|
2000-04-17 02:18:05 +02:00
|
|
|
.if defined(WITH_OPTIONAL_DEPENDS)
|
2009-08-15 03:56:58 +02:00
|
|
|
|
|
|
|
PAPERSIZE?= letter
|
|
|
|
|
|
|
|
.if ${PAPERSIZE} != a4 && ${PAPERSIZE} != letter && ${PAPERSIZE} != letterdj
|
|
|
|
.BEGIN:
|
|
|
|
@${ECHO_CMD}
|
|
|
|
@${ECHO_CMD} "PAPERSIZE incorrect value: ${PAPERSIZE}."
|
|
|
|
@${ECHO_CMD}
|
|
|
|
@${ECHO_CMD} "Must specify PAPERSIZE as one of a4, letter, or letterdj."
|
|
|
|
@${ECHO_CMD} "letterdj allows a slightly larger margins for DeskJets."
|
|
|
|
@${FALSE}
|
|
|
|
.endif
|
|
|
|
|
2007-03-13 20:13:51 +01:00
|
|
|
RUN_DEPENDS+= ark:${PORTSDIR}/misc/kdeutils3 \
|
2009-08-15 03:56:58 +02:00
|
|
|
a2ps:${PORTSDIR}/print/a2ps-${PAPERSIZE} \
|
2007-03-13 20:13:51 +01:00
|
|
|
dot:${PORTSDIR}/graphics/graphviz \
|
2000-03-07 17:55:15 +01:00
|
|
|
glimpse:${PORTSDIR}/textproc/glimpse \
|
2007-03-13 20:13:51 +01:00
|
|
|
kiconedit:${PORTSDIR}/graphics/kdegraphics3
|
2000-03-07 17:55:15 +01:00
|
|
|
.endif
|
|
|
|
|
2004-02-05 02:23:10 +01:00
|
|
|
# KDE_DISTNAME= ${PORTNAME}-${PORTVERSION}_for_KDE_3.1
|
2004-06-04 19:29:38 +02:00
|
|
|
|
2007-03-13 20:13:51 +01:00
|
|
|
USE_LDCONFIG= yes
|
2002-06-15 18:16:32 +02:00
|
|
|
USE_KDELIBS_VER=3
|
2001-01-28 04:56:18 +01:00
|
|
|
USE_BZIP2= yes
|
2000-02-12 22:50:42 +01:00
|
|
|
USE_GMAKE= yes
|
2007-03-13 20:13:51 +01:00
|
|
|
USE_BDB= yes
|
2009-08-15 03:56:58 +02:00
|
|
|
USE_AUTOTOOLS= libtool:22 autotools:run
|
2007-03-13 20:13:51 +01:00
|
|
|
_NO_KDE_FINAL= yes
|
2008-08-18 11:22:07 +02:00
|
|
|
CONFIGURE_ARGS+=--with-qtdoc-dir=${LOCALBASE}/share/doc/qt/html \
|
2007-03-13 20:13:51 +01:00
|
|
|
--with-db-includedir=${BDB_INCLUDE_DIR} \
|
|
|
|
--with-db-libdir=${BDB_LIB_DIR} --with-db-lib=${BDB_LIB_NAME} \
|
2006-01-08 20:32:36 +01:00
|
|
|
--with-apr-config=${LOCALBASE}/bin/apr-1-config \
|
|
|
|
--with-apu-config=${LOCALBASE}/bin/apu-1-config \
|
2007-07-04 12:25:00 +02:00
|
|
|
--with-svn-include=${LOCALBASE}/include/subversion-1 \
|
2006-01-08 20:32:36 +01:00
|
|
|
--with-svn-lib=${LOCALBASE}/lib \
|
|
|
|
--with-neon-config=${LOCALBASE}/bin/neon-config
|
|
|
|
|
2004-08-30 21:55:42 +02:00
|
|
|
.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
|
2003-02-22 01:30:38 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2000-02-12 22:50:42 +01:00
|
|
|
|
2001-03-26 23:21:39 +02:00
|
|
|
pre-everything::
|
2000-04-17 02:18:05 +02:00
|
|
|
.if !defined(WITH_OPTIONAL_DEPENDS)
|
2001-01-28 04:56:18 +01:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "You may define WITH_OPTIONAL_DEPENDS (make WITH_OPTIONAL_DEPENDS=YES)"
|
2004-08-02 13:23:36 +02:00
|
|
|
@${ECHO_MSG} "to automatically build the suggested programs to complement kdevelop."
|
2001-01-28 04:56:18 +01:00
|
|
|
@${ECHO_MSG}
|
2000-02-12 22:50:42 +01:00
|
|
|
.endif
|
|
|
|
|
2004-02-05 02:23:10 +01:00
|
|
|
post-patch:
|
2005-06-16 19:24:27 +02:00
|
|
|
@${TOUCH} -t 200401230000 ${WRKSRC}/Makefile.am.in
|
2005-07-10 19:47:41 +02:00
|
|
|
@${CP} ${WRKSRC}/admin/acinclude.m4.in ${WRKSRC}/parts/appwizard/common/admin/acinclude.m4.in
|
2004-02-05 02:23:10 +01:00
|
|
|
|
2004-11-13 00:09:31 +01:00
|
|
|
post-configure:
|
2005-06-16 19:24:27 +02:00
|
|
|
@${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g ; \
|
2005-07-10 19:47:41 +02:00
|
|
|
s|%%PREFIX%%|${PREFIX}|g ; \
|
|
|
|
s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' < ${FILESDIR}/kdevelop \
|
2005-06-16 19:24:27 +02:00
|
|
|
> ${WRKDIR}/kdevelop
|
2007-07-04 17:58:02 +02:00
|
|
|
${REINPLACE_CMD} -e 's|<gdbpath>.*</gdbpath>|<gdbpath></gdbpath>|g' \
|
|
|
|
-e 's|<dbgshell>.*</dbgshell>|<dbgshell></dbgshell>|g' \
|
|
|
|
${WRKSRC}/languages/cpp/app_templates/*/*.kdevelop
|
|
|
|
${REINPLACE_CMD} -e 's|"gdb"|"gdb66"|g' \
|
|
|
|
${WRKSRC}/languages/cpp/debugger/gdbcontroller.cpp
|
|
|
|
${REINPLACE_CMD} -E -e 's|(.*shell =.*)libtool|\1libtool --mode=execute|g' \
|
|
|
|
${WRKSRC}/languages/cpp/debugger/debuggerconfigwidget.cpp
|
2004-11-13 00:09:31 +01:00
|
|
|
|
2005-06-16 19:24:27 +02:00
|
|
|
post-install:
|
|
|
|
@${MV} ${PREFIX}/bin/kdevelop ${PREFIX}/bin/kdevelop-bin
|
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/kdevelop ${PREFIX}/bin
|
|
|
|
|
2003-02-22 01:30:38 +01:00
|
|
|
.include <bsd.port.post.mk>
|