summaryrefslogtreecommitdiff
path: root/pkgtools/xpkgwedge/Makefile
blob: 3c0dd1596f563fe1dca361b32b7eaeb71a5f1187 (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
# $NetBSD: Makefile,v 1.10 1998/08/23 21:25:19 frueauf Exp $
#

DISTNAME=	xpkgwedge-0.4
CATEGORIES=	devel x11
DISTFILES=	# none

MAINTAINER=	tv@netbsd.org

NO_CHECKSUM=	yes
NO_BUILD=	yes
NO_WRKSUBDIR=	yes
USE_IMAKE=	yes

pre-extract:
	@if [ ! -f ${X11BASE}/include/X11/X.h ]; then \
		${ECHO} 'xpkgwedge requires $$X11BASE to point to the real X distribution.'; \
		${ECHO} 'If you are setting this variable in mk.conf, fix or remove the setting'; \
		${ECHO} 'and then install xpkgwedge.'; \
		${FALSE}; \
	fi

pre-configure:
	@${CP} ${FILESDIR}/Imakefile ${FILESDIR}/xpkgwedge.def ${WRKSRC}

pre-install:
	@${SED} -e 's|@@PREFIX@@|${LOCALBASE}|g' < ${PKGDIR}/MESSAGE.pre \
		> ${PKGDIR}/MESSAGE

pre-clean:
	@${RM} -f ${PKGDIR}/MESSAGE

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

# In order to force xpkgwedge to install into X11BASE, we forcibly override
# any user setting of USE_LOCALBASE_FOR_X11.  _NO_ other pkg should do this.
PREFIX=${X11BASE}

# Clear the build dependencies list so that xpkgwedge will not be recursively
# dependent on itself.
BUILD_DEPENDS=