pkgsrc/cross/i386-linuxglibc1/Makefile
tv ccc8b40071 Major `cross' category overhaul. Clean up the shared Makefiles; move all
binutils stuff (except gas) to a shared, multiple-target binutils build;
reduce extract and compile times by being more specific with files and
targets; update to egcs 1.1.1 with a diffball from NetBSD's src/gnu/dist
tree; add 4.4BSD a.out archive support to binutils.
1999-01-04 22:37:29 +00:00

43 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.3 1999/01/04 22:37:33 tv Exp $
#
DISTVERSION= 5.3.12.1
DISTFILES= ${LINUXDEVEL_FILES}
EXTRACT_ONLY= # none of the RPM files
MASTER_SITES= ftp://ftp.cdrom.com/pub/linux/redhat/redhat-4.2/i386/RedHat/RPMS/
MAINTAINER= packages@netbsd.org
BUILD_DEPENDS= rpm2cpio:../../misc/rpm
USE_CROSS_BINUTILS= yes
BINUTILS_GNUTARGET= elf32-i386
BINUTILS_LDEMULATION= elf_i386
USE_CROSS_EGCS= yes
LINUXDEVEL_FILES= libc-5.3.12-18.i386.rpm \
libc-devel-5.3.12-18.i386.rpm \
libc-static-5.3.12-18.i386.rpm \
kernel-headers-2.0.30-2.i386.rpm
TARGET_ARCH= i386-linuxglibc1
SYS_INCLUDE= ${WRKDIR}/usr/include
SYS_LIB= ${WRKDIR}/usr/lib
# Extract and rearrange Linux distribution files.
post-extract:
@cd ${WRKDIR}; \
for file in ${LINUXDEVEL_FILES}; do \
rpm2cpio ${_DISTDIR}/$$file | cpio -id; \
done
@cd ${WRKDIR}/lib && ${MV} -f * ../usr/lib/
@cd ${WRKDIR}/usr/lib && \
${LN} -sf libc.so.*.* libc.so && \
${LN} -sf libm.so.*.* libm.so
@cd ${WRKDIR}/usr/include && ${RM} -f asm linux scsi
@cd ${WRKDIR}/usr/src/linux-2.0.30/include && \
${MV} -f asm-i386 ${WRKDIR}/usr/include/asm && \
${MV} -f linux scsi ${WRKDIR}/usr/include/
@${LN} -f ${WRKDIR}/usr/lib/crt*.o ${EGCS_WRKSRC}/gcc/
.include "../COMMON/cross.mk"