openbsd-ports/emulators/linux_lib/Makefile

46 lines
1.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.16 2000/02/11 01:10:02 espie Exp $
1999-03-06 23:41:00 -05:00
# $NetBSD: Makefile,v 1.10 1998/04/24 09:07:55 agc Exp $
# $FreeBSD Id: Makefile,v 1.19 1997/12/04 17:34:28 asami Exp $
1998-05-07 05:20:16 -04:00
1999-03-28 18:11:53 -05:00
DISTNAME= linux_lib-2.6.1
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_LOCAL}
1999-03-28 18:11:53 -05:00
ONLY_FOR_ARCHS= i386
NO_CDROM= "GPL: must distribute with source"
1998-05-07 05:20:16 -04:00
1999-03-28 18:11:53 -05:00
MAINTAINER= brad@openbsd.org
1998-05-07 05:20:16 -04:00
1999-03-28 18:11:53 -05:00
PREFIX= /emul/linux
NO_MTREE= yes
NO_BUILD= yes
NO_PATCH= yes
NO_CONFIGURE= yes
NO_PACKAGE= yes
2000-02-10 15:39:40 -05:00
EXTRACT_ONLY=
1998-05-07 05:20:16 -04:00
pre-install:
@[ -d ${PREFIX} ] || mkdir -p ${PREFIX}
1998-05-07 05:20:16 -04:00
do-install:
1999-05-03 00:49:42 -04:00
@zcat ${DISTDIR}/${DISTNAME}.tar.gz | (cd ${PREFIX}; pax -r)
1998-05-07 05:20:16 -04:00
post-install:
1998-11-11 03:01:11 -05:00
# Creating usr/local/lib to prevent linux ldconfig from scanning OpenBSD
# local libraries...
@mkdir -p ${PREFIX}/usr/local/lib
1998-11-11 03:01:11 -05:00
${PREFIX}/sbin/ldconfig || /usr/bin/true
-@rmdir ${PREFIX}/usr/local/lib ${PREFIX}/usr/local
mkdir -p ${PREFIX}/usr/lib/zoneinfo
ln -sf /etc/localtime ${PREFIX}/usr/lib/zoneinfo/localtime
mkdir -p ${PREFIX}/dev
ln -sf /dev/console ${PREFIX}/dev/tty0
ln -sf /dev/ttyC0 ${PREFIX}/dev/tty1
ln -sf /dev/ttyC1 ${PREFIX}/dev/tty2
ln -sf /dev/ttyC2 ${PREFIX}/dev/tty3
ln -sf /dev/ttyC3 ${PREFIX}/dev/tty4
ln -sf /dev/sound ${PREFIX}/dev/dsp
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL
1998-05-07 05:20:16 -04:00
.include <bsd.port.mk>