summaryrefslogtreecommitdiff
path: root/x11/dmenu/Makefile
blob: 904e1ae32d246b50f843ec4268b0f7d0af4b5acd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $NetBSD: Makefile,v 1.10 2012/10/29 05:06:09 asau Exp $
#

DISTNAME=	dmenu-4.5
CATEGORIES=	x11
MASTER_SITES=	http://dl.suckless.org/tools/

MAINTAINER=	leot1990@users.sourceforge.net
HOMEPAGE=	http://tools.suckless.org/dmenu
COMMENT=	Dynamic menu for X
LICENSE=	mit

MAKE_JOBS_SAFE=	no

NO_CONFIGURE=	yes

# Adjust config.mk
SUBST_CLASSES+=		makefile
SUBST_STAGE.makefile=	pre-build
SUBST_MESSAGE.makefile=	Fixing config.mk
SUBST_FILES.makefile=	config.mk
SUBST_SED.makefile+=	-e 's,/usr/local,${PREFIX},g'
SUBST_SED.makefile+=	-e 's,share/man,${PKGMANDIR},g'
SUBST_SED.makefile+=	-e 's,/usr/X11R6,${X11BASE},'
# -D_XOPEN_SOURCE=600 is needed for usleep(3) and S_ISLNK() macro in <sys/stat.h>
SUBST_SED.makefile+=	-e 's,^CPPFLAGS *= ,CPPFLAGS = -D_XOPEN_SOURCE=600 ,'
SUBST_SED.makefile+=	-e 's,^CFLAGS *= ,CFLAGS += ,'
SUBST_SED.makefile+=	-e 's,^LDFLAGS *= ,LDFLAGS += ,'
SUBST_SED.makefile+=	-e 's/cc/${CC:Q}/'

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

.include "options.mk"

.include "../../mk/bsd.pkg.mk"