Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Dec 2015 16:21:33 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r404248 - head/x11/lemonbar
Message-ID:  <201512221621.tBMGLX97068290@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Tue Dec 22 16:21:33 2015
New Revision: 404248
URL: https://svnweb.freebsd.org/changeset/ports/404248

Log:
  x11/lemonbar: Fix man page, steamline makefile, fix build for FreeBSD 9
  
  PR:		205512
  Submitted by:	maintainer

Modified:
  head/x11/lemonbar/Makefile

Modified: head/x11/lemonbar/Makefile
==============================================================================
--- head/x11/lemonbar/Makefile	Tue Dec 22 15:54:35 2015	(r404247)
+++ head/x11/lemonbar/Makefile	Tue Dec 22 16:21:33 2015	(r404248)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512221621.tBMGLX97068290>