summaryrefslogtreecommitdiff
path: root/emulators/freebsd_lib/Makefile
blob: 689a7db5636f7ed28bcab54b3849ea1e451aff5e (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
# $NetBSD: Makefile,v 1.1.1.1 1998/09/02 20:57:02 explorer Exp $
#

DISTNAME=		freebsd_lib-2.2.7
CATEGORIES=		emulators
MASTER_SITES=		${MASTER_SITE_LOCAL} http://www.flame.org/NetBSD/
ONLY_FOR_ARCHS=		i386

MAINTAINER=		packages@netbsd.org

# The distfile is distributed under the GPL, so no re-distribution of
# binaries without source.
MIRROR_DISTFILE=	no

NO_BUILD=		yes
EXTRACT_ONLY=		# empty
NO_WRKSUBDIR=		yes

EMUL_DIR=	${PREFIX}/emul
FREEBSD_DIR=	${EMUL_DIR}/freebsd

pre-install:
	@[ -d ${EMUL_DIR} ] || ${MKDIR} ${EMUL_DIR}
	@if [ ! -e /emul ] || \
	    [ "`ls -i /emul/.`" != "`ls -i ${EMUL_DIR}`" ]; \
	 then \
	   ${ECHO} -n "You must create a link \"/emul\" "; \
	   ${ECHO} "pointing to \"${EMUL_DIR}\"."; \
	   exit 1; \
	 fi

do-install:
	${MKDIR} ${FREEBSD_DIR}
	(cd ${FREEBSD_DIR}; pax -rzf ${DISTDIR}/${DISTNAME}.tar.gz)

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