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

64 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.109 2018/10/24 14:28:05 sthen Exp $
COMMENT= image viewer and browser for GNOME
GNOME_PROJECT= gthumb
GNOME_VERSION= 3.6.2
REVISION= 0
API_V= ${GNOME_VERSION:C/^([0-9]+\.[0-9]+).*/\1/}
SUBST_VARS= API_V
CATEGORIES= graphics
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>, \
Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi
WANTLIB += Xinerama Xrandr Xrender atk-1.0 atk-bridge-2.0 atspi
WANTLIB += c cairo cairo-gobject clutter-1.0 clutter-gtk-1.0
WANTLIB += dbus-1 epoxy exiv2 expat ffi fontconfig freetype gdk-3
WANTLIB += gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
WANTLIB += graphite2 gstreamer-1.0 gthread-2.0 gtk-3 fribidi
WANTLIB += harfbuzz jpeg json-glib-1.0 m pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 pcre pixman-1 png pthread colord
WANTLIB += rsvg-2 secret-1 soup-2.4 ${COMPILER_LIBCXX} tiff lcms2 raw
WANTLIB += webkit2gtk-4.0 webp xcb xcb-render xcb-shm z iconv intl
COMPILER = base-clang ports-gcc base-gcc
MODULES= devel/dconf \
x11/gnome
BUILD_DEPENDS += multimedia/gstreamer1/plugins-base
# web albums
BUILD_DEPENDS += devel/bison
LIB_DEPENDS= graphics/clutter/clutter-gtk \
graphics/colord \
graphics/exiv2 \
graphics/libraw \
graphics/libwebp \
multimedia/gstreamer1/core \
www/webkitgtk4 \
x11/gnome/librsvg
RUN_DEPENDS= graphics/dcraw \
multimedia/gstreamer1/plugins-base
MODGNOME_TOOLS += desktop-file-utils gtk-update-icon-cache shared-mime-info yelp
MODGNOME_CPPFLAGS= -I${X11BASE}/include
MODGNOME_LDFLAGS= -L${X11BASE}/lib
CONFIGURE_STYLE= gnu
post-install:
rm ${PREFIX}/lib/gthumb/extensions/*.{a,la}
.include <bsd.port.mk>