mtpaint: move to gtk+3 and remove llvm-10 -fno-common workaround

OK sthen@
This commit is contained in:
cwen 2021-06-10 21:51:44 +00:00
parent 23d29fc2ac
commit 9ffa48f842
2 changed files with 11 additions and 15 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.6 2021/02/02 22:41:40 cwen Exp $
# $OpenBSD: Makefile,v 1.7 2021/06/10 21:51:44 cwen Exp $
COMMENT = simple GTK+2 raster painting program
COMMENT = simple GTK+3 raster painting program
DISTNAME = mtpaint-3.50
REVISION = 0
EXTRACT_SUFX = .tar.bz2
CATEGORIES = graphics
@ -12,12 +13,10 @@ HOMEPAGE = http://mtpaint.sourceforge.net/
# GPLv3+
PERMIT_PACKAGE = Yes
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
WANTLIB += Xrandr Xrender atk-1.0 c cairo fontconfig freetype
WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0
WANTLIB += gthread-2.0 gtk-x11-2.0 harfbuzz intl jasper jpeg lcms2
WANTLIB += m pango-1.0 pangocairo-1.0 pangoft2-1.0 png pthread
WANTLIB += tiff z
WANTLIB += X11 atk-1.0 c cairo cairo-gobject gdk-3 gdk_pixbuf-2.0
WANTLIB += gio-2.0 glib-2.0 gobject-2.0 gthread-2.0 gtk-3 harfbuzz
WANTLIB += intl jasper jpeg lcms2 m pango-1.0 pangocairo-1.0 png
WANTLIB += pthread tiff z
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=mtpaint/}
@ -26,19 +25,16 @@ LIB_DEPENDS = devel/gettext,-runtime \
graphics/jasper \
graphics/lcms2 \
graphics/tiff \
x11/gtk+2
x11/gtk+3
RUN_DEPENDS = devel/desktop-file-utils
USE_GMAKE = Yes
CONFIGURE_STYLE = simple
CONFIGURE_ARGS = nogif jpeg jasper staticft tiff lcms \
lcms2 intl man thread cflags \
lcms2 intl man thread cflags gtk3 \
--mandir=${TRUEPREFIX}/man
CONFIGURE_ENV += LDFLAGS="${LDFLAGS} -L${X11BASE}/lib"
NO_TEST = Yes
# Remove after clang update to LLVM11. Meanwhile it avoids false positives with
# a patched clang-10 (mtpaint uses that flag only with clang-11 and gcc-10)
CFLAGS += -fcommon
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
mtPaint is a simple GTK+1/2 painting program designed for creating icons and
mtPaint is a simple GTK+3 painting program designed for creating icons and
pixel based artwork. It can edit indexed palette or 24 bit RGB images and offers
basic painting and palette manipulation tools. It also has several other more
powerful features such as channels, layers and animation. Due to its simplicity