1999-12-28 15:18:32 +00:00
|
|
|
# New ports collection makefile for: linuxthreads
|
|
|
|
# Version required: 2.1.2
|
1999-11-30 09:07:29 +00:00
|
|
|
# Date created: 14 Jan 1999
|
|
|
|
# Whom: Richard Seaman, Jr. <dick@tar.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
1999-12-28 15:18:32 +00:00
|
|
|
DISTNAME= glibc-linuxthreads-2.1.2
|
|
|
|
PKGNAME= linuxthreads-2.1.2
|
1999-11-30 09:07:29 +00:00
|
|
|
CATEGORIES= devel
|
1999-12-28 15:18:32 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= glibc
|
1999-12-01 00:08:28 +00:00
|
|
|
ONLY_FOR_ARCHS= i386
|
1999-11-30 09:07:29 +00:00
|
|
|
|
1999-12-04 18:45:00 +00:00
|
|
|
MAINTAINER= jasone@freebsd.org
|
1999-11-30 09:07:29 +00:00
|
|
|
|
1999-12-28 15:18:32 +00:00
|
|
|
threads_files := README.FreeBSD _atomic_lock.S clone.S clone.h getgr_r.c \
|
|
|
|
lclone.c libc_calls.c libc_private.h libc_spinlock.c libc_spinlock.h \
|
|
|
|
libc_thread.c sched.c uthread_file.c
|
1999-11-30 09:07:29 +00:00
|
|
|
|
1999-11-30 15:59:40 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME}
|
1999-11-30 09:07:29 +00:00
|
|
|
|
|
|
|
SRC_BASE= /usr/src
|
|
|
|
LIBSRC_BASE= ${SRC_BASE}/lib
|
|
|
|
|
|
|
|
post-extract:
|
1999-12-28 15:18:32 +00:00
|
|
|
@mv ${WRKDIR}/linuxthreads ${WRKDIR}/${PKGNAME}
|
|
|
|
.for src in no-tsd.c oldsemaphore.c sysdeps/pthread/semaphore.h
|
|
|
|
@mv ${WRKSRC}/$(src) ${WRKSRC}/$(src).unused
|
|
|
|
.endfor
|
1999-11-30 09:07:29 +00:00
|
|
|
@cd ${FILESDIR} ; \
|
1999-12-28 15:18:32 +00:00
|
|
|
${CP} -p ${threads_files} ${WRKSRC}/.
|
1999-11-30 09:07:29 +00:00
|
|
|
|
1999-12-02 02:14:16 +00:00
|
|
|
post-build:
|
|
|
|
@cd ${FILESDIR} ; \
|
|
|
|
${MKDIR} ${WRKSRC}/libgcc_r ; \
|
|
|
|
${LN} -s ${FILESDIR}/Makefile.libgcc_r ${WRKSRC}/libgcc_r/Makefile
|
|
|
|
@cd ${WRKSRC}/libgcc_r ; \
|
|
|
|
${MAKE}
|
|
|
|
|
1999-11-30 09:07:29 +00:00
|
|
|
pre-install:
|
1999-12-02 02:14:16 +00:00
|
|
|
@cd ${WRKSRC}/libgcc_r ; \
|
|
|
|
${MAKE} install
|
1999-11-30 09:07:29 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
|
|
|
|
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m /usr/lib
|
|
|
|
${CAT} ${PKGDIR}/MESSAGE
|
1999-12-28 15:18:32 +00:00
|
|
|
|
|
|
|
# @sh ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
|
1999-11-30 09:07:29 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|