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.
71 lines
1.7 KiB
Makefile
71 lines
1.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.37 2018/10/24 14:28:11 sthen Exp $
|
|
|
|
COMMENT-main= implementation of the iCalendar protocols and data units
|
|
COMMENT-glib= GObject wrapper for libical library
|
|
|
|
V= 3.0.4
|
|
SUBST_VARS= V
|
|
DISTNAME= libical-${V}
|
|
|
|
PKGNAME-main= ${PKGNAME}
|
|
PKGNAME-glib= libical-glib-${V}
|
|
REVISION-glib= 0
|
|
REVISION-main= 0
|
|
|
|
SHARED_LIBS += ical 4.1
|
|
SHARED_LIBS += icalss 4.0
|
|
SHARED_LIBS += icalvcal 3.0
|
|
SHARED_LIBS += ical_cxx 1.0
|
|
SHARED_LIBS += icalss_cxx 1.0
|
|
SHARED_LIBS += ical-glib 0.0
|
|
|
|
CATEGORIES= textproc
|
|
|
|
HOMEPAGE= https://libical.github.io/libical/
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
# dual MPLv2, LGPLv2.1
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += icui18n icuuc
|
|
WANTLIB-main += ${WANTLIB} ${COMPILER_LIBCXX} m lib/db4/db
|
|
WANTLIB-glib += ${WANTLIB} ical glib-2.0 gobject-2.0 intl pthread
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES= https://github.com/libical/libical/releases/download/v${V}/
|
|
|
|
MULTI_PACKAGES= -main -glib
|
|
|
|
MODULES= devel/cmake
|
|
|
|
BUILD_DEPENDS= devel/gobject-introspection \
|
|
lang/vala \
|
|
textproc/libxml
|
|
|
|
LIB_DEPENDS-main= databases/db/v4 \
|
|
textproc/icu4c
|
|
|
|
LIB_DEPENDS-glib= devel/glib2 \
|
|
${BASE_PKGPATH},-main=${V}
|
|
|
|
|
|
CONFIGURE_ARGS= -DGOBJECT_INTROSPECTION=true \
|
|
-DICAL_GLIB_VAPI=true \
|
|
-DICAL_BUILD_DOCS=false
|
|
|
|
CFLAGS += -I${LOCALBASE}/include
|
|
|
|
# needed for libical-glib tests
|
|
MODULES += lang/python
|
|
MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3}
|
|
MODPY_RUNDEP= No
|
|
TEST_DEPENDS= ${MODPY_RUN_DEPENDS} \
|
|
textproc/libical,-glib=${V}
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/cmake/modules/FindBDB.cmake
|
|
|
|
.include <bsd.port.mk>
|