summaryrefslogtreecommitdiff
path: root/devel/id-utils/Makefile
blob: c11602b44706df206a5a993042a0d46db2d8d8a8 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $NetBSD: Makefile,v 1.40 2005/12/05 20:50:04 rillig Exp $

DISTNAME=	id-utils-3.2
PKGREVISION=	6
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GNU:=id-utils/}

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://www.gnu.org/software/idutils/idutils.html
COMMENT=	Classic Berkeley gid/lid tools for looking up variables in code

CONFLICTS=	sh-utils>=2.0nb2

BUILD_USES_MSGFMT=	yes

USE_PKGLOCALEDIR=	yes

INFO_FILES=	id-utils.info
GNU_CONFIGURE=	yes

.include "../../mk/bsd.prefs.mk"

.if defined(USE_XEMACS)
EMACS=			${LOCALBASE}/bin/xemacs
BUILD_DEPENDS+=		xemacs-[0-9]*:../../editors/xemacs
BUILD_DEPENDS+=		xemacs-packages-[0-9]*:../../editors/xemacs-packages
.elif defined(USE_EMACS)
EMACS=			${LOCALBASE}/bin/emacs
BUILD_DEPENDS+=		emacs-[0-9]*:../../editors/emacs
.endif

# install byte-compiled file here whenever we use emacs or xemacs...
.if defined(USE_EMACS) || defined(USE_XEMACS)
# we end-up installing .el file there whenever we use emacs or xemacs
LISPDIR?=		share/emacs/site-lisp
CLISPDIR=		${LISPDIR}
.else
# ...or don't install it at all
LISPDIR?=		'@comment '
CLISPDIR?=		'@comment '
.endif
# if not already, set this to the *full* pathname to false command
# so configure won't search further for emacs
EMACS?=			${FALSE:S|^false$|/usr/bin/false|}

CONFIGURE_ENV+=		EMACS=${EMACS:Q}
BUILD_DEFS+=		EMACS
MAKE_ENV+=		BSD_SETENV=${SETENV:Q}

PLIST_SUBST+=		LISPDIR=${LISPDIR:Q}
PLIST_SUBST+=		CLISPDIR=${CLISPDIR:Q}

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"