Changeset View
Changeset View
Standalone View
Standalone View
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.2.1 | PORTVERSION= 8.3 | ||||
PORTREVISION= 3 | PORTREVISION= 0 | ||||
jhb: I left this so it's easy to bump in the future since we often do that. | |||||
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 | NOT_FOR_ARCHS= sparc64 | ||||
Done Inline ActionsI think it is simpler to just blacklist sparc64 at this point. jhb: I think it is simpler to just blacklist sparc64 at this point. | |||||
LIB_DEPENDS= libmpfr.so:math/mpfr | LIB_DEPENDS= libmpfr.so:math/mpfr | ||||
TEST_DEPENDS= runtest:misc/dejagnu | TEST_DEPENDS= runtest:misc/dejagnu | ||||
USES= compiler:c++11-lang cpe gmake libtool tar:xz | USES= compiler:c++11-lang cpe gmake libtool pkgconfig tar:xz | ||||
USE_PYTHON= flavors py3kplist | USE_PYTHON= flavors py3kplist | ||||
TEST_TARGET= check | TEST_TARGET= check | ||||
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-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-8aa0243d54 \ | EXTRA_PATCHES= ${FILESDIR}/commit-1163a4b7a3 \ | ||||
${FILESDIR}/commit-93579f6f90 \ | ${FILESDIR}/commit-dd6876c91c \ | ||||
${FILESDIR}/commit-2861ee4fde | ${FILESDIR}/commit-6e056c8178 \ | ||||
${FILESDIR}/commit-36c53a0262 \ | |||||
${FILESDIR}/commit-ef0bd2046f \ | |||||
${FILESDIR}/commit-945f3901b5 \ | |||||
${FILESDIR}/commit-f5424cfa7e \ | |||||
${FILESDIR}/commit-ce25aa57a3 \ | |||||
${FILESDIR}/commit-8399425f5f | |||||
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 NLS PYTHON TUI | OPTIONS_DEFINE= DEBUG GDB_LINK GUILE KGDB NLS PYTHON SOURCE_HIGHLIGHT TUI | ||||
OPTIONS_DEFAULT= GDB_LINK KGDB NLS PYTHON TUI PORT_READLINE PORT_ICONV SYSTEM_ZLIB | OPTIONS_DEFAULT= GDB_LINK KGDB NLS PYTHON SOURCE_HIGHLIGHT TUI | ||||
OPTIONS_DEFAULT+= PORT_READLINE PORT_ICONV SYSTEM_ZLIB | |||||
OPTIONS_SINGLE= READLINE ICONV ZLIB | OPTIONS_SINGLE= READLINE ICONV ZLIB | ||||
OPTIONS_SINGLE_READLINE= BUNDLED_READLINE PORT_READLINE | OPTIONS_SINGLE_READLINE= BUNDLED_READLINE PORT_READLINE | ||||
OPTIONS_SINGLE_ICONV= PORT_ICONV SYSTEM_ICONV | OPTIONS_SINGLE_ICONV= PORT_ICONV SYSTEM_ICONV | ||||
OPTIONS_SINGLE_ZLIB= BUNDLED_ZLIB SYSTEM_ZLIB | OPTIONS_SINGLE_ZLIB= BUNDLED_ZLIB SYSTEM_ZLIB | ||||
GDB_LINK_DESC= Create ${PREFIX}/bin/gdb symlink | GDB_LINK_DESC= Create ${PREFIX}/bin/gdb symlink | ||||
KGDB_DESC= Kernel Debugging Support | KGDB_DESC= Kernel Debugging Support | ||||
BUNDLED_READLINE_DESC= from gdb distfile | BUNDLED_READLINE_DESC= from gdb distfile | ||||
BUNDLED_ZLIB_DESC= from gdb distfile | BUNDLED_ZLIB_DESC= from gdb distfile | ||||
PORT_READLINE_DESC= from devel/readline port | PORT_READLINE_DESC= from devel/readline port | ||||
PORT_ICONV_DESC= use libiconv, with wider charset support | PORT_ICONV_DESC= use libiconv, with wider charset support | ||||
SOURCE_HIGHLIGHT_DESC= Source Code Styling | |||||
SYSTEM_ICONV_DESC= use libc iconv, with no wchar support | SYSTEM_ICONV_DESC= use libc iconv, with no wchar support | ||||
SYSTEM_ZLIB_DESC= use system zlib | SYSTEM_ZLIB_DESC= use system zlib | ||||
TUI_DESC= Text User Interface enabled | TUI_DESC= Text User Interface enabled | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
BUNDLED_READLINE_CONFIGURE_OFF= --with-system-readline | BUNDLED_READLINE_CONFIGURE_OFF= --with-system-readline | ||||
Done Inline ActionsFYI, this uses a space FWIW. :-P jhb: FYI, this uses a space FWIW. :-P | |||||
DEBUG_CFLAGS= -g | DEBUG_CFLAGS= -g | ||||
GUILE_CONFIGURE_WITH= guile | GUILE_CONFIGURE_WITH= guile | ||||
GUILE_USES= pkgconfig | GUILE_USES= pkgconfig | ||||
GUILE_LIB_DEPENDS= libguile-2.0.so:lang/guile2 | GUILE_LIB_DEPENDS= libguile-2.0.so:lang/guile2 | ||||
NLS_USES= gettext-runtime | NLS_USES= gettext-runtime | ||||
PORT_READLINE_USES= readline:port | PORT_READLINE_USES= readline:port | ||||
PORT_ICONV_USES= iconv:wchar_t | PORT_ICONV_USES= iconv:wchar_t | ||||
PYTHON_CONFIGURE_ON= --with-python=${PYTHON_CMD} | PYTHON_CONFIGURE_ON= --with-python=${PYTHON_CMD} | ||||
PYTHON_CONFIGURE_OFF= --without-python | PYTHON_CONFIGURE_OFF= --without-python | ||||
PYTHON_USES= python | PYTHON_USES= python | ||||
SOURCE_HIGHLIGHT_WITH= source-highlight | |||||
SOURCE_HIGHLIGHT_LIB_DEPENDS= \ | |||||
Not Done Inline ActionsThe linter is telling me that there is a space instead of a tab between the '=' and the dependency. A tab is needed here pizzamig: The linter is telling me that there is a space instead of a tab between the '=' and the… | |||||
Done Inline ActionsThe reason I did that is to keep the line with 80 columns (it's 78 right now with the space) because 'SOURCE_HIGHLIGHT_LIB_DEPENDS' is just really long. One approach might be to use a shorter option name like 'SOURCE_STYLE'? I could also just make it unconditional perhaps instead of an option? jhb: The reason I did that is to keep the line with 80 columns (it's 78 right now with the space)… | |||||
Done Inline ActionsNo rename is needed, you can do something like: SOURCE_HIGHLIGHT_LIB_DEPENDS=<tab>\ <tab>libsource-highlight.so:textproc/source-highlight pizzamig: No rename is needed, you can do something like:
```
SOURCE_HIGHLIGHT_LIB_DEPENDS=<tab>\… | |||||
Done Inline ActionsOk, will do. jhb: Ok, will do. | |||||
libsource-highlight.so:textproc/source-highlight | |||||
SYSTEM_ICONV_USES= iconv | SYSTEM_ICONV_USES= iconv | ||||
SYSTEM_ZLIB_WITH= system-zlib | SYSTEM_ZLIB_WITH= system-zlib | ||||
TUI_CONFIGURE_ENABLE= tui | TUI_CONFIGURE_ENABLE= tui | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if ${PORT_OPTIONS:MPYTHON} | .if ${PORT_OPTIONS:MPYTHON} | ||||
.if ${PYTHON_VER} != ${PYTHON_DEFAULT} | .if ${PYTHON_VER} != ${PYTHON_DEFAULT} | ||||
PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX} | PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX} | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MPYTHON} && exists(/usr/lib/libc++.so.1) | .if ${PORT_OPTIONS:MPYTHON} && exists(/usr/lib/libc++.so.1) | ||||
USE_GITHUB= nodefault | USE_GITHUB= nodefault | ||||
GH_ACCOUNT= bsdjhb:libcxx | GH_ACCOUNT= bsdjhb:libcxx | ||||
GH_PROJECT= libcxx-gdbpy:libcxx | GH_PROJECT= libcxx-gdbpy:libcxx | ||||
GH_TAGNAME= 99aae0c:libcxx | GH_TAGNAME= 229610a:libcxx | ||||
# Workaround USE_GITHUB preventing the default DISTFILES | # Workaround USE_GITHUB preventing the default DISTFILES | ||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} | ||||
PLIST_SUB+= LIBCXX="" | PLIST_SUB+= LIBCXX="" | ||||
.else | .else | ||||
PLIST_SUB+= LIBCXX="@comment " | PLIST_SUB+= LIBCXX="@comment " | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |
I left this so it's easy to bump in the future since we often do that.