1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/x11/dmenu/Makefile
Baptiste Daroussin 7c50e860e7 Support stage
Strip binaries
2014-01-06 20:47:02 +00:00

44 lines
1.1 KiB
Makefile

# Created by: Jeroen Schot <schot@a-eskwadraat.nl>
# $FreeBSD$
PORTNAME= dmenu
PORTVERSION= 4.5
CATEGORIES= x11
MASTER_SITES= http://dl.suckless.org/tools/ \
http://schot.a-eskwadraat.nl/files/
PATCH_SITES= http://tools.suckless.org/dmenu/patches/ \
http://schot.a-eskwadraat.nl/files/
PATCH_DIST_STRIP=-p1
MAINTAINER= schot@a-eskwadraat.nl
COMMENT= X11 menu application designed for the dwm window manager
LICENSE= MIT
OPTIONS_DEFINE= XINERAMA XFT
OPTIONS_DEFAULT= XINERAMA
USE_XORG= x11
PLIST_FILES= bin/dmenu bin/dmenu_run bin/stest \
man/man1/dmenu.1.gz man/man1/stest.1.gz
XINERAMA_USE= XORG=xinerama
XFT_USE= XORG=xft
XFT_PATCHFILES= ${PORTNAME}-${PORTVERSION}-xft.diff
post-patch:
@${GREP} -Rl '%%[[:alpha:]]\+%%' ${WRKSRC}|${XARGS} ${REINPLACE_CMD} \
-e "s,%%PREFIX%%,${PREFIX},g" \
-e "s,%%LOCALBASE%%,${LOCALBASE},g" \
-e "s,%%MANPREFIX%%,${MANPREFIX},g"
@${REINPLACE_CMD} -e 's,$${XINERAMALIBS},,g' \
-e 's,$${XINERAMAFLAGS},,g' ${WRKSRC}/config.mk
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dmenu \
${STAGEDIR}${PREFIX}/bin/stest
.include <bsd.port.mk>