summaryrefslogtreecommitdiff
path: root/sysutils/aperture/Makefile
blob: d453ba941d0200a48d2b10737c3a109cc2e31303 (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
55
56
57
58
59
60
61
62
63
64
# $NetBSD: Makefile,v 1.16 2001/11/29 01:12:47 hubertf Exp $

DISTNAME=	apNetBSD
PKGNAME=	aperture-2.0
PKGREVISION=	1
CATEGORIES=	sysutils x11
EXTRACT_SUFX=	.shar

# Not sure why ${MASTER_SITE_LOCAL:=${PKGNAME}} doesn't work, but the
# following does the correct substitution.
#
.for subdir in ${PKGNAME}
MASTER_SITES=	${MASTER_SITE_LOCAL:=${subdir}/}
.endfor

# The definitive location of the distfile is as below, but it's risky to depend
# on NetBSD-current files to stay stable, so don't we'll place new copies at
# MASTER_SITE_LOCAL and update this package accordingly.
#
#MASTER_SITES+=	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/xsrc/xfree/xc/programs/Xserver/hw/xfree86/etc/

MAINTAINER=	jlam@netbsd.org
COMMENT=	XFree86 Framebuffer "aperture" driver for NetBSD/i386

ONLY_FOR_PLATFORM=	NetBSD-*-i386

NO_SRC_ON_FTP=		Already in MASTER_SITE_LOCAL

ALL_TARGET=		cleandir depend all
DIST_SUBDIR=		${PKGNAME}
EXTRACT_CMD=		${SH} ${DOWNLOADED_DISTFILE}
INSTALL_FILE=		${WRKDIR}/INSTALL
INSTALL_TARGET=		dirs includes install
MANCOMPRESSED_IF_MANZ=	YES
WRKSRC=			${WRKDIR}
NO_CONFIGURE=		YES
OSVERSION_SPECIFIC=	YES

BSDSRCDIR?=	/nonexistent	# to override <bsd.own.mk>, MUST be
                                # set this way BEFORE bsd.prefs.mk

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

pre-extract:
.if ${BSDSRCDIR} == "/nonexistent"
	@${ECHO_MSG} "Please set BSDSRCDIR in /etc/mk.conf, pointing it"
	@${ECHO_MSG} "to a directory that contains sources that match"
	@${ECHO_MSG} "your currently running system (esp. kernel), e.g."
	@${ECHO_MSG} "/usr/src."
	@${FALSE}
.endif
.if !exists(${BSDSRCDIR}/sys/lib/libkern/libkern.h)
	@${ECHO_MSG} "Need a kernel source tree in ${BSDSRCDIR}/sys."
	@${ECHO_MSG} "(Or set BSDSRCDIR correctly in /etc/mk.conf.)"
	@${FALSE}
.endif

post-build:
	${SED} -e 's#$${PREFIX}#${PREFIX}#g' <${PKGDIR}/INSTALL \
	  >${INSTALL_FILE}

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

LDFLAGS=	# empty since we use BSD-style makefiles