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.
49 lines
1.0 KiB
Makefile
49 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.33 2018/10/24 14:28:12 sthen Exp $
|
|
|
|
COMMENT= text editor widget for FLTK
|
|
|
|
V= 0.4.5
|
|
DISTNAME= fl_editor-${V}
|
|
PKGNAME= fleditor-${V}
|
|
REVISION = 8
|
|
|
|
SHARED_LIBS= fleditor 3.0
|
|
CATEGORIES= x11
|
|
|
|
HOMEPAGE= http://www.robertk.com/source/
|
|
|
|
# LPGL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += m ${COMPILER_LIBCXX}
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES= http://www.robertk.com/source/fl_editor/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
RUN_DEPENDS= x11/fltk
|
|
|
|
TEST_TARGET= test
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
|
CONFIGURE_ARGS+= --enable-shared \
|
|
--with-fltk=${LOCALBASE}
|
|
MAKE_ENV= LIBfleditor_VERSION=${LIBfleditor_VERSION}
|
|
|
|
WRKDIST= ${WRKDIR}/fl_editor
|
|
|
|
TEST_IS_INTERACTIVE= x11
|
|
|
|
post-patch:
|
|
@rmdir ${WRKSRC}/obj
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKBUILD}/libfleditor.so* ${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKBUILD}/libfleditor.a ${PREFIX}/lib
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/FL
|
|
${INSTALL_DATA} ${WRKSRC}/FL/*.[Hh] ${PREFIX}/include/FL
|
|
|
|
.include <bsd.port.mk>
|