x11/lemonbar: Fix man page, steamline makefile, fix build for FreeBSD 9
PR: 205512 Submitted by: maintainer
This commit is contained in:
parent
78dcba82bc
commit
668dc15ed5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=404248
1 changed files with 10 additions and 10 deletions
|
@ -4,6 +4,7 @@
|
|||
PORTNAME= lemonbar
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11
|
||||
|
||||
MAINTAINER= evgeni.dimitrov@gmail.com
|
||||
|
@ -12,7 +13,7 @@ COMMENT= Lightweight xcb based bar
|
|||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= gmake perl5
|
||||
USES= compiler:c11 gmake perl5
|
||||
USE_PERL5= build
|
||||
USE_XORG= xcb
|
||||
|
||||
|
@ -20,25 +21,24 @@ USE_GITHUB= yes
|
|||
GH_ACCOUNT= LemonBoy
|
||||
GH_PROJECT= bar
|
||||
|
||||
CFLAGS+= -I${LOCALBASE}/include -DVERSION=${DISTVERSION}
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
||||
PLIST_FILES= bin/lemonbar \
|
||||
man/man1/lemonbar.1.gz
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e '/STRIP/d' -e '/^CC.*=/d' -e '/^CFLAGS.*=/d' \
|
||||
-e 's/^LDFLAGS.*=\(.*\)/LDFLAGS+=\1/' ${WRKSRC}/Makefile
|
||||
${REINPLACE_CMD} -e '/^CC.*=/d' -e '/^CFLAGS.*=/s/-Os//' \
|
||||
${WRKSRC}/Makefile
|
||||
|
||||
post-build:
|
||||
${LOCALBASE}/bin/pod2man --section=1 --name=bar-aint-recursive \
|
||||
--center="bar-aint-recursive manual" \
|
||||
--release="bar-aint-recursive ${PORTVERSION}" \
|
||||
${WRKSRC}/README.pod > ${WRKSRC}/bar.1
|
||||
${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}/bar.1 \
|
||||
${STAGEDIR}${PREFIX}/man/man1/lemonbar.1
|
||||
${INSTALL_MAN} ${WRKSRC}/lemonbar.1 ${STAGEDIR}${PREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue