1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/x11/jgmenu/Makefile
2021-04-23 20:56:21 +00:00

61 lines
1.5 KiB
Makefile

PORTNAME= jgmenu
DISTVERSIONPREFIX= v
DISTVERSION= 4.3.0
CATEGORIES= x11
MAINTAINER= lcook@FreeBSD.org
COMMENT= Simple X11 menu
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= 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
INSTALLS_ICONS= yes
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>