aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesús Daniel Colmenares Oviedo <DtxdF@riseup.net>2022-08-06 01:19:21 +0000
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2022-08-06 01:25:55 +0000
commit6a3e56067d8f7846539afbbdb37fa963d8fbc78b (patch)
treee4b9d8c172ece01c22958a44acf1460a7f167157
parent92e0e1e3191a5b71c905a5efcc10d0a4dc730f3b (diff)
downloadports-6a3e56067d8f7846539afbbdb37fa963d8fbc78b.tar.gz
ports-6a3e56067d8f7846539afbbdb37fa963d8fbc78b.zip
x11/lemonbar-xft: New port: Fork of lemonbar with support for Xft (fontconfig typefaces)
lemonbar-xft is a lightweight bar entirely based on XCB. Provides full UTF-8 support, basic formatting, RandR and Xinerama support and EWMH compliance without wasting your precious memory. This fork add Xft support WWW: https://gitlab.com/protesilaos/lemonbar-xft PR: 265629
-rw-r--r--x11/Makefile1
-rw-r--r--x11/lemonbar-xft/Makefile28
-rw-r--r--x11/lemonbar-xft/distinfo3
-rw-r--r--x11/lemonbar-xft/files/patch-Makefile27
-rw-r--r--x11/lemonbar-xft/pkg-descr5
5 files changed, 64 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile
index 4b0ab8309b40..7ec94c17f581 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -142,6 +142,7 @@
SUBDIR += konsole
SUBDIR += lavalauncher
SUBDIR += lemonbar
+ SUBDIR += lemonbar-xft
SUBDIR += libICE
SUBDIR += libSM
SUBDIR += libX11
diff --git a/x11/lemonbar-xft/Makefile b/x11/lemonbar-xft/Makefile
new file mode 100644
index 000000000000..78765642d145
--- /dev/null
+++ b/x11/lemonbar-xft/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= lemonbar-xft
+DISTVERSION= g20201213
+CATEGORIES= x11
+
+MAINTAINER= DtxdF@riseup.net
+COMMENT= Fork of lemonbar with support for Xft (fontconfig typefaces)
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libfreetype.so:print/freetype2 \
+ libfontconfig.so:x11-fonts/fontconfig
+
+USES= gmake localbase:ldflags perl5 xorg
+
+USE_XORG= xcb xft x11
+USE_PERL5= build
+
+CONFLICTS_INSTALL= lemonbar
+
+PLIST_FILES= bin/lemonbar \
+ man/man1/lemonbar.1.gz
+
+USE_GITLAB= yes
+GL_ACCOUNT= protesilaos
+GL_COMMIT= 0042efd2ec1477ab96eb044ebba72a10aefff21f
+
+.include <bsd.port.mk>
diff --git a/x11/lemonbar-xft/distinfo b/x11/lemonbar-xft/distinfo
new file mode 100644
index 000000000000..ce52d7c1f85a
--- /dev/null
+++ b/x11/lemonbar-xft/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1659558248
+SHA256 (protesilaos-lemonbar-xft-0042efd2ec1477ab96eb044ebba72a10aefff21f_GL0.tar.gz) = cfe2672cb6ff01631c15a7cbcc48f5dcbda4fa2ac4dacd9095a6744089913534
+SIZE (protesilaos-lemonbar-xft-0042efd2ec1477ab96eb044ebba72a10aefff21f_GL0.tar.gz) = 17111
diff --git a/x11/lemonbar-xft/files/patch-Makefile b/x11/lemonbar-xft/files/patch-Makefile
new file mode 100644
index 000000000000..88d4c6a0c048
--- /dev/null
+++ b/x11/lemonbar-xft/files/patch-Makefile
@@ -0,0 +1,27 @@
+--- Makefile 2022-08-04 15:25:38 UTC
++++ Makefile
+@@ -7,7 +7,7 @@ ifneq "$(GIT_DESC)" ""
+ endif
+
+ CC ?= gcc
+-CFLAGS += -Wall -std=c99 -Os -DVERSION="\"$(VERSION)\"" -I/usr/include/freetype2
++CFLAGS += -Wall -std=c99 -DVERSION="\"$(VERSION)\"" -I${LOCALBASE}/include/freetype2
+ LDFLAGS += -lxcb -lxcb-xinerama -lxcb-randr -lX11 -lX11-xcb -lXft -lfreetype -lz -lfontconfig
+ CFDEBUG = -g3 -pedantic -Wall -Wunused-parameter -Wlong-long \
+ -Wsign-conversion -Wconversion -Wimplicit-function-declaration
+@@ -38,11 +38,12 @@ clean:
+ rm -f ./${EXEC}
+
+ install: lemonbar doc
+- install -D -m 755 lemonbar ${DESTDIR}${BINDIR}/lemonbar
+- install -D -m 644 lemonbar.1 ${DESTDIR}${PREFIX}/share/man/man1/lemonbar.1
++ install -d ${DESTDIR}${BINDIR}
++ install -m 755 lemonbar ${DESTDIR}${BINDIR}/lemonbar
++ install -m 644 lemonbar.1 ${DESTDIR}${PREFIX}/man/man1/lemonbar.1
+
+ uninstall:
+ rm -f ${DESTDIR}${BINDIR}/lemonbar
+- rm -f $(DESTDIR)$(PREFIX)/share/man/man1/lemonbar.1
++ rm -f $(DESTDIR)$(PREFIX)/man/man1/lemonbar.1
+
+ .PHONY: all debug clean install
diff --git a/x11/lemonbar-xft/pkg-descr b/x11/lemonbar-xft/pkg-descr
new file mode 100644
index 000000000000..8e48c6f19b46
--- /dev/null
+++ b/x11/lemonbar-xft/pkg-descr
@@ -0,0 +1,5 @@
+lemonbar-xft is a lightweight bar entirely based on XCB. Provides full UTF-8
+support, basic formatting, RandR and Xinerama support and EWMH compliance
+without wasting your precious memory. This fork add Xft support
+
+WWW: https://gitlab.com/protesilaos/lemonbar-xft