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.
56 lines
1.2 KiB
Makefile
56 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.56 2018/10/24 14:28:12 sthen Exp $
|
|
|
|
# no libGL (toolchain issue)
|
|
NOT_FOR_ARCHS= m88k
|
|
|
|
COMMENT= Fast-Light Tool Kit
|
|
|
|
VER= 1.3.3
|
|
DISTNAME= fltk-${VER}-source
|
|
PKGNAME= fltk-${VER}
|
|
REVISION= 2
|
|
|
|
CATEGORIES= x11
|
|
|
|
# These all need to stay in sync.
|
|
SHARED_LIBS= fltk 8.0 \
|
|
fltk_forms 8.0 \
|
|
fltk_gl 8.0 \
|
|
fltk_images 8.0
|
|
|
|
HOMEPAGE= http://www.fltk.org/
|
|
|
|
# LGPLv2 with exceptions (see COPYING)
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += GL GLU X11 Xau Xcursor Xdmcp Xext Xfixes Xft Xinerama
|
|
WANTLIB += c fontconfig jpeg m png pthread ${COMPILER_LIBCXX} z
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES= http://fltk.org/pub/fltk/${VER}/
|
|
|
|
LIB_DEPENDS= graphics/jpeg \
|
|
graphics/png
|
|
|
|
NO_TEST= Yes
|
|
CONFIGURE_STYLE=autoconf no-autoheader
|
|
AUTOCONF_VERSION=2.69
|
|
CONFIGURE_ARGS= --enable-shared \
|
|
--enable-threads
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
|
CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
|
|
LIBS="-L${LOCALBASE}/lib" \
|
|
LIBfltk_VERSION="${LIBfltk_VERSION}"
|
|
.for n v in ${SHARED_LIBS}
|
|
MAKE_ENV+= LIB$n_VERSION=${LIB$n_VERSION}
|
|
.endfor
|
|
|
|
WRKDIST= ${WRKDIR}/fltk-${VER}
|
|
|
|
pre-build:
|
|
${SUBST_CMD} ${WRKSRC}/src/Fl_Preferences.cxx
|
|
|
|
.include <bsd.port.mk>
|