Import x11/libappindicator.

"libappindicator is a library to allow applications to export a menu into the
Unity Menu bar. Based on KSNI it also works in KDE and will fallback to generic
Systray support if none of those are available."

From Laurie Tratt, with input from myself and sthen@.

OK sthen@, thanks!
This commit is contained in:
edd 2020-09-23 13:19:30 +00:00
parent 48a13efce3
commit e8ad661893
7 changed files with 297 additions and 0 deletions

View File

@ -0,0 +1,41 @@
# $OpenBSD: Makefile,v 1.1.1.1 2020/09/23 13:19:30 edd Exp $
V = 12.10.0
COMMENT = library for exporting menus to a desktop environment
DISTNAME = libappindicator-${V}
CATEGORIES = x11
SHARED_LIBS += appindicator3 0.0 # 1.0
HOMPAGE = https://launchpad.net/libappindicator
MAINTAINER = Laurence Tratt <laurie@tratt.net>
# LGPLv3+
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} X11 Xcomposite Xcursor Xdamage Xext
WANTLIB += Xfixes Xi Xinerama Xrandr Xrender atk-1.0 atk-bridge-2.0
WANTLIB += cairo cairo-gobject dbusmenu-glib dbusmenu-gtk3 epoxy
WANTLIB += expat ffi fontconfig freetype fribidi gdk-3 gdk_pixbuf-2.0
WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 graphite2
WANTLIB += gtk-3 harfbuzz iconv indicator3 intl m pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 pcre pixman-1 png xcb xcb-render xcb-shm
WANTLIB += z
COMPILER = base-clang ports-gcc
MASTER_SITES = https://launchpad.net/libappindicator/${V:R}/${V}/+download/
LIB_DEPENDS = x11/libdbusmenu \
x11/libindicator \
x11/gtk+3
CONFIGURE_STYLE = autoconf
CONFIGURE_ARGS = --with-gtk=3
AUTOCONF_VERSION = 2.69
USE_GMAKE = Yes
NO_TEST = Yes
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (libappindicator-12.10.0.tar.gz) = 1ZB8H5gISs8o/RlZPLcGcsqgyhz4LXR7pvSDDUzDtJ8=
SIZE (libappindicator-12.10.0.tar.gz) = 535562

View File

