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

59 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.20 2018/10/24 14:28:05 sthen Exp $
COMMENT = geometry viewer for OOGL file formats
V = 1.9.4
DISTNAME = geomview-$V
REVISION = 11
SHARED_LIBS = geomview 0.0
CATEGORIES = graphics
HOMEPAGE = http://www.geomview.org
MAINTAINER = Patsy <openbsd@ethernull.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += ICE SM X11 Xext Xft Xm Xmu Xrender Xt c expat fontconfig
WANTLIB += freetype iconv jpeg m png ${COMPILER_LIBCXX} xcb z
COMPILER = base-clang ports-gcc base-gcc
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=geomview/}
RUN_DEPENDS = graphics/netpbm \
print/ps2eps
LIB_DEPENDS = converters/libiconv \
x11/motif
SUBST_VARS += V
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS = --without-opengl
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include -Dalloca=alloca"
MAN1_PAGES = animate.1 anytooff.1 anytoucd.1 bdy.1 bez2mesh.1 clip.1 \
geomview.1 hvectext.1 math2oogl.1 nose.1 offconsol.1 \
oogl2rib.1 oogl2vrml.1 polymerge.1 togeomview.1 ucdtooff.1 \
vrml2oogl.1
MAN3_PAGES = anytopl.3 bdy.3 fsaparse.3 geomutil.3 plcombine.3 plconsol.3 \
lisp.3
MAN5_PAGES = discgrp.5 oogl.5 geomview.5
post-install:
.for i in ${MAN1_PAGES}
mv ${PREFIX}/man/man1/${i}gv ${PREFIX}/man/man1/${i}
.endfor
.for i in ${MAN3_PAGES}
mv ${PREFIX}/man/man3/${i}gv ${PREFIX}/man/man3/${i}
.endfor
.for i in ${MAN5_PAGES}
mv ${PREFIX}/man/man5/${i}gv ${PREFIX}/man/man5/${i}
.endfor
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/geomview/html/
# avoid conflict with graphics/ImageMagick
mv ${PREFIX}/man/man1/animate.1 ${PREFIX}/man/man1/geomview-animate.1
.include <bsd.port.mk>