if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}. This commit doesn't change any versions currently used; it may be that some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those should be cleaned up in the course of updating ports where possible. Python module ports providing py3-* packages should still use FLAVOR=python3 so that we don't have a mixture of dependencies some using ${MODPY_FLAVOR} and others not.
47 lines
927 B
Makefile
47 lines
927 B
Makefile
# $OpenBSD: Makefile,v 1.71 2021/02/23 19:39:14 sthen Exp $
|
|
|
|
COMMENT= GNU debugger
|
|
CATEGORIES= devel
|
|
|
|
DISTNAME= gdb-7.12.1
|
|
REVISION= 15
|
|
|
|
HOMEPAGE= https://www.gnu.org/software/gdb/
|
|
|
|
MAINTAINER= Pascal Stumpf <pascal@stumpf.co>
|
|
|
|
# GPLv2 and GPLv3
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=gdb/}
|
|
DIST_SUBDIR= gdb
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/gdb
|
|
|
|
WANTLIB = c expat kvm m curses pthread ${MODPY_WANTLIB} ${COMPILER_LIBCXX} util
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
SEPARATE_BUILD= Yes
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS= --program-prefix=e \
|
|
--disable-nls \
|
|
--disable-sim \
|
|
--without-guile \
|
|
--without-lzma \
|
|
--enable-target=all \
|
|
--with-python=${MODPY_BIN}
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
MODULES += lang/python
|
|
|
|
LIB_DEPENDS += ${MODPY_LIB_DEPENDS}
|
|
TEST_DEPENDS += devel/dejagnu
|
|
|
|
post-install:
|
|
${MODPY_BIN} -m compileall ${PREFIX}/share/gdb/python
|
|
|
|
.include <bsd.port.mk>
|