1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/x11/lemonbar/Makefile
Niclas Zeising 4c46ca73d8 Add USES=xorg USES=gl, ports categories x
Add USES=xorg and USES=gl to ports in categories starting with 'x'
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
2019-11-07 18:36:55 +00:00

45 lines
1.0 KiB
Makefile

# Created by: Evgeni Dimitrov <evgeni.dimitrov@gmail.com>
# $FreeBSD$
PORTNAME= lemonbar
DISTVERSIONPREFIX=v
DISTVERSION= 1.3
PORTREVISION= 3
CATEGORIES= x11
MAINTAINER= dmgk@FreeBSD.org
COMMENT= Lightweight xcb based bar
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= compiler:c11 gmake localbase:ldflags perl5 xorg
USE_PERL5= build
USE_XORG= xcb
USE_GITHUB= yes
GH_ACCOUNT= LemonBoy
GH_PROJECT= bar
PLIST_FILES= bin/lemonbar \
man/man1/lemonbar.1.gz
post-patch:
${REINPLACE_CMD} -e '/^CC.*=/d' -e '/^CFLAGS.*=/s/-Os//' \
${WRKSRC}/Makefile
# Upstream PR: https://github.com/LemonBoy/bar/pull/210
${REINPLACE_CMD} -e '/^VERSION/s/1\.2/1.3/' \
${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}/man/man1
.include <bsd.port.mk>