@ -0,0 +1,133 @@
$OpenBSD: patch-configure_ac,v 1.1.1.1 2020/09/23 13:19:30 edd Exp $
Index: configure.ac
--- configure.ac.orig
+++ configure.ac
@@ -91,122 +91,29 @@ AM_CONDITIONAL(INTROSPECTION_TEN, [test "x$introspecti
###########################
AC_PATH_PROG([VALA_API_GEN], [vapigen])
-AM_CONDITIONAL(HAVE_VAPIGEN, [test "x$VALA_API_GEN" != "x"])
+AM_CONDITIONAL(HAVE_VAPIGEN, [false])
###########################
# Vala Compiler support
###########################
AM_PROG_VALAC([0.14.0])
-AM_CONDITIONAL(HAVE_VALAC, [test "x$VALAC" != "x"])
+AM_CONDITIONAL(HAVE_VALAC, [false])
###########################
# Check for Mono support
###########################
-MONO_REQUIRED_VERSION=1.0
-PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
-AM_CONDITIONAL(HAS_MONO, [test "x$has_mono" = "xtrue"])
+has_mono=no
+has_nunit=no
+enable_mono_test=no
-AC_PATH_PROG(AL, al, no)
-if test "x$AL" = "xno" ; then
- AC_MSG_NOTICE([No al tool found. You need to install Mono.])
-fi
-
-if test "x$has_mono" = "xtrue" ; then
- GENERATED_SOURCES=generated/*.cs
- AC_PATH_PROG(RUNTIME, mono, no)
-
- if test "x$RUNTIME" != "no" ; then
- RUNTIME=mono
- fi
-
- AC_PATH_PROG(CSC, gmcs, no)
- LIB_PREFIX=.so
- LIB_SUFFIX=
-fi
-
-if test "x$CSC" = "xno" ; then
- AC_MSG_NOTICE([No Mono compiler found.])
-fi
-
-AC_PATH_PROG(GACUTIL, gacutil, no)
-if test "x$GACUTIL" = "xno" ; then
- AC_MSG_NOTICE([No gacutil tool found])
-fi
-
-AC_SUBST(RUNTIME)
-AC_SUBST(CSC)
-AC_SUBST(GACUTIL)
-AC_SUBST(LIB_PREFIX)
-AC_SUBST(LIB_SUFFIX)
-AC_SUBST(GENERATED_SOURCES)
-
-GLIB_SHARP_REQ_VERSION=2.12.1
-GTK_SHARP_REQ_VERSION=2.12
-PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTK_SHARP_REQ_VERSION, has_gtksharp=true, has_gtksharp=false)
-
-PKG_CHECK_MODULES(GAPI, gapi-2.0 >= $GLIB_SHARP_REQ_VERSION, has_gapi=true, has_gapi=false)
-AC_PATH_PROG(GAPI_PARSER, gapi2-parser, no)
-AC_SUBST(GAPI_PARSER)
-AC_PATH_PROG(GAPI_CODEGEN, gapi2-codegen, no)
-AC_SUBST(GAPI_CODEGEN)
-AC_PATH_PROG(GAPI_FIXUP, gapi2-fixup, no)
-AC_SUBST(GAPI_FIXUP)
-
-# Check for nunit
-AC_ARG_ENABLE([mono-test],
- AC_HELP_STRING([--disable-mono-test], [Disable mono test]),,
- [enable_mono_test=auto])
-
-if test x"$enable_mono_test" != x"no" ; then
- PKG_CHECK_MODULES(NUNIT, nunit >= 2.4.7,
- [have_nunit=yes],
- [PKG_CHECK_MODULES(MONO_NUNIT, mono-nunit,
- [have_nunit=yes],
- [have_nunit=no])
- ])
- if test x${enable_mono_test} = xyes && test x${have_nunit} = xno; then
- AC_MSG_ERROR([Mono test configured but nunit not found])
- fi
-else
- have_nunit=no
-fi
-AM_CONDITIONAL(BUILD_MONO_TEST, test x${have_nunit} = xyes)
-
###########################
# Check to see if we're local
###########################
with_localinstall="no"
AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], [install all of the files localy instead of system directories (for distcheck)]), with_localinstall=$enableval, with_localinstall=no)
-
-###########################
-# Python
-###########################
-
-PYGTK_REQUIRED=2.14.0
-PYGOBJECT_REQUIRED=0.22
-
-AM_PATH_PYTHON(2.3.5)
-AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
-
-PKG_CHECK_MODULES(APPINDICATOR_PYTHON,
- [
- pygtk-2.0 >= $PYGTK_REQUIRED
- gtk+-2.0 >= $GTK_REQUIRED_VERSION
- pygobject-2.0 >= $PYGOBJECT_REQUIRED
- ])
-
-AC_MSG_CHECKING(for pygtk defs)
-PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
-AC_SUBST(PYGTK_DEFSDIR)
-AC_MSG_RESULT($PYGTK_DEFSDIR)
-
-AC_MSG_CHECKING(for pygtk codegen)
-PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py"
-AC_SUBST(PYGTK_CODEGEN)
-AC_MSG_RESULT($PYGTK_CODEGEN)
#########################
# Check if build tests

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2020/09/23 13:19:30 edd Exp $
Index: src/Makefile.in
--- src/Makefile.in.orig
+++ src/Makefile.in
@@ -471,7 +471,7 @@ libappindicator_la_LDFLAGS = \
libappindicator_la_CFLAGS = \
$(LIBRARY_CFLAGS) \
$(COVERAGE_CFLAGS) \
- -Wall -Werror \
+ -Wall \
-DG_LOG_DOMAIN=\"libappindicator\"
libappindicator_la_LIBADD = \

View File

@ -0,0 +1,77 @@
$OpenBSD: patch-tests_Makefile_in,v 1.1.1.1 2020/09/23 13:19:30 edd Exp $
Index: tests/Makefile.in
--- tests/Makefile.in.orig
+++ tests/Makefile.in
@@ -409,7 +409,7 @@ test_libappindicator_SOURCES = \
test_libappindicator_CFLAGS = \
$(TESTDEPS_CFLAGS) $(LIBRARY_CFLAGS) \
-DSRCDIR="\"$(srcdir)\"" \
- -Wall -Werror \
+ -Wall \
-I$(top_srcdir)/src
test_libappindicator_LDADD = \
@@ -425,7 +425,7 @@ test_libappindicator_dbus_client_SOURCES = \
test_libappindicator_dbus_client_CFLAGS = \
$(TESTDEPS_CFLAGS) $(LIBRARY_CFLAGS) \
- -Wall -Werror \
+ -Wall \
-I$(top_srcdir)/src
test_libappindicator_dbus_client_LDADD = \
@@ -441,7 +441,7 @@ test_libappindicator_dbus_server_SOURCES = \
test_libappindicator_dbus_server_CFLAGS = \
$(TESTDEPS_CFLAGS) $(LIBRARY_CFLAGS) \
- -Wall -Werror \
+ -Wall \
-I$(top_srcdir)/src
test_libappindicator_dbus_server_LDADD = \
@@ -457,7 +457,7 @@ test_libappindicator_status_client_SOURCES = \
test_libappindicator_status_client_CFLAGS = \
$(TESTDEPS_CFLAGS) $(LIBRARY_CFLAGS) \
- -Wall -Werror \
+ -Wall \
-I$(top_srcdir)/src
test_libappindicator_status_client_LDADD = \
@@ -473,7 +473,7 @@ test_libappindicator_status_server_SOURCES = \
test_libappindicator_status_server_CFLAGS = \
$(TESTDEPS_CFLAGS) $(LIBRARY_CFLAGS) \
- -Wall -Werror \
+ -Wall \
-I$(top_srcdir)/src
test_libappindicator_status_server_LDADD = \
@@ -488,7 +488,7 @@ test_libappindicator_fallback_watcher_SOURCES = \
test_libappindicator_fallback_watcher_CFLAGS = \
$(TESTDEPS_CFLAGS) $(LIBRARY_CFLAGS) \
- -Wall -Werror \
+ -Wall \
-I$(top_srcdir)/src
test_libappindicator_fallback_watcher_LDADD = \
@@ -500,7 +500,7 @@ test_libappindicator_fallback_item_SOURCES = \
test_libappindicator_fallback_item_CFLAGS = \
$(TESTDEPS_CFLAGS) $(LIBRARY_CFLAGS) \
- -Wall -Werror \
+ -Wall \
-I$(top_srcdir)/src
test_libappindicator_fallback_item_LDADD = \
@@ -522,7 +522,7 @@ test_simple_app_SOURCES = \
test_simple_app_CFLAGS = \
$(TESTDEPS_CFLAGS) $(LIBRARY_CFLAGS) \
- -Wall -Werror \
+ -Wall \
-I$(top_srcdir)/src
test_simple_app_LDADD = \

View File

@ -0,0 +1,3 @@
libappindicator is a library to allow applications to export a menu into
the Unity Menu bar. Based on KSNI it also works in KDE and will fallback
to generic Systray support if none of those are available.

View File

@ -0,0 +1,27 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/09/23 13:19:30 edd Exp $
include/libappindicator3-0.1/
include/libappindicator3-0.1/libappindicator/
include/libappindicator3-0.1/libappindicator/app-indicator-enum-types.h
include/libappindicator3-0.1/libappindicator/app-indicator.h
lib/girepository-1.0/AppIndicator3-0.1.typelib
@static-lib lib/libappindicator3.a
lib/libappindicator3.la
@lib lib/libappindicator3.so.${LIBappindicator3_VERSION}
lib/pkgconfig/appindicator3-0.1.pc
share/gir-1.0/AppIndicator3-0.1.gir
share/gtk-doc/html/libappindicator/
share/gtk-doc/html/libappindicator/annotation-glossary.html
share/gtk-doc/html/libappindicator/api-index-0-5.html
share/gtk-doc/html/libappindicator/api-index-deprecated.html
share/gtk-doc/html/libappindicator/api-index-full.html
share/gtk-doc/html/libappindicator/ch01.html
share/gtk-doc/html/libappindicator/home.png
share/gtk-doc/html/libappindicator/index.html
share/gtk-doc/html/libappindicator/index.sgml
share/gtk-doc/html/libappindicator/left.png
share/gtk-doc/html/libappindicator/libappindicator-app-indicator.html
share/gtk-doc/html/libappindicator/libappindicator.devhelp2
share/gtk-doc/html/libappindicator/object-tree.html
share/gtk-doc/html/libappindicator/right.png
share/gtk-doc/html/libappindicator/style.css
share/gtk-doc/html/libappindicator/up.png