FreeBSD Port: kdevelop-3.0.0

Andy Fawcett andy at athame.co.uk
Wed Mar 3 12:47:48 PST 2004


On Wednesday 03 March 2004 15:53, Will Andrews wrote:
> On Wed, Mar 03, 2004 at 12:16:14PM +0100, Markus Brueffer wrote:
> > On Wednesday 03 March 2004 10:31, Frank wrote:
> > > I have installed KDevelop 3.0.0 using cvsup. (self compiled)
> > > Now i have the problem that i cant compile any projects i have
> > > created for this reason:
> >
> > Until the port is fixed (see Andy's post), you can make it work by
> > using some symlinks:
> >
> > Create a ~/bin in you homedir and add it to your $PATH. Within
> > ~/bin make symlinks to all needed auto* -tools. This is how I use
> > it and how it works:
> >
> > aclocal -> /usr/local/bin/aclocal17
> > autoconf -> /usr/local/bin/autoconf257
> > autoheader -> /usr/local/bin/autoheader257
> > autom4te -> /usr/local/bin/autom4te257
> > automake -> /usr/local/bin/automake17
> > autoreconf -> /usr/local/bin/autoreconf257
> > autoscan -> /usr/local/bin/autoscan257
> > autoupdate -> /usr/local/bin/autoupdate257
> > ifnames -> /usr/local/bin/ifnames257
>
> http://firepipe.net/stuff/setup-acam-fbsd.sh

Yep, that works, but please try this if you can

save the attached shar out

cd /usr/ports/devel/kdevelop
sh <path/to/shar>
make
make deinstall
make reinstall
make clean :)

run kdevelop
create a brand new project
try to build it.

I've tested this here locally, with a simple KDE project, and it detects 
autofuck tools correctly, even if I have several versions of each 
installed, including older than required.

Please, give me feedback, kde@ would really like to get this in the next 
release of kdevelop.

The projects it creates should be portable to other unix systems too. 
I'd like feedback on that too, if possible.

Cheers,

