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

46 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.32 2018/10/24 14:28:11 sthen Exp $
COMMENT= object-oriented DSSSL engine
DISTNAME= openjade-1.3.3-pre1
PKGNAME= openjade-1.3.3pre1
REVISION= 6
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openjade/}
SHARED_LIBS= ospgrove 0.0 \
ogrove 0.0 \
ostyle 0.0 # 0.1
HOMEPAGE= http://openjade.sourceforge.net/
# BSD
PERMIT_PACKAGE_CDROM= Yes
LIB_DEPENDS= textproc/opensp
WANTLIB= c iconv intl m pthread ${COMPILER_LIBCXX} osp
COMPILER = base-clang ports-gcc base-gcc
CONFIGURE_STYLE= gnu
USE_GMAKE= Yes
DOCDIR= ${PREFIX}/share/doc/openjade
SGMLDIR= ${PREFIX}/share/sgml/openjade
SGMLFILES= fot.dtd catalog dsssl.dtd style-sheet.dtd builtins.dsl \
demo.sgm demo.dsl
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}/sp
${INSTALL_DATA_DIR} ${DOCDIR}/images
${INSTALL_DATA} ${WRKSRC}/jadedoc/copying.txt ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.htm ${DOCDIR}/sp
${INSTALL_DATA} ${WRKSRC}/jadedoc/*.htm ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/jadedoc/images/*.gif ${DOCDIR}/images
${INSTALL_DATA_DIR} ${SGMLDIR}
.for i in ${SGMLFILES}
${INSTALL_DATA} ${WRKSRC}/dsssl/$i ${SGMLDIR}
.endfor
rm ${PREFIX}/share/builtins.dsl
.include <bsd.port.mk>