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

75 lines
2.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.134 2018/10/24 14:28:09 sthen Exp $
COMMENT-main= scan ports and fingerprint stack of network hosts
COMMENT-zenmap= graphical frontend for nmap
MODPY_EGG_VERSION= 7.70
DISTNAME= nmap-${MODPY_EGG_VERSION}
PKGNAME-main= ${DISTNAME}
PKGNAME-zenmap= nmap-zenmap-${MODPY_EGG_VERSION}
REVISION-zenmap= 1
REVISION-main= 0
CATEGORIES= net security
MASTER_SITES= http://nmap.org/dist/
EXTRACT_SUFX= .tgz
HOMEPAGE= http://www.nmap.org/
MAINTAINER= David Carlier <devnexen@gmail.com>
# GPL (v2 only), with additional clarifications and exceptions, see COPYING
PERMIT_PACKAGE_CDROM= Yes
MULTI_PACKAGES= -main -zenmap
COMPILER = base-clang ports-gcc base-gcc
USE_GMAKE= Yes
MODLUA_SA= Yes
MODLUA_VERSION= 5.3
MODULES= lang/python \
lang/lua
CONFIGURE_STYLE=autoconf
AUTOCONF_VERSION=2.69
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${MODLUA_INCL_DIR}" \
CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${MODLUA_LIBDIR}"
# XXX uses internal copy of libpcap, previous attempts to deal with the
# bpf_timeval changes in base libpcap have not been entirely successful
CONFIGURE_ARGS= --with-libpcap=included \
--with-openssl=/usr \
--with-liblua=${LOCALBASE} \
--with-libpcre=${LOCALBASE} \
--with-mandir=${LOCALBASE}/man \
--without-nmap-update \
--disable-nls
WANTLIB-main= c crypto m ssl ssh2 ${COMPILER_LIBCXX} pcre \
${MODLUA_WANTLIB} z
LIB_DEPENDS-main=devel/pcre \
${MODLUA_LIB_DEPENDS} \
security/libssh2
RUN_DEPENDS-main=
RUN_DEPENDS-zenmap= x11/py-gtk2 \
databases/py-sqlite2 \
devel/desktop-file-utils \
net/nmap
post-extract:
@cd ${WRKSRC} && rm -rf liblua/ libpcre/
pre-configure:
${SUBST_CMD} ${WRKSRC}/zenmap/install_scripts/unix/su-to-zenmap.sh \
${WRKSRC}/zenmap/install_scripts/unix/zenmap.desktop \
${WRKSRC}/zenmap/install_scripts/unix/zenmap-root.desktop
@cd ${WRKSRC}/nping ; env PATH=${PORTPATH} \
AUTOCONF_VERSION=${AUTOCONF_VERSION} autoconf
.include <bsd.port.mk>