sthen 25f0e460f2 Add COMPILER lines to c++ ports which currently use the default. Adjust
some existing COMPILER lines with arch restrictions etc. In the usual
case this is now using "COMPILER = base-clang ports-gcc base-gcc" on
ports with c++ libraries in WANTLIB.

This is basically intended to be a noop on architectures using clang
as the system compiler, but help with other architectures where we
currently have many ports knocked out due to building with an unsuitable
compiler -

- some ports require c++11/newer so the GCC version in base that is used
on these archirtectures is too old.

- some ports have conflicts where an executable is built with one compiler
(e.g. gcc from base) but a library dependency is built with a different
one (e.g. gcc from ports), resulted in mixing incompatible libraries in the
same address space.

devel/gmp is intentionally skipped as it's on the path to building gcc -
the c++ library there is unused in ports (and not built by default upstream)
so intending to disable building gmpcxx in a future commit.
2018-10-24 14:27:57 +00:00

57 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.77 2018/10/24 14:28:00 sthen Exp $
COMMENT= Data Display Debugger, graphical front-end for GDB, etc
DISTNAME= ddd-3.3.12
REVISION = 13
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=ddd/}
HOMEPAGE= https://www.gnu.org/software/ddd/
# GPLv2 / LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= ICE SM X11 Xaw Xau Xdmcp Xext Xmu Xpm Xt c m z ${COMPILER_LIBCXX} \
Xft Xrender expat fontconfig freetype iconv ncurses \
xcb jpeg png Xm
COMPILER = base-clang ports-gcc base-gcc
RUN_DEPENDS= devel/desktop-file-utils
LIB_DEPENDS= converters/libiconv \
x11/motif
TEST_IS_INTERACTIVE=x11
USE_GMAKE= Yes
AUTOCONF_VERSION=2.61
CONFIGURE_STYLE=autoconf
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
CXXFLAGS="${CXXFLAGS}"
MAKE_ENV+=MOTIFLIB='-L${LOCALBASE}/lib -lXm'
# needed for is_ppc_file() in ddd/filetype.C
.if ${MACHINE_ARCH} == "powerpc"
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
LIB_DEPENDS+= devel/libelf
WANTLIB += elf
.endif
SEPARATE_BUILD= Yes
CONFIGURE_ARGS= --with-readline-libraries=/usr/lib
MAKE_FLAGS= MAINTAINER="'${MAINTAINER}'"
FAKE_FLAGS= dddrootdir="${PREFIX}/share/ddd/" \
dddappdir="${PREFIX}/share/ddd/ddd/"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ddd
${INSTALL_DATA} ${WRKSRC}/doc/*.ps ${PREFIX}/share/doc/ddd
${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${PREFIX}/share/doc/ddd
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ddd/html
${INSTALL_DATA} ${WRKSRC}/doc/html/* ${PREFIX}/share/doc/ddd/html
.include <bsd.port.mk>