mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
2c672a4de9
While here, make sure gtk-update-icon-cache is only on run dependency where added as a dependency Enforce gtk3 to depend on gtk-update-icon-cache (previously it was inheriting the dependency)
63 lines
1.5 KiB
Makefile
63 lines
1.5 KiB
Makefile
PORTNAME= jgmenu
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 4.4.0
|
|
CATEGORIES= x11
|
|
|
|
MAINTAINER= lcook@FreeBSD.org
|
|
COMMENT= Simple X11 menu
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libharfbuzz.so:print/harfbuzz \
|
|
libpng.so:graphics/png
|
|
|
|
USES= compiler:c11 gmake gnome pkgconfig python:3.4+ shebangfix xorg
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= johanmalm
|
|
USE_GNOME= cairo gdkpixbuf2 glib20 librsvg2 libxml2 pango
|
|
USE_XORG= x11 xrandr
|
|
|
|
SHEBANG_FILES= contrib/gtktheme/*.py contrib/pmenu/*.py src/*.py
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --libexecdir=${PREFIX}/libexec \
|
|
--prefix=${PREFIX}
|
|
|
|
PORTDOCS= ${_DOCS:T}
|
|
|
|
OPTIONS_DEFINE= DOCS LX PMENU
|
|
OPTIONS_DEFAULT= LX PMENU
|
|
OPTIONS_SUB= yes
|
|
|
|
LX_DESC= Generate menu data for freedesktop defined application menus
|
|
PMENU_DESC= Generate menu data based on desktop and directory files
|
|
|
|
LX_LIB_DEPENDS+= libmenu-cache.so:x11/menu-cache
|
|
LX_CONFIGURE_ON= --with-lx
|
|
PMENU_CONFIGURE_ON= --with-pmenu
|
|
|
|
_LIBEXEC= greeneye apps socket i18n obtheme config ob
|
|
_DOCS= AUTHORS.md CONTRIBUTING.md INSTALL.md NEWS.md README.md TODO.md \
|
|
docs/coding_style docs/default.csv docs/notes_on_icons \
|
|
docs/relnotes/${DISTVERSION}.txt
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MLX}
|
|
_LIBEXEC+= lx
|
|
.endif
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
.for f in ${_LIBEXEC}
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}/${PORTNAME}-${f}
|
|
.endfor
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC} && \
|
|
${INSTALL_DATA} ${_DOCS} \
|
|
${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|