Andy
(one of Will's minions)

-- 
Andy Fawcett                                     | andy at athame.co.uk
                                                 | tap at kde.org
"In an open world without walls and fences,      | tap at lspace.org
  we wouldn't need Windows and Gates."  -- anon  | tap at fruitsalad.org
-------------- next part --------------
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	.
#	./Makefile
#	./files
#	./files/patch-embedded-detect-autoconf.sh
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for:	kdevelop
X# Date created:		12 Aug 1999
X# Whom:			Will Andrews <andrews at technologist.com>
X#
X# $FreeBSD: ports/devel/kdevelop/Makefile,v 1.57 2004/02/07 09:30:22 lofi Exp $
X#
X
XPORTNAME=	kdevelop
XPORTVERSION=	3.0.0
XCATEGORIES?=	devel kde
XMASTER_SITES=	${MASTER_SITE_KDE}
XMASTER_SITE_SUBDIR=	stable/${KDE_VERSION:S/.0//}/src
X# DISTNAME=	${KDE_DISTNAME}
XDIST_SUBDIR=	KDE
X
XMAINTAINER?=	kde at FreeBSD.org
XCOMMENT=	Powerful IDE for developing KDE/Qt-based apps
X
XBUILD_DEPENDS=  msgfmt:${PORTSDIR}/devel/gettext
XLIB_DEPENDS=    db41:${PORTSDIR}/databases/db41
XRUN_DEPENDS=	extractrc:${PORTSDIR}/devel/kdesdk3 \
X		gmake:${PORTSDIR}/devel/gmake \
X		autoconf257:${PORTSDIR}/devel/autoconf257 \
X		automake17:${PORTSDIR}/devel/automake17
X.if defined(WITH_OPTIONAL_DEPENDS)
XRUN_DEPENDS+=	kiconedit:${PORTSDIR}/graphics/kdegraphics3 \
X		ark:${PORTSDIR}/misc/kdeutils3 \
X		glimpse:${PORTSDIR}/textproc/glimpse \
X		a2ps:${PORTSDIR}/print/a2ps-letter
X.endif
X
X# KDE_DISTNAME=		${PORTNAME}-${PORTVERSION}_for_KDE_3.1
XUSE_KDELIBS_VER=3
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS+= --with-qtdoc-dir=${X11BASE}/share/doc/qt/html
XUSE_REINPLACE=	yes
X
X.include <bsd.port.pre.mk>
X.include "${PORTSDIR}/x11/kde3/Makefile.kde"
X
Xpre-everything::
X.if !defined(WITH_OPTIONAL_DEPENDS)
X	@${ECHO_MSG}
X	@${ECHO_MSG} "You may define WITH_OPTIONAL_DEPENDS (make WITH_OPTIONAL_DEPENDS=YES)"
X	@${ECHO_MSG} "to automatically build the suggested programs to compliment kdevelop."
X	@${ECHO_MSG}
X.endif
X
Xpost-patch:
X	${TOUCH} -t 200401230000 ${WRKSRC}/Makefile.am.in
X
Xpre-configure:
X	${REINPLACE_CMD} -e 's at extractrc@@g' ${WRKSRC}/Makefile.in
X	${REINPLACE_CMD} -e 's@$$CXXFLAGS $$X_CFLAGS -ldb at -I/usr/local/include/db41 $$CXXFLAGS $$X_CFLAGS -L/usr/local/lib -ldb41@' ${WRKSRC}/configure
X	${REINPLACE_CMD} -e 's at INCLUDES = $$(all_includes)@INCLUDES = -I/usr/local/include/db41 $$(all_includes)@' ${WRKSRC}/lib/catalog/Makefile.in
X	${REINPLACE_CMD} -e 's at libkdevcatalog_la_LIBADD = -ldb at libkdevcatalog_la_LIBADD = -L/usr/local/lib -ldb41@' ${WRKSRC}/lib/catalog/Makefile.in
X	${REINPLACE_CMD} -e 's@^all_includes = @all_includes = -I/usr/local/include/db41 @' ${WRKSRC}/languages/cpp/Makefile.in
X	${REINPLACE_CMD} -e 's@^all_includes = @all_includes = -I/usr/local/include/db41 @' ${WRKSRC}/languages/java/Makefile.in
X	${REINPLACE_CMD} -e 's@^all_includes = @all_includes = -I/usr/local/include/db41 @' ${WRKSRC}/languages/pascal/Makefile.in
X
X.include <bsd.port.post.mk>
END-of-./Makefile
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-embedded-detect-autoconf.sh
sed 's/^X//' >./files/patch-embedded-detect-autoconf.sh << 'END-of-./files/patch-embedded-detect-autoconf.sh'
X--- parts/appwizard/common/admin/detect-autoconf.sh.orig	Wed Mar 12 02:32:02 2003
X+++ parts/appwizard/common/admin/detect-autoconf.sh	Wed Mar  3 22:32:24 2004
X@@ -13,53 +13,75 @@
X # our includer.  The repeated type calls are not that expensive.
X checkAutoconf()
X {
X-  if test -x "`$WHICH autoconf-2.5x`" ; then	
X+  if test -x "`$WHICH autoconf-2.5x 2>/dev/null`" ; then	
X     AUTOCONF="`$WHICH autoconf-2.5x`"
X-  elif test -x "`$WHICH autoconf-2.54`" ; then
X+  elif test -x "`$WHICH autoconf-2.57 2>/dev/null`" ; then
X+    AUTOCONF="`$WHICH autoconf-2.57`"
X+  elif test -x "`$WHICH autoconf257 2>/dev/null`" ; then
X+    AUTOCONF="`$WHICH autoconf257`"
X+  elif test -x "`$WHICH autoconf-2.56 2>/dev/null`" ; then
X+    AUTOCONF="`$WHICH autoconf-2.56`"
X+  elif test -x "`$WHICH autoconf-2.55 2>/dev/null`" ; then
X+    AUTOCONF="`$WHICH autoconf-2.55`"
X+  elif test -x "`$WHICH autoconf-2.54 2>/dev/null`" ; then
X     AUTOCONF="`$WHICH autoconf-2.54`"
X-  elif test -x "`$WHICH autoconf-2.53`" ; then
X+  elif test -x "`$WHICH autoconf-2.53 2>/dev/null`" ; then
X     AUTOCONF="`$WHICH autoconf-2.53`"
X-  elif test -x "`$WHICH autoconf-2.53a`" ; then
X+  elif test -x "`$WHICH autoconf-2.53a 2>/dev/null`" ; then
X     AUTOCONF="`$WHICH autoconf-2.53a`"
X-  elif test -x "`$WHICH autoconf-2.52`" ; then
X+  elif test -x "`$WHICH autoconf-2.52 2>/dev/null`" ; then
X     AUTOCONF="`$WHICH autoconf-2.52`"
X-  elif test -x "`$WHICH autoconf2.50`" ; then
X+  elif test -x "`$WHICH autoconf2.50 2>/dev/null`" ; then
X     AUTOCONF="`$WHICH autoconf2.50`"
X   fi
X }
X 
X checkAutoheader()
X {
X-  if test -x "`$WHICH autoheader-2.5x`" ; then
X+  if test -x "`$WHICH autoheader-2.5x 2>/dev/null`" ; then
X     AUTOHEADER="`$WHICH autoheader-2.5x`"
X     AUTOM4TE="`$WHICH autom4te-2.5x`"
X-  elif test -x "`$WHICH autoheader-2.54`" ; then
X+  elif test -x "`$WHICH autoheader-2.57 2>/dev/null`" ; then
X+    AUTOHEADER="`$WHICH autoheader-2.57`"
X+    AUTOM4TE="`$WHICH autom4te-2.57`"
X+  elif test -x "`$WHICH autoheader257 2>/dev/null`" ; then
X+    AUTOHEADER="`$WHICH autoheader257`"
X+    AUTOM4TE="`$WHICH autom4te257`"
X+  elif test -x "`$WHICH autoheader-2.56 2>/dev/null`" ; then
X+    AUTOHEADER="`$WHICH autoheader-2.56`"
X+    AUTOM4TE="`$WHICH autom4te-2.56`"
X+  elif test -x "`$WHICH autoheader-2.55 2>/dev/null`" ; then
X+    AUTOHEADER="`$WHICH autoheader-2.55`"
X+    AUTOM4TE="`$WHICH autom4te-2.55`"
X+  elif test -x "`$WHICH autoheader-2.54 2>/dev/null`" ; then
X     AUTOHEADER="`$WHICH autoheader-2.54`"
X     AUTOM4TE="`$WHICH autom4te-2.54`"
X-  elif test -x "`$WHICH autoheader-2.53`" ; then
X+  elif test -x "`$WHICH autoheader-2.53 2>/dev/null`" ; then
X     AUTOHEADER="`$WHICH autoheader-2.53`"
X     AUTOM4TE="`$WHICH autom4te-2.53`"
X-  elif test -x "`$WHICH autoheader-2.53a`" ; then
X+  elif test -x "`$WHICH autoheader-2.53a 2>/dev/null`" ; then
X     AUTOHEADER="`$WHICH autoheader-2.53a`"
X     AUTOM4TE="`$WHICH autom4te-2.53a`"
X-  elif test -x "`$WHICH autoheader-2.52`" ; then
X+  elif test -x "`$WHICH autoheader-2.52 2>/dev/null`" ; then
X     AUTOHEADER="`$WHICH autoheader-2.52`"
X-  elif test -x "`$WHICH autoheader2.50`" ; then
X+  elif test -x "`$WHICH autoheader2.50 2>/dev/null`" ; then
X     AUTOHEADER="`$WHICH autoheader2.50`"
X   fi
X }
X 
X checkAutomakeAclocal ()
X {
X-  if test -z "$UNSERMAKE"; then
X-    if test -x "`$WHICH automake-1.6`" ; then
X-      AUTOMAKE="`$WHICH automake-1.6`"
X-      ACLOCAL="`$WHICH aclocal-1.6`"
X-    elif test -x "`$WHICH automake-1.7`" ; then
X-      AUTOMAKE="`$WHICH automake-1.7`"
X-      ACLOCAL="`$WHICH aclocal-1.7`"
X-    fi
X-  else
X+ if test -x "`$WHICH automake-1.6 2>/dev/null`" ; then
X+    AUTOMAKE="`$WHICH automake-1.6`"
X+    ACLOCAL="`$WHICH aclocal-1.6`"
X+  elif test -x "`$WHICH automake-1.7 2>/dev/null`" ; then
X+    AUTOMAKE="`$WHICH automake-1.7`"
X+    ACLOCAL="`$WHICH aclocal-1.7`"
X+  elif test -x "`$WHICH automake17 2>/dev/null`" ; then
X+    AUTOMAKE="`$WHICH automake17`"
X+    ACLOCAL="`$WHICH aclocal17`"
X+  fi
X+  if test -n "$UNSERMAKE"; then 
X      AUTOMAKE="$UNSERMAKE"
X   fi
X }
END-of-./files/patch-embedded-detect-autoconf.sh
exit



More information about the freebsd-ports mailing list