2015-12-21 16:33:30 +00:00
|
|
|
# Created by: Evgeni Dimitrov <evgeni.dimitrov@gmail.com>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= lemonbar
|
2016-05-15 14:28:50 +00:00
|
|
|
DISTVERSIONPREFIX=v
|
2020-11-21 12:33:49 +00:00
|
|
|
DISTVERSION= 1.4
|
2015-12-21 16:33:30 +00:00
|
|
|
CATEGORIES= x11
|
|
|
|
|
2019-09-16 20:55:08 +00:00
|
|
|
MAINTAINER= dmgk@FreeBSD.org
|
2015-12-21 16:33:30 +00:00
|
|
|
COMMENT= Lightweight xcb based bar
|
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2019-11-07 18:36:55 +00:00
|
|
|
USES= compiler:c11 gmake localbase:ldflags perl5 xorg
|
2015-12-21 16:33:30 +00:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= LemonBoy
|
|
|
|
GH_PROJECT= bar
|
|
|
|
|
2020-11-21 12:33:49 +00:00
|
|
|
USE_PERL5= build
|
|
|
|
USE_XORG= xcb
|
|
|
|
CFLAGS+= -D__BSD_VISIBLE # for memrchr(3)
|
|
|
|
|
2015-12-21 16:33:30 +00:00
|
|
|
PLIST_FILES= bin/lemonbar \
|
|
|
|
man/man1/lemonbar.1.gz
|
|
|
|
|
|
|
|
post-patch:
|
2015-12-22 16:21:33 +00:00
|
|
|
${REINPLACE_CMD} -e '/^CC.*=/d' -e '/^CFLAGS.*=/s/-Os//' \
|
|
|
|
${WRKSRC}/Makefile
|
2015-12-21 16:33:30 +00:00
|
|
|
|
|
|
|
post-build:
|
2015-12-22 16:21:33 +00:00
|
|
|
${LOCALBASE}/bin/pod2man --section=1 --name=lemonbar \
|
|
|
|
--center="lemonbar manual" \
|
|
|
|
--release="lemonbar ${PORTVERSION}" \
|
|
|
|
${WRKSRC}/README.pod > ${WRKSRC}/lemonbar.1
|
2015-12-21 16:33:30 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lemonbar ${STAGEDIR}${PREFIX}/bin
|
2015-12-22 16:21:33 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/lemonbar.1 ${STAGEDIR}${PREFIX}/man/man1
|
2015-12-21 16:33:30 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|