Add optional support for Xft.
PR: ports/143951 Submitted by: Ashish SHUKLA <wahjava at gmail.com> Reviewed by: maintainer
This commit is contained in:
parent
bcb2b50b62
commit
85bfb74d6c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=254430
3 changed files with 28 additions and 30 deletions
|
@ -7,16 +7,34 @@
|
|||
|
||||
PORTNAME= dmenu
|
||||
PORTVERSION= 4.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11
|
||||
MASTER_SITES= http://code.suckless.org/dl/tools/ \
|
||||
http://schot.a-eskwadraat.nl/files/
|
||||
PATCH_SITES= http://schot.a-eskwadraat.nl/files/
|
||||
|
||||
MAINTAINER= schot@a-eskwadraat.nl
|
||||
COMMENT= X11 menu application (not only) for the dwm window manager
|
||||
|
||||
OPTIONS= XFT "XFT support" On
|
||||
|
||||
USE_XORG= x11 xinerama
|
||||
|
||||
MAN1= dmenu.1
|
||||
PLIST_FILES= bin/dmenu bin/dmenu_path bin/dmenu_run
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if defined(WITH_XFT)
|
||||
PATCHFILES+= ${PORTNAME}-${PORTVERSION}-xft.diff
|
||||
PATCH_DIST_STRIP= -p1
|
||||
USE_XORG+= xft
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${GREP} -Rl '%%[[:alpha:]]\+%%' ${WRKSRC}|${XARGS} ${REINPLACE_CMD} \
|
||||
-e "s,%%PREFIX%%,${PREFIX},g" \
|
||||
-e "s,%%LOCALBASE%%,${LOCALBASE},g" \
|
||||
-e "s,%%MANPREFIX%%,${MANPREFIX}/man,g"
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
MD5 (dmenu-4.0.tar.gz) = 66e761a653930cc8a21614ba9fedf903
|
||||
SHA256 (dmenu-4.0.tar.gz) = c04508285e21a1fc055b76890ec47e9956d8edc4d460dbcac59f96f061b2e862
|
||||
SIZE (dmenu-4.0.tar.gz) = 8576
|
||||
MD5 (dmenu-4.0-xft.diff) = e259bf32b4ff15d345581f934ba99e46
|
||||
SHA256 (dmenu-4.0-xft.diff) = d7bbc1883453ef2d1025111fec48831f453c586007349a13ba2ab4b54177fd15
|
||||
SIZE (dmenu-4.0-xft.diff) = 8596
|
||||
|
|
|
@ -1,36 +1,13 @@
|
|||
--- config.mk.orig 2009-04-18 13:50:04.000000000 +0200
|
||||
+++ config.mk 2009-04-21 13:15:36.000000000 +0200
|
||||
@@ -4,11 +4,11 @@
|
||||
--- ./config.mk.orig 2010-04-04 18:37:12.000000000 +0530
|
||||
+++ ./config.mk 2010-04-04 18:37:36.000000000 +0530
|
||||
@@ -4,8 +4,8 @@
|
||||
# Customize below to fit your system
|
||||
|
||||
# paths
|
||||
-PREFIX = /usr/local
|
||||
-MANPREFIX = ${PREFIX}/share/man
|
||||
+PREFIX?= /usr/local
|
||||
+MANPREFIX = ${PREFIX}/man
|
||||
+PREFIX = %%PREFIX%%
|
||||
+MANPREFIX = %%MANPREFIX%%
|
||||
|
||||
-X11INC = /usr/X11R6/include
|
||||
-X11LIB = /usr/X11R6/lib
|
||||
+X11INC = $(LOCALBASE)/include
|
||||
+X11LIB = $(LOCALBASE)/lib
|
||||
|
||||
# Xinerama, comment if you don't want it
|
||||
XINERAMALIBS = -L${X11LIB} -lXinerama
|
||||
@@ -19,13 +19,13 @@
|
||||
LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS}
|
||||
|
||||
# flags
|
||||
-CPPFLAGS = -D_BSD_SOURCE -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
|
||||
-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
||||
-LDFLAGS = -s ${LIBS}
|
||||
+CPPFLAGS+= -D_BSD_SOURCE -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
|
||||
+CFLAGS+= -std=c99 ${INCS} ${CPPFLAGS}
|
||||
+LDFLAGS+= ${LIBS}
|
||||
|
||||
# Solaris
|
||||
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
||||
#LDFLAGS = ${LIBS}
|
||||
|
||||
# compiler and linker
|
||||
-CC = cc
|
||||
+CC?= cc
|
||||
X11INC = /usr/X11R6/include
|
||||
X11LIB = /usr/X11R6/lib
|
||||
|
|
Loading…
Reference in a new issue