2006-05-23 00:22:02 +02:00
|
|
|
# $NetBSD: Makefile,v 1.16 2006/05/22 22:22:03 jlam Exp $
|
2001-02-04 08:15:59 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "sparc64"
|
|
|
|
MACHINE32_ARCH= sparc
|
|
|
|
.else
|
|
|
|
MACHINE32_ARCH= ${MACHINE_ARCH}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
DISTNAME= compat15-${MACHINE32_ARCH}
|
|
|
|
PKGNAME= netbsd32_compat15-1.0
|
|
|
|
CATEGORIES= emulators
|
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2003-07-17 23:31:04 +02:00
|
|
|
HOMEPAGE= http://www.NetBSD.org/Releases/formal-1.5/index.html
|
2001-02-17 19:38:11 +01:00
|
|
|
COMMENT= 32-bit shared libraries for NetBSD 1.5 (and earlier) compatibility
|
2001-02-04 08:15:59 +01:00
|
|
|
|
2002-11-08 17:43:34 +01:00
|
|
|
CONFLICTS= netbsd32_compat16-[0-9]*
|
|
|
|
|
2001-02-04 08:15:59 +01:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-sparc64
|
|
|
|
|
2005-09-28 22:52:18 +02:00
|
|
|
NO_MTREE= yes
|
|
|
|
NO_BUILD= yes
|
2006-05-23 00:22:02 +02:00
|
|
|
CHECK_SHLIBS_SUPPORTED= no
|
2001-02-04 08:15:59 +01:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
FILES_SUBST+= COMPAT_LIBEXECDIR=${COMPAT_LIBEXECDIR:Q}
|
|
|
|
FILES_SUBST+= COMPAT_LIBDIR=${COMPAT_LIBDIR:Q}
|
|
|
|
FILES_SUBST+= COMPAT_XLIBDIR=${COMPAT_XLIBDIR:Q}
|
|
|
|
FILES_SUBST+= MACHINE_ARCH=${MACHINE_ARCH:Q}
|
|
|
|
FILES_SUBST+= OBJECT_FMT=${OBJECT_FMT:Q}
|
|
|
|
FILES_SUBST+= LDCONFIG=${LDCONFIG:Q}
|
2001-02-04 08:15:59 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
EMULSUBDIR= emul/netbsd32
|
|
|
|
COMPAT_LIBDIR= ${EMULSUBDIR}/usr/lib
|
|
|
|
COMPAT_LIBEXECDIR= ${EMULSUBDIR}/usr/libexec
|
|
|
|
COMPAT_XLIBDIR= ${EMULSUBDIR}/usr/X11R6/lib
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= COMPAT_LIBDIR=${COMPAT_LIBDIR:Q} COMPAT_LIBEXECDIR=${COMPAT_LIBEXECDIR:Q} COMPAT_XLIBDIR=${COMPAT_XLIBDIR:Q}
|
2001-02-04 08:15:59 +01:00
|
|
|
|
|
|
|
# XXX using pax to copy symlinks properly.
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${COMPAT_LIBDIR}
|
2005-12-05 21:49:47 +01:00
|
|
|
(cd ${WRKDIR}/lib; ${PAX} -rwv lib*.so* ${PREFIX}/${COMPAT_LIBDIR}; \
|
2003-11-23 06:22:34 +01:00
|
|
|
${CHOWN} ${ROOT_USER}:${ROOT_GROUP} ${PREFIX}/${COMPAT_LIBDIR}/lib*.so*; \
|
|
|
|
${CHMOD} 555 ${PREFIX}/${COMPAT_LIBDIR}/lib*.so* )
|
2001-02-04 08:15:59 +01:00
|
|
|
if [ -d ${WRKDIR}/X11R6/lib ]; then \
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${COMPAT_XLIBDIR}; \
|
2005-12-05 21:49:47 +01:00
|
|
|
(cd ${WRKDIR}/X11R6/lib; ${PAX} -rwv lib*.so* ${PREFIX}/${COMPAT_XLIBDIR}; \
|
2003-11-23 06:22:34 +01:00
|
|
|
${CHOWN} ${ROOT_USER}:${ROOT_GROUP} ${PREFIX}/${COMPAT_XLIBDIR}/lib*.so*; \
|
|
|
|
${CHMOD} 555 ${PREFIX}/${COMPAT_XLIBDIR}/lib*.so* ) \
|
2001-02-04 08:15:59 +01:00
|
|
|
fi
|
|
|
|
if [ -d ${WRKDIR}/libexec ]; then \
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${COMPAT_LIBEXECDIR}; \
|
2005-12-05 21:49:47 +01:00
|
|
|
(cd ${WRKDIR}/libexec; ${PAX} -rwv ld.*so ${PREFIX}/${COMPAT_LIBEXECDIR}; \
|
2003-11-23 06:22:34 +01:00
|
|
|
${CHOWN} ${ROOT_USER}:${ROOT_GROUP} ${PREFIX}/${COMPAT_LIBEXECDIR}/ld.*so; \
|
|
|
|
${CHMOD} 555 ${PREFIX}/${COMPAT_LIBEXECDIR}/ld.*so ) \
|
2001-02-04 08:15:59 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|