8abaaa4252
PR: ports/147192 Submitted by: Demelier David <demelier.david at gmail.com> Reviewed by: Jeroen Schot (maintainer)
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# New ports collection makefile for: dmenu
|
|
# Date created: August 4, 2006
|
|
# Whom: Jeroen Schot <schot@a-eskwadraat.nl>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dmenu
|
|
PORTVERSION= 4.1.1
|
|
CATEGORIES= x11
|
|
MASTER_SITES= http://dl.suckless.org/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" Off
|
|
|
|
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
|
|
|
|
pre-everything::
|
|
@${ECHO_MSG} "You can build dmenu with your own config.h using the DMENU_CONF knob:"
|
|
@${ECHO_MSG} "make DMENU_CONF=/path/to/dmenu/config.h install clean"
|
|
|
|
post-extract:
|
|
.if defined(DMENU_CONF)
|
|
@${ECHO_MSG} "creating config.h from ${DMENU_CONF}"
|
|
@${CP} ${DMENU_CONF} ${WRKSRC}/config.h
|
|
.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>
|