1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/x11/lemonbar/Makefile
Muhammad Moinur Rahman 094b355234
x11/lemonbar: Moved man to share/man
Approved by:    portmgr (blanket)
2024-02-26 19:40:35 +01:00

44 lines
968 B
Makefile

PORTNAME= lemonbar
DISTVERSIONPREFIX=v
DISTVERSION= 1.4
PORTREVISION= 2
CATEGORIES= x11
MAINTAINER= dmgk@FreeBSD.org
COMMENT= Lightweight xcb based bar
WWW= https://github.com/LemonBoy/bar
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= compiler:c11 gmake localbase:ldflags perl5 xorg
USE_GITHUB= yes
GH_ACCOUNT= LemonBoy
GH_PROJECT= bar
USE_PERL5= build
USE_XORG= xcb
CFLAGS+= -D__BSD_VISIBLE # for memrchr(3)
CONFLICTS_INSTALL= lemonbar-xft
PLIST_FILES= bin/lemonbar \
share/man/man1/lemonbar.1.gz
post-patch:
${REINPLACE_CMD} -e '/^CC.*=/d' -e '/^CFLAGS.*=/s/-Os//' \
${WRKSRC}/Makefile
post-build:
${LOCALBASE}/bin/pod2man --section=1 --name=lemonbar \
--center="lemonbar manual" \
--release="lemonbar ${PORTVERSION}" \
${WRKSRC}/README.pod > ${WRKSRC}/lemonbar.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/lemonbar ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/lemonbar.1 ${STAGEDIR}${PREFIX}/share/man/man1
.include <bsd.port.mk>