diff options
author | manu <manu@pkgsrc.org> | 2001-08-25 16:28:31 +0000 |
---|---|---|
committer | manu <manu@pkgsrc.org> | 2001-08-25 16:28:31 +0000 |
commit | 0d2cd59e6c68142ced9a2e187134f1056626c254 (patch) | |
tree | c50f654b01f6d53e7786b0da90849525ddf283c1 /emulators | |
parent | 9dd9dc30952c12af51b588c6df9de5ede2e2e447 (diff) | |
download | pkgsrc-0d2cd59e6c68142ced9a2e187134f1056626c254.tar.gz |
- Fixes paths in Linux ldd (this is a shell script), so that it can work later.
(this also reuire some kernel support which has not been committed yet.
- Added some comment in the install section to keep it understandable by
human readers
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/linuxppc_lib/Makefile | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/emulators/linuxppc_lib/Makefile b/emulators/linuxppc_lib/Makefile index 59d0ad875ea..7500d6ff047 100644 --- a/emulators/linuxppc_lib/Makefile +++ b/emulators/linuxppc_lib/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.12 2001/05/11 09:14:00 wiz Exp $ +# $NetBSD: Makefile,v 1.13 2001/08/25 16:28:31 manu Exp $ -DISTNAME= linuxppc_lib-2000.4.5 +DISTNAME= linuxppc_lib-2000.4.6 CATEGORIES= emulators MASTER_SITES+= ftp://ftp.linuxppc.org/linuxppc-halloween/software/ MASTER_SITES+= http://linuxppc.org/software/java/dl/motif/ @@ -48,11 +48,26 @@ do-install: ${INSTALL_DATA_DIR} ${PREFIX}/${EMUL_LINUX} ${INSTALL_DATA_DIR} /${EMUL_LINUX} ${RPM2PKG} -d ${PREFIX} -f ${WRKDIR}/PLIST_DYNAMIC -p emul/linux ${RPMARGS} + + # Fix Linux's ldd paths (ldd is a shell script on Linux) + ${SED} 's|^\(TEXTDOMAINDIR=\)\(/usr/share/locale\)|\1${PREFIX}/${EMUL_LINUX}\2|; \ + s|^\(RTLD=\)\(/lib/ld.so.1\)|\1${PREFIX}/${EMUL_LINUX}\2|' \ + ${PREFIX}/${EMUL_LINUX}/usr/bin/ldd > \ + ${PREFIX}/${EMUL_LINUX}/usr/bin/ldd.new + ${MV} ${PREFIX}/${EMUL_LINUX}/usr/bin/ldd.new \ + ${PREFIX}/${EMUL_LINUX}/usr/bin/ldd + ${CHMOD} 755 ${PREFIX}/${EMUL_LINUX}/usr/bin/ldd + + # Unpack shared libraries for OpenMotif cd ${PREFIX}/${EMUL_LINUX}/usr/X11R6 ; ${GTAR} -x 'lib/*.so*' \ -zvf ${DISTDIR}/${DIST_SUBDIR}/openmotif-2.1.30-3_MLI_jdk.tar.gz | \ ${SED} -e "s|^|${EMUL_LINUX}/usr/X11R6/|" >> ${WRKDIR}/PLIST_DYNAMIC + + # Make the link /usr/pkg/emul/linux -> /emul/linux ${TEST} -f /emul/linux/lib/ld.so.1 || ( ${RMDIR} /${EMUL_LINUX} && \ ${LN} -sf ${PREFIX}/${EMUL_LINUX} /${EMUL_LINUX} ) + + # Create ld.so.conf and ld.so.cache. (uses Linux's ldconfig) ${TOUCH} ${PREFIX}/${EMUL_LINUX}/etc/ld.so.cache~ ${CP} ${FILESDIR}/ld.so.conf ${PREFIX}/${EMUL_LINUX}/etc/ld.so.conf ${LINUX_LDCONFIG} -r ${PREFIX}/${EMUL_LINUX} -v | \ @@ -63,4 +78,5 @@ do-install: ${SORT} -r ${WRKDIR}/PLIST_DYNAMIC > ${WRKDIR}/PLIST_DYNAMIC.sorted ${MV} ${WRKDIR}/PLIST_DYNAMIC.sorted ${WRKDIR}/PLIST_DYNAMIC + .include "../../mk/bsd.pkg.mk" |