summaryrefslogtreecommitdiff
path: root/emulators/freebsd_lib/Makefile
blob: 6a927309ac053ad659340b5f9a6b396b90d5d110 (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
# $NetBSD: Makefile,v 1.4 1999/05/22 19:31:07 tv Exp $
#

DISTNAME=		freebsd_lib-2.2.7
CATEGORIES=		emulators
MASTER_SITES=		http://www.flame.org/NetBSD/
ONLY_FOR_ARCHS=		i386
ONLY_FOR_OPSYS=		NetBSD

MAINTAINER=		packages@netbsd.org

#
# The distfile is distributed under the GPL, so no re-distribution of
# binaries without source.
#
# Source can be found on
#	http://www.flame.org/NetBSD/freebsd_lib.2.2.7-src.tar.gz.
# It seems nasty to have to provide source when FreeBSD already does.
#
MIRROR_DISTFILE=	no

NO_BUILD=		yes
NO_WRKSUBDIR=		yes

do-install:
	@${INSTALL_DATA_DIR} ${PREFIX}/emul/freebsd
	@(cd ${WRKSRC} && find usr -type d -print) | \
		(cd ${PREFIX}/emul/freebsd && xargs ${INSTALL_DATA_DIR})
	@cd ${WRKSRC} && for file in `find usr -name '*.*' -print`; do \
		${INSTALL_DATA} $$file ${PREFIX}/emul/freebsd/$$file; \
	done
	@${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${INSTALL_FILE} - POST-INSTALL

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