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

74 lines
1.7 KiB
Makefile
Executable File

# $OpenBSD: Makefile,v 1.28 2018/10/24 14:28:11 sthen Exp $
MULTI_PACKAGES= -main -mysql -pgsql
COMMENT-main= high-level interface for RDF
COMMENT-mysql= MySQL driver for redland
COMMENT-pgsql= PostgreSQL driver for redland
V= 1.0.17
DISTNAME= redland-$V
PKGNAME-main= redland-$V
PKGNAME-mysql= redland-mysql-$V
PKGNAME-pgsql= redland-pgsql-$V
REVISION-main= 6
REVISION-mysql= 7
REVISION-pgsql= 7
CATEGORIES= textproc
SHARED_LIBS += rdf 1.0 # 0.0
HOMEPAGE= http://librdf.org/
MASTER_SITES= http://download.librdf.org/source/
# LGPL 2.1+, GPL 2+ or Apache 2+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += crypto curl gcrypt gmp gpg-error iconv intl ltdl lzma m mpfr
WANTLIB += nghttp2 pcre pthread raptor2 rasqal ssl uuid xml2 xslt yajl z
COMPILER = base-clang ports-gcc base-gcc
LIB_DEPENDS= devel/libtool,-ltdl \
textproc/raptor \
textproc/rasqal
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-raptor=system \
--with-rasqal=system \
--with-datadirect=no \
--with-unixodbc=no \
--with-threestore=no \
--with-virtuoso=no \
--with-iodbc=no \
--with-mysql=yes \
--with-postgresql=yes \
--with-sqlite=3 \
--with-bdb=no \
--with-threads=yes \
--with-ltdl-include=${LOCALBASE}/include \
--with-ltdl-lib=${LOCALBASE}/lib
LIB_DEPENDS-main= databases/sqlite3 \
textproc/raptor \
textproc/rasqal \
devel/libtool,-ltdl
WANTLIB-main= ${WANTLIB} c sqlite3
LIB_DEPENDS-mysql= ${BASE_PKGPATH},-main \
databases/mariadb
WANTLIB-mysql= ${WANTLIB} crypto mysqlclient rdf ${COMPILER_LIBCXX}
LIB_DEPENDS-pgsql= ${BASE_PKGPATH},-main \
databases/postgresql
WANTLIB-pgsql= ${WANTLIB} pq rdf
post-install:
rm ${PREFIX}/lib/redland/librdf_storage_*.{la,a}
.include <bsd.port.mk>