Changeset View
Changeset View
Standalone View
Standalone View
devel/appmenu-gtk-module/Makefile
- This file was added.
# $FreeBSD$ | |||||
PORTNAME= appmenu-gtk-module | |||||
PORTVERSION= 0.7.2 | |||||
CATEGORIES= devel | |||||
MASTER_SITES= https://gitlab.com/vala-panel-project/vala-panel-appmenu/uploads/${GL_HASH}/ | |||||
DISTNAME= vala-panel-appmenu-${PORTVERSION} | |||||
mat: Please use flavor helpers. | |||||
MAINTAINER= landonf@freebsd.org | |||||
COMMENT= GTK+ module to present application menus within the global menu bar | |||||
LICENSE= LGPL3 | |||||
RUN_DEPENDS= ${PORTNAME}-gtk2>=${PORTVERSION}:devel/${PORTNAME}-gtk2 \ | |||||
${PORTNAME}-gtk3>=${PORTVERSION}:devel/${PORTNAME}-gtk3 | |||||
GL_HASH= 57fe7a74b38180002154fbd6028075db | |||||
.if !defined(SLAVE_PORT) | |||||
Done Inline ActionsPlease symplify this, no need for all those if's, soemthing like: COMMENT= ${COMMENT_${FLAVOR}} COMMENT_meta= GTK+ modules to display old-style menus in the global menu bar COMMENT_common= ... ... mat: Please symplify this, no need for all those if's, soemthing like:
```
COMMENT=… | |||||
USES= metaport | |||||
PATCHDIR= /dev/null | |||||
.else | |||||
Done Inline ActionsThis should be in the .if below. mat: This should be in the `.if` below. | |||||
LICENSE_FILE= ${WRKSRC}/LICENSE | |||||
RUN_DEPENDS= ${PORTNAME}-common>=${PORTVERSION}:devel/${PORTNAME}-common | |||||
USES= cmake gnome tar:xz | |||||
PLIST= ${PKGDIR}/pkg-plist.${SLAVE_PORT} | |||||
# Extract only the appmenu-gtk-module subproject | |||||
EXTRACT_AFTER_ARGS+= \ | |||||
--include "^${DISTNAME}/subprojects/${PORTNAME}" \ | |||||
-s "|^${DISTNAME}/subprojects/${PORTNAME}/\(.*\)|${DISTNAME}/\1|" | |||||
CMAKE_OFF+= \ | |||||
Done Inline ActionsAfter this line, you do not need to do ${FLAVOR:U}, using ${FLAVOR} is enough. mat: After this line, you do not need to do `${FLAVOR:U}`, using `${FLAVOR}` is enough. | |||||
GSETTINGS_LOCALINSTALL \ | |||||
GSETTINGS_COMPILE | |||||
.if ${SLAVE_PORT} == "common" | |||||
COMMENT= GTK+ module to present application menus within the global menu bar (common files) | |||||
RUN_DEPENDS= | |||||
USE_GNOME= glib20 | |||||
CMAKE_ON= ENABLE_APPMENU_COMMON | |||||
GLIB_SCHEMAS= org.appmenu.gtk-module.gschema.xml | |||||
.elif ${SLAVE_PORT} == "gtk2" | |||||
COMMENT= GTK+ 2.x module to present application menus within the global menu bar | |||||
USE_GNOME= gtk20 | |||||
CMAKE_ON= ENABLE_APPMENU_GTK2_MODULE | |||||
.elif ${SLAVE_PORT} == "gtk3" | |||||
COMMENT= GTK+ 3.x module to present application menus within the global menu bar | |||||
USE_GNOME= gtk30 | |||||
CMAKE_ON= ENABLE_APPMENU_GTK3_MODULE | |||||
.endif | |||||
.endif | |||||
Done Inline ActionsPlease use flavor helpers. mat: Please use flavor helpers. | |||||
.include <bsd.port.mk> |
Please use flavor helpers.