gtk2-engines-murrine: Fix implicit function declaration

This commit is contained in:
Tee KOBAYASHI 2023-04-11 13:22:21 +09:00 committed by xtkoba
parent ad7ab808cb
commit d1e1090b1f
2 changed files with 43 additions and 3 deletions

View File

@ -3,8 +3,16 @@ TERMUX_PKG_DESCRIPTION="Gtk +-2.0 theme engine based on cairo"
TERMUX_PKG_LICENSE="LGPL-2.1, LGPL-3.0"
TERMUX_PKG_MAINTAINER="Yisus7u7 <dev.yisus@hotmail.com>"
TERMUX_PKG_VERSION=0.98.2
TERMUX_PKG_REVISION=3
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL=http://deb.debian.org/debian/pool/main/g/gtk2-engines-murrine/gtk2-engines-murrine_${TERMUX_PKG_VERSION}.orig.tar.xz
TERMUX_PKG_SHA256=e9c68ae001b9130d0f9d1b311e8121a94e5c134b82553ba03971088e57d12c89
TERMUX_PKG_DEPENDS="gtk2, atk, fontconfig, libcairo, freetype, gdk-pixbuf, glib, harfbuzz, pango, libpixman"
TERMUX_PKG_ENABLE_CLANG16_PORTING=false
TERMUX_PKG_DEPENDS="gdk-pixbuf, glib, gtk2, libcairo, libpixman, pango"
termux_step_pre_configure() {
LDFLAGS+=" -lm"
}
termux_step_post_configure() {
# Avoid overlinking
sed -i 's/ -shared / -Wl,--as-needed\0/g' ./libtool
}

View File

@ -0,0 +1,32 @@
https://github.com/termux/termux-packages/issues/15852
Borrowed from https://github.com/gentoo/gentoo/blob/d5fca8d5622b376e09174784c91082357d8be597/x11-themes/gtk-engines-murrine/files/0.98.2-implicit-functions.patch
--- a/src/murrine_rc_style.h
+++ b/src/murrine_rc_style.h
@@ -154,5 +154,6 @@
};
GType murrine_rc_style_get_type (void);
+void murrine_rc_style_register_types (GTypeModule *);
#endif /* MURRINE_RC_STYLE_H */
--- a/src/murrine_style.h
+++ b/src/murrine_style.h
@@ -102,5 +102,6 @@
};
GType murrine_style_get_type (void);
+void murrine_style_register_types (GTypeModule *);
#endif /* MURRINE_STYLE_H */
--- a/src/support.h 2012-01-17 18:46:01.000000000 +0100
+++ b/src/support.h 2021-11-28 01:08:50.868702336 +0100
@@ -148,5 +148,8 @@
G_GNUC_INTERNAL void murrine_get_notebook_tab_position (GtkWidget *widget,
gboolean *start,
gboolean *end);
+G_GNUC_INTERNAL gboolean murrine_object_is_a (const GObject *object,
+ const gchar *type_name);
+G_GNUC_INTERNAL gboolean murrine_widget_is_ltr (GtkWidget *widget);
#endif /* SUPPORT_H */