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

48 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.45 2018/10/24 14:28:09 sthen Exp $
COMMENT= HTTP and WebDAV client library, with C interface
DISTNAME= neon-0.30.2
SHARED_LIBS += neon 29.0 # 30.1
REVISION= 2
CATEGORIES= net www devel
HOMEPAGE= http://www.webdav.org/neon/
# LGPLv2+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += crypto expat iconv intl m proxy pthread ssl ${COMPILER_LIBCXX} z
COMPILER = base-clang ports-gcc base-gcc
MASTER_SITES= ${HOMEPAGE}
LIB_DEPENDS = net/libproxy
CONFIGURE_STYLE= gnu
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
ac_cv_path_CERTUTIL="" \
ac_cv_path_PK12UTIL=""
FAKE_FLAGS= docdir=${PREFIX}/share/doc/neon/
CONFIGURE_ARGS+= --with-ca-bundle=/etc/ssl/cert.pem \
--with-ssl=openssl \
--with-expat \
--without-pakchois \
--enable-nls
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/neon/macros
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/neon
.for i in README NEWS BUGS TODO THANKS
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/neon
.endfor
cd ${WRKSRC}/macros && \
tar cf - . | (cd ${PREFIX}/share/neon/macros; tar xf -)
.include <bsd.port.mk>