landry a513214180 devel/giggle: fix for -fno-common
from 57fd690279
while here fix WANTLIB.

this project last release was in 2012, there are no real signs of life,
but it stills works fine in basic testing so lets keep it for shit and
..  (puts on sunglasses) giggles.

https://wiki.gnome.org/action/show/Apps/Gitg is the official 'blessed &
maintained' gnome git gui, but it isnt ported, and is in vala so meh.
2021-02-11 10:20:14 +00:00

54 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.50 2021/02/11 10:20:14 landry Exp $
COMMENT= gtk-based git repository viewer
GNOME_VERSION= 0.7
GNOME_PROJECT= giggle
REVISION= 11
CATEGORIES= devel x11
SHARED_LIBS += giggle 0.0 # 0.0
SHARED_LIBS += giggle-git 0.0 # 0.0
# GPLv2
PERMIT_PACKAGE= Yes
WANTLIB = X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama Xrandr
WANTLIB += Xrender atk-1.0 atk-bridge-2.0 c cairo
WANTLIB += cairo-gobject epoxy expat ffi fontconfig freetype
WANTLIB += gdk-3 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
WANTLIB += graphite2 gthread-2.0 gtk-3 gtksourceview-3.0 harfbuzz iconv
WANTLIB += intl lzma m pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre
WANTLIB += pixman-1 png pthread vte-2.91 xcb xcb-render xcb-shm xml2 z
WANTLIB += fribidi ${COMPILER_LIBCXX}
MODULES= x11/gnome
RUN_DEPENDS= devel/git
BUILD_DEPENDS+= devel/git
LIB_DEPENDS= x11/gtksourceview3 devel/vte3
MODGNOME_TOOLS += desktop-file-utils gtk-update-icon-cache yelp
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --disable-evolution-data-server
SUBST_VARS+= GNOME_VERSION
# Remove a few compiler options GCC 4.2.1 doesn't understand.
pre-configure:
perl -pi -e 's,-Wclobbered,,g;' \
-e 's,-Wempty-body,,g;' \
-e 's,-Wabi,,g;' \
-e 's,-Wdeprecated ,,g;' \
-e 's,-Wignored-qualifiers,,g;' \
-e 's,-Wtype-limits,,g;' \
-e 's,-Wmissing-parameter-type,,g' \
${WRKSRC}/configure
post-install:
rm ${PREFIX}/lib/giggle/plugins/${GNOME_VERSION}/*.{a,la}
.include <bsd.port.mk>