2006-02-12 16:34:45 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.31 2006/02/12 21:34:45 brad Exp $
|
2000-09-24 03:03:59 -04:00
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386
|
1999-12-20 15:00:39 -05:00
|
|
|
|
2001-04-10 07:44:04 -04:00
|
|
|
COMMENT= "libraries necessary for FreeBSD compatibility"
|
|
|
|
|
2006-02-12 16:34:45 -05:00
|
|
|
DISTNAME= freebsd_lib-4.11
|
1999-12-20 15:00:39 -05:00
|
|
|
CATEGORIES= emulators
|
2006-02-12 16:34:45 -05:00
|
|
|
MASTER_SITES= http://comstyle.com/source/
|
1999-12-20 15:00:39 -05:00
|
|
|
EXTRACT_ONLY=
|
2000-02-19 19:35:43 -05:00
|
|
|
|
2001-04-10 07:45:08 -04:00
|
|
|
HOMEPAGE= http://www.freebsd.org/
|
|
|
|
|
2006-02-12 16:34:45 -05:00
|
|
|
# BSD
|
2000-02-19 19:35:43 -05:00
|
|
|
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
|
2000-02-19 19:35:43 -05:00
|
|
|
|
2001-02-08 10:32:33 -05:00
|
|
|
PREFIX?= ${LOCALBASE}/emul/freebsd
|
1999-12-20 15:00:39 -05:00
|
|
|
|
2004-11-19 17:12:28 -05:00
|
|
|
SYSTRACE_SUBST_VARS= TRUEPREFIX
|
|
|
|
|
1999-12-20 15:00:39 -05:00
|
|
|
pre-install:
|
2000-09-30 23:41:14 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}
|
|
|
|
${INSTALL_DATA_DIR} ${WRKINST}/emul
|
2000-06-20 14:14:12 -04:00
|
|
|
@ln -sf ${TRUEPREFIX} ${WRKINST}/emul/freebsd
|
1999-12-20 15:00:39 -05:00
|
|
|
|
|
|
|
do-install:
|
2003-10-26 18:49:31 -05:00
|
|
|
@zcat ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX} | (cd ${PREFIX}; pax -r)
|
1999-12-20 15:00:39 -05:00
|
|
|
|
|
|
|
post-install:
|
2004-01-09 14:08:34 -05:00
|
|
|
@sysctl -n kern.emul.freebsd > ${WRKDIR}/.emul_freebsd
|
|
|
|
@${SUDO} sysctl -w kern.emul.freebsd=1
|
2000-02-19 19:35:43 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/var/run
|
2001-02-16 11:40:57 -05:00
|
|
|
-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
|
2004-01-09 14:08:34 -05:00
|
|
|
@${SUDO} sysctl -w kern.emul.freebsd=`cat ${WRKDIR}/.emul_freebsd`
|
1999-12-20 15:00:39 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|