2001-03-31 09:04:58 +00:00
|
|
|
# ex:ts=8
|
2004-10-20 19:37:48 +00:00
|
|
|
# Ports collection makefile for: GDB 6
|
2001-03-31 09:04:58 +00:00
|
|
|
# Date created: 30 March 2001
|
|
|
|
# Whom: David O'Brien <obrien@NUXI.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2002-01-27 08:04:23 +00:00
|
|
|
PORTNAME= gdb
|
2007-06-27 17:31:13 +00:00
|
|
|
PORTVERSION= 6.6
|
2008-06-06 14:17:21 +00:00
|
|
|
PORTREVISION= 1
|
2001-03-31 09:04:58 +00:00
|
|
|
CATEGORIES= devel
|
2007-06-27 17:31:13 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:S,$,:gdb,} \
|
|
|
|
http://aldan.algebra.com/~mi/:gdbtk
|
|
|
|
MASTER_SITE_SUBDIR=gdb/:gdb
|
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:gdb
|
2002-10-09 15:55:14 +00:00
|
|
|
|
2007-06-27 17:31:13 +00:00
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
|
|
|
COMMENT= GNU GDB of newer version than comes with the system
|
2004-05-13 04:28:38 +00:00
|
|
|
|
2007-06-28 22:04:31 +00:00
|
|
|
OPTIONS= INSIGHT "Build the Tcl/Tk GUI (experimental!)" off
|
2001-03-31 09:04:58 +00:00
|
|
|
|
2002-10-12 18:58:08 +00:00
|
|
|
USE_BZIP2= yes
|
2001-03-31 09:04:58 +00:00
|
|
|
USE_GMAKE= yes
|
2007-06-27 17:31:13 +00:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_ICONV= yes
|
2001-03-31 09:04:58 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2007-06-27 17:31:13 +00:00
|
|
|
CONFIGURE_ENV+= CONFIGURED_M4=m4 CONFIGURED_BISON=byacc
|
|
|
|
CONFIGURE_ARGS= --program-suffix=${PORTVERSION:S/.//g} \
|
|
|
|
--enable-target=all \
|
2007-06-28 22:04:31 +00:00
|
|
|
--enable-tui --with-libiconv-prefix=${LOCALBASE}
|
2007-06-27 17:31:13 +00:00
|
|
|
CFLAGS:= ${CFLAGS:C/ +$//} # blanks at EOL creep in sometimes
|
|
|
|
CFLAGS+= -DRL_NO_COMPAT
|
|
|
|
EXCLUDE= dejagnu expect readline sim texinfo intl
|
|
|
|
EXTRACT_AFTER_ARGS=| ${TAR} -xf - ${EXCLUDE:S/^/--exclude /}
|
|
|
|
VER= ${PORTVERSION:S/.//}
|
|
|
|
PLIST_SUB= VER=${VER}
|
|
|
|
MAN1= gdb${VER}.1
|
|
|
|
|
|
|
|
#ONLY_FOR_ARCHS= i386 amd64 # untested elsewhere, might work
|
2004-03-24 23:12:34 +00:00
|
|
|
|
2004-03-25 00:03:28 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-06-27 17:31:13 +00:00
|
|
|
.if defined(WITH_INSIGHT)
|
|
|
|
LIB_DEPENDS= itk:${PORTSDIR}/x11-toolkits/itk
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/iwidgets:${PORTSDIR}/x11-toolkits/iwidgets
|
|
|
|
DISTFILES+= gdbtk-6.6${EXTRACT_SUFX}:gdbtk
|
|
|
|
PLIST_SUB+= INSIGHT=''
|
2007-06-27 20:41:31 +00:00
|
|
|
EXTRA_PATCHES= ${FILESDIR}/itcl33-patch
|
2007-06-27 17:31:13 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-gdbtk \
|
|
|
|
--with-tclconfig=${LOCALBASE}/lib/tcl8.4 \
|
|
|
|
--with-tclinclude=${LOCALBASE}/include/tcl8.4/generic \
|
|
|
|
--with-tkconfig=${LOCALBASE}/lib/tk8.4 \
|
|
|
|
--with-tkinclude=${LOCALBASE}/include/tk8.4/generic \
|
|
|
|
--with-itclconfig=${LOCALBASE}/lib/itcl3.3 \
|
|
|
|
--with-itkconfig=${LOCALBASE}/lib/itk3.3
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
#
|
2007-06-28 22:04:31 +00:00
|
|
|
# The Tk-based GUI (Insight) is patched to work with [incr tcl]
|
|
|
|
# version 3.3 and is currently experimental. Bug reports should
|
|
|
|
# be accompanied by patches.
|
2007-06-27 17:31:13 +00:00
|
|
|
#
|
2004-11-18 08:33:08 +00:00
|
|
|
|
2007-06-27 17:31:13 +00:00
|
|
|
pre-configure:
|
|
|
|
${MKDIR} ${WRKSRC}/itcl/generic
|
|
|
|
${LN} -s ${LOCALBASE}/include/it*3.3/*.h ${WRKSRC}/itcl/generic/
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= INSIGHT='@comment '
|
2004-05-08 06:44:58 +00:00
|
|
|
.endif
|
|
|
|
|
2004-03-25 00:03:28 +00:00
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
|
|
|
|
.endif
|
|
|
|
|
2004-03-24 23:12:34 +00:00
|
|
|
post-patch:
|
2007-06-27 17:31:13 +00:00
|
|
|
@${REINPLACE_CMD} -e 's/$$/ [GDB v${PORTVERSION} for FreeBSD]/' \
|
2004-05-13 04:28:38 +00:00
|
|
|
${WRKSRC}/gdb/version.in
|
2004-03-25 02:22:20 +00:00
|
|
|
@${REINPLACE_CMD} -e 's/^READLINE/#READLINE/' \
|
|
|
|
-e 's/^readline/#readline/' \
|
2007-06-29 13:14:33 +00:00
|
|
|
-e 's,^LIBICONV =.*,LIBICONV=-L${LOCALBASE}/lib -liconv,' \
|
2004-03-25 02:22:20 +00:00
|
|
|
${WRKSRC}/gdb/Makefile.in
|
2004-05-05 07:21:16 +00:00
|
|
|
${ECHO} 'READLINE = -lreadline' >> ${WRKSRC}/gdb/Makefile.in
|
|
|
|
|
2001-03-31 09:04:58 +00:00
|
|
|
do-install:
|
2007-06-27 17:31:13 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb ${PREFIX}/bin/gdb${VER}
|
|
|
|
${LN} ${PREFIX}/bin/gdb${VER} ${PREFIX}/bin/gdbtui${VER}
|
2007-06-28 22:04:31 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/gdb/gdb.1 ${MAN1PREFIX}/man/man1/gdb${VER}.1
|
2007-06-27 17:31:13 +00:00
|
|
|
.if defined(WITH_INSIGHT)
|
|
|
|
${LN} ${PREFIX}/bin/gdb${VER} ${PREFIX}/bin/insight
|
|
|
|
${MKDIR} ${PREFIX}/share/redhat/gui
|
|
|
|
${CP} -p ${WRKSRC}/libgui/library/*.tcl \
|
|
|
|
${WRKSRC}/libgui/library/tclIndex \
|
|
|
|
${PREFIX}/share/redhat/gui/
|
|
|
|
${MKDIR} ${PREFIX}/lib/insight1.0
|
|
|
|
${CP} -Rp ${WRKSRC}/gdb/gdbtk/library/*.tcl \
|
|
|
|
${WRKSRC}/gdb/gdbtk/library/*.itcl \
|
|
|
|
${WRKSRC}/gdb/gdbtk/library/*.ith \
|
|
|
|
${WRKSRC}/gdb/gdbtk/library/*.itb \
|
|
|
|
${WRKSRC}/gdb/gdbtk/library/help \
|
|
|
|
${WRKSRC}/gdb/gdbtk/library/images* \
|
|
|
|
${WRKSRC}/gdb/gdbtk/library/tclIndex \
|
|
|
|
${PREFIX}/lib/insight1.0
|
|
|
|
.endif
|
2002-03-15 19:12:51 +00:00
|
|
|
|
2004-03-25 00:03:28 +00:00
|
|
|
.include <bsd.port.post.mk>
|