#!/bin/sh
# This is a shell archive
echo x gtk-app-menu
mkdir -p gtk-app-menu > /dev/null 2>&1
echo x gtk-app-menu/distinfo
sed 's/^X//' > gtk-app-menu/distinfo << 'SHAR_END'
XTIMESTAMP = 1600631254
XSHA256 (vala-panel-project-vala-panel-appmenu-c2cb48f07d95079e566eed78b28880e00f31c637_GL0.tar.gz) = ca56fe93ccaacde658af56666867c5ccd6ad4831b61491afa4a5335c261c6560
XSIZE (vala-panel-project-vala-panel-appmenu-c2cb48f07d95079e566eed78b28880e00f31c637_GL0.tar.gz) = 165788
SHAR_END
echo x gtk-app-menu/Makefile
sed 's/^X//' > gtk-app-menu/Makefile << 'SHAR_END'
X# $FreeBSD$
X
XPORTNAME=	appmenu-gtk-module
XDISTVERSION=	0.7.3.2
XCATEGORIES=	x11
X
XMAINTAINER=	trueos@norwegianrockcat.com
XCOMMENT=	GTK module for putting application menubar in a global menubar
X
XLICENSE=	LGPL3
XLICENSE_FILE=	${WRKSRC}/subprojects/appmenu-gtk-module/LICENSE
X
XUSES=	cmake gnome pkgconfig
X
XCMAKE_SOURCE_PATH=	${WRKSRC}/subprojects/appmenu-gtk-module
X
XUSE_GNOME=	gtk30 glib20 gtk20 gdkpixbuf2
XGLIB_SCHEMAS=	org.appmenu.gtk-module.gschema.xml
X
XUSE_GITLAB=	yes
XGL_ACCOUNT=	vala-panel-project
XGL_PROJECT=	vala-panel-appmenu
XGL_COMMIT=	c2cb48f07d95079e566eed78b28880e00f31c637
X
X.include <bsd.port.mk>
SHAR_END
echo x gtk-app-menu/pkg-plist
sed 's/^X//' > gtk-app-menu/pkg-plist << 'SHAR_END'
Xlibdata/pkgconfig/appmenu-gtk3-parser.pc
Xlibdata/pkgconfig/appmenu-gtk2-parser.pc
Xlib/libappmenu-gtk2-parser.so.0
Xlib/gtk-2.0/modules/libappmenu-gtk-module.so
Xlib/libappmenu-gtk2-parser.so
Xlib/libappmenu-gtk3-parser.so
Xlib/libappmenu-gtk3-parser.so.0
Xlib/gtk-3.0/modules/libappmenu-gtk-module.so
Xinclude/appmenu-gtk-parser/appmenu-gtk-menu-shell.h
Xinclude/appmenu-gtk-parser/appmenu-gtk-parser.h
Xinclude/appmenu-gtk-parser/appmenu-gtk-action-group.h
SHAR_END
echo x gtk-app-menu/pkg-descr
sed 's/^X//' > gtk-app-menu/pkg-descr << 'SHAR_END'
XThe appmenu-gtk-module is a GTK Module that strips menus from all GTK
Xprograms, converts to them MenuModel and send to them AppMenu
X(sometimes called a global menu bar) of a desktop environment like
XPlasma or Gnome. This module was originally used in Ubuntu's Unity
XDesktop Environment, but it lives on as part of the Vala project.
SHAR_END
echo x gtk-app-menu/files
mkdir -p gtk-app-menu/files > /dev/null 2>&1
echo x gtk-app-menu/files/patch-subprojects_appmenu-gtk-module_src_CMakeLists.txt
sed 's/^X//' > gtk-app-menu/files/patch-subprojects_appmenu-gtk-module_src_CMakeLists.txt << 'SHAR_END'
X--- subprojects/appmenu-gtk-module/src/CMakeLists.txt.orig	2019-03-02 16:02:35 UTC
X+++ subprojects/appmenu-gtk-module/src/CMakeLists.txt
X@@ -13,6 +13,10 @@ set(MODULE_SOURCES
X     platform.h
X     consts.h)
X 
X+find_package(X11 REQUIRED)
X+if (X11_FOUND)
X+    include_directories(${X11_INCLUDE_DIR})
X+endif(X11_FOUND)
X get_filename_component(GTK3_LIBDIR ${GTK3_GTK_LIBRARY} DIRECTORY)
X set(GTK3_MODULEDIR ${GTK3_LIBDIR}/gtk-3.0/modules)
X add_library(appmenu-gtk3-module MODULE ${MODULE_SOURCES})
X@@ -27,7 +31,7 @@ if(GTK2_FOUND)
X     get_filename_component(GTK2_LIBDIR ${GTK2_GTK_LIBRARY} DIRECTORY)
X     set(GTK2_MODULEDIR ${GTK2_LIBDIR}/gtk-2.0/modules)
X     add_library(appmenu-gtk2-module MODULE ${MODULE_SOURCES})
X-    target_include_directories(appmenu-gtk2-module PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../lib)
X+    target_include_directories(appmenu-gtk2-module PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../lib )
X     target_link_libraries(appmenu-gtk2-module PRIVATE appmenu-gtk2-parser GLIB2::GIO_UNIX GTK2::GTK)
X     set_target_properties(appmenu-gtk2-module PROPERTIES
X         OUTPUT_NAME appmenu-gtk-module
SHAR_END
echo x gtk-app-menu/files/patch-subprojects_appmenu-gtk-module_cmake_GLibProgramHandlers.cmake
sed 's/^X//' > gtk-app-menu/files/patch-subprojects_appmenu-gtk-module_cmake_GLibProgramHandlers.cmake << 'SHAR_END'
X--- subprojects/appmenu-gtk-module/cmake/GLibProgramHandlers.cmake.orig	2019-07-29 14:45:42 UTC
X+++ subprojects/appmenu-gtk-module/cmake/GLibProgramHandlers.cmake
X@@ -27,10 +27,10 @@ macro(add_schema SCHEMA_NAME)
X     message (STATUS "GSettings schemas will be installed into ${GSETTINGS_PREFIX}/${GSETTINGS_DIR}")
X     install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME} DESTINATION ${GSETTINGS_PREFIX}/${GSETTINGS_DIR} COMPONENT ${ARGV1} OPTIONAL)
X 
X-    if (GSETTINGS_COMPILE)
X-        install (CODE "message (STATUS \"Compiling GSettings schemas\")")
X-        install (CODE "execute_process (COMMAND ${GLIB2_COMPILE_SCHEMAS_EXECUTABLE} ${GSETTINGS_PREFIX}/${GSETTINGS_DIR})")
X-    endif ()
X+    # if (GSETTINGS_COMPILE)
X+        # install (CODE "message (STATUS \"Compiling GSettings schemas\")")
X+        # install (CODE "execute_process (COMMAND ${GLIB2_COMPILE_SCHEMAS_EXECUTABLE} ${GSETTINGS_PREFIX}/${GSETTINGS_DIR})")
X+    # endif ()
X endmacro()
X 
X macro(add_glib_marshal outsources outincludes name prefix)
SHAR_END
echo x gtk-app-menu/files/patch-subprojects_appmenu-gtk-module_src_datastructs-private.h
sed 's/^X//' > gtk-app-menu/files/patch-subprojects_appmenu-gtk-module_src_datastructs-private.h << 'SHAR_END'
X--- subprojects/appmenu-gtk-module/src/datastructs-private.h.orig	2019-03-02 16:23:40 UTC
X+++ subprojects/appmenu-gtk-module/src/datastructs-private.h
X@@ -31,7 +31,7 @@
X struct _WindowData
X {
X 	uint window_id;
X-	ulong wayland_window_id;
X+	gulong wayland_window_id;
X 	GMenu *menu_model;
X 	guint menu_model_export_id;
X 	GSList *menus;
SHAR_END
exit
