summaryrefslogtreecommitdiffstats
path: root/lib/compat/compat22/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compat/compat22/Makefile')
-rw-r--r--lib/compat/compat22/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/lib/compat/compat22/Makefile b/lib/compat/compat22/Makefile
new file mode 100644
index 0000000..33bc15a
--- /dev/null
+++ b/lib/compat/compat22/Makefile
@@ -0,0 +1,43 @@
+# $FreeBSD$
+
+DISTRIBUTION= compat22
+
+LIBS= libalias.so.2.4 libc.so.3.1 libc_r.so.3.0 libcalendar.so.2.0 \
+ libcom_err.so.2.0 libcurses.so.2.0 libdialog.so.3.1 libedit.so.2.0 \
+ libf2c.so.2.0 libftpio.so.4.0 libg++.so.4.0 libgmp.so.3.0 \
+ libgnuregex.so.2.0 libipx.so.2.0 libkvm.so.2.0 libm.so.2.0 \
+ libmp.so.3.0 libmytinfo.so.2.0 libncurses.so.3.1 libopie.so.2.0 \
+ libpcap.so.2.2 libreadline.so.3.0 librpcsvc.so.2.0 libscrypt.so.2.0 \
+ libscsi.so.2.0 libskey.so.2.0 libss.so.2.0 libstdc++.so.2.0 \
+ libtelnet.so.2.0 libtermcap.so.2.1 libutil.so.2.2 libvgl.so.1.0 \
+ libxpg4.so.2.0 libz.so.2.0
+
+CLEANFILES+= ${LIBS} ld.so
+
+all: ${LIBS} ld.so
+
+.for lib in ${LIBS} ld.so
+.if exists(${.CURDIR}/${lib}.gz.uu)
+${lib}: ${lib}.gz.uu
+ uudecode -p ${.CURDIR}/${lib}.gz.uu | gunzip > ${lib}
+.elif exists(${.CURDIR}/${lib}.bz2.uu)
+${lib}: ${.CURDIR}/${lib}.bz2.uu
+ uudecode -p ${.CURDIR}/${lib}.bz2.uu | bzip2 -d > ${lib}
+.endif
+.endfor
+
+beforeinstall:
+ ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ld.so \
+ ${DESTDIR}/usr/libexec
+ ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
+ ${DESTDIR}${LIBCOMPATDIR}/aout
+ @${ECHO} "libcrypt.so.2.0 -> libscrypt.so.2.0" ; \
+ cd ${DESTDIR}${LIBCOMPATDIR}/aout ; \
+ ln -sf libscrypt.so.2.0 libcrypt.so.2.0
+ @${ECHO} "libtermlib.so.2.1 -> libtermcap.so.2.1" ; \
+ cd ${DESTDIR}${LIBCOMPATDIR}/aout ; \
+ ln -sf libtermcap.so.2.1 libtermlib.so.2.1
+
+# Get all the fruit, even though we don't set PROG.
+# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud