openbsd-ports/emulators/freebsd_lib/Makefile

47 lines
1.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.27 2004/01/09 19:08:34 sturm Exp $
2000-09-24 03:03:59 -04:00
ONLY_FOR_ARCHS= i386
COMMENT= "libraries necessary for FreeBSD compatibility"
DISTNAME= freebsd_lib-4.0
CATEGORIES= emulators
2002-08-25 19:05:49 -04:00
MASTER_SITES= ftp://openbsd.comstyle.com/pub/brad/source/
EXTRACT_ONLY=
2001-04-10 07:45:08 -04:00
HOMEPAGE= http://www.freebsd.org/
# XXX no license, but obviously bsd licensed
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
NO_BUILD= Yes
2002-10-26 08:52:48 -04:00
NO_REGRESS= Yes
NO_SYSTRACE= "creates .../emul/freebsd/var/run/ld.so.hints"
PREFIX?= ${LOCALBASE}/emul/freebsd
pre-install:
2000-09-30 23:41:14 -04:00
${INSTALL_DATA_DIR} ${PREFIX}
${INSTALL_DATA_DIR} ${WRKINST}/emul
@ln -sf ${TRUEPREFIX} ${WRKINST}/emul/freebsd
do-install:
@zcat ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX} | (cd ${PREFIX}; pax -r)
post-install:
@sysctl -n kern.emul.freebsd > ${WRKDIR}/.emul_freebsd
@${SUDO} sysctl -w kern.emul.freebsd=1
${INSTALL_DATA_DIR} ${PREFIX}/var/run
-chroot ${WRKINST} ${TRUEPREFIX}/sbin/ldconfig -aout \
-f ${TRUEPREFIX}/var/run/ld.so.hints \
/usr/lib/compat/aout /usr/X11R6/lib/aout
-chroot ${WRKINST} ${TRUEPREFIX}/sbin/ldconfig -elf \
-f ${TRUEPREFIX}/var/run/ld-elf.so.hints \
/usr/lib/compat /usr/X11R6/lib
@${SUDO} sysctl -w kern.emul.freebsd=`cat ${WRKDIR}/.emul_freebsd`
.include <bsd.port.mk>