Changeset View
Changeset View
Standalone View
Standalone View
head/devel/gdb/Makefile
# Created by: Steven Kreuzer <skreuzer@FreeBSD.org> | # Created by: Steven Kreuzer <skreuzer@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= gdb | PORTNAME= gdb | ||||
PORTVERSION= 8.1.1 | PORTVERSION= 8.2 | ||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MASTER_SITES= GNU | MASTER_SITES= GNU | ||||
MAINTAINER= pizzamig@FreeBSD.org | MAINTAINER= pizzamig@FreeBSD.org | ||||
COMMENT= GNU GDB of newer version than comes with the system | COMMENT= GNU GDB of newer version than comes with the system | ||||
LICENSE= GPLv3 | LICENSE= GPLv3 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING3 | LICENSE_FILE= ${WRKSRC}/COPYING3 | ||||
# untested on sparc64, might work | # untested on sparc64, might work | ||||
ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 mips powerpc powerpc64 | ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 mips powerpc powerpc64 | ||||
LIB_DEPENDS= libmpfr.so:math/mpfr | LIB_DEPENDS= libmpfr.so:math/mpfr | ||||
TEST_DEPENDS= runtest:misc/dejagnu | TEST_DEPENDS= runtest:misc/dejagnu | ||||
TEST_TARGET= check | TEST_TARGET= check | ||||
# XXX: This should be compiler:c++11-lib as GDB doesn't really require | # XXX: This should be compiler:c++11-lib as GDB doesn't really require | ||||
# C++14. However, clang in 10.3 crashes while building this port. | # C++14. However, clang in 10.3 crashes while building this port. | ||||
# Requiring C++14 forces 10.3 to use an external version of clang while | # Requiring C++14 forces 10.3 to use an external version of clang while | ||||
# still using the base system clang on 11.0 and later. | # still using the base system clang on 11.0 and later. | ||||
USES= compiler:c++14-lang cpe gmake libtool tar:xz | USES= compiler:c++14-lang cpe gettext-runtime gmake libtool tar:xz | ||||
USE_CSTD= gnu89 | USE_CSTD= gnu89 | ||||
CPE_VENDOR= gnu | CPE_VENDOR= gnu | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ENV= CONFIGURED_M4=m4 CONFIGURED_BISON=byacc | CONFIGURE_ENV= CONFIGURED_M4=m4 CONFIGURED_BISON=byacc | ||||
CONFIGURE_ARGS= --program-suffix=${PORTVERSION:S/.//g} \ | CONFIGURE_ARGS= --program-suffix=${PORTVERSION:S/.//g} \ | ||||
--enable-targets=all --enable-64-bit-bfd \ | --enable-targets=all --enable-64-bit-bfd \ | ||||
--with-gdb-datadir=${PREFIX}/share/gdb${PORTVERSION:S/.//g} \ | --with-gdb-datadir=${PREFIX}/share/gdb${PORTVERSION:S/.//g} \ | ||||
--with-separate-debug-dir=/usr/lib/debug \ | --with-separate-debug-dir=/usr/lib/debug \ | ||||
${ICONV_CONFIGURE_ARG} \ | ${ICONV_CONFIGURE_ARG} \ | ||||
--with-expat=yes --with-libexpat-prefix=${LOCALBASE} \ | --with-expat=yes --with-libexpat-prefix=${LOCALBASE} \ | ||||
--without-libunwind-ia64 --with-system-zlib | --without-libunwind-ia64 --with-system-zlib | ||||
CFLAGS:= ${CFLAGS:C/ +$//} # blanks at EOL creep in sometimes | CFLAGS:= ${CFLAGS:C/ +$//} # blanks at EOL creep in sometimes | ||||
CFLAGS+= -DRL_NO_COMPAT -Wno-unused-function -Wno-unused-variable | CFLAGS+= -DRL_NO_COMPAT -Wno-unused-function -Wno-unused-variable | ||||
CFLAGS+= -Wno-unknown-warning-option | CFLAGS+= -Wno-unknown-warning-option | ||||
EXCLUDE= dejagnu expect sim texinfo intl | EXCLUDE= dejagnu expect sim texinfo intl | ||||
EXTRACT_AFTER_ARGS= ${EXCLUDE:S/^/--exclude /} | EXTRACT_AFTER_ARGS= ${EXCLUDE:S/^/--exclude /} | ||||
EXTRA_PATCHES= ${FILESDIR}/commit-d2176225dc \ | EXTRA_PATCHES= ${FILESDIR}/commit-8aa0243d54 | ||||
${FILESDIR}/commit-b999e2038d \ | |||||
${FILESDIR}/commit-262f62f57d \ | |||||
${FILESDIR}/commit-92fce24de2 \ | |||||
${FILESDIR}/commit-2d97a5d9d3 \ | |||||
${FILESDIR}/commit-906b4aac4c \ | |||||
${FILESDIR}/commit-f169cfdc08 \ | |||||
${FILESDIR}/commit-12279366d7 \ | |||||
${FILESDIR}/commit-386a867618 \ | |||||
${FILESDIR}/commit-7efba073e2 | |||||
LIB_DEPENDS+= libexpat.so:textproc/expat2 | LIB_DEPENDS+= libexpat.so:textproc/expat2 | ||||
VER= ${PORTVERSION:S/.//g} | VER= ${PORTVERSION:S/.//g} | ||||
PLIST_SUB= VER=${VER} | PLIST_SUB= VER=${VER} | ||||
OPTIONS_DEFINE= DEBUG GDB_LINK GUILE KGDB PYTHON TUI | OPTIONS_DEFINE= DEBUG GDB_LINK GUILE KGDB PYTHON TUI | ||||
OPTIONS_DEFAULT= GDB_LINK KGDB PYTHON TUI PORT_READLINE PORT_ICONV SYSTEM_ZLIB | OPTIONS_DEFAULT= GDB_LINK KGDB PYTHON TUI PORT_READLINE PORT_ICONV SYSTEM_ZLIB | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |