1999-12-28 15:18:32 +00:00
|
|
|
# New ports collection makefile for: linuxthreads
|
1999-11-30 09:07:29 +00:00
|
|
|
# Date created: 14 Jan 1999
|
|
|
|
# Whom: Richard Seaman, Jr. <dick@tar.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-11 21:30:15 +00:00
|
|
|
PORTNAME= linuxthreads
|
2000-05-24 04:14:41 +00:00
|
|
|
PORTVERSION= 2.1.3
|
2000-11-06 19:43:33 +00:00
|
|
|
PORTREVISION= 1
|
2000-04-11 21:30:15 +00:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= glibc
|
2000-11-06 19:43:33 +00:00
|
|
|
DISTNAME= glibc-linuxthreads-${PORTVERSION}
|
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
|
|
|
|
2000-01-29 11:13:43 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
# This port only works on i386 right now.
|
2000-04-11 21:30:15 +00:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2000-01-29 11:13:43 +00:00
|
|
|
|
2000-02-01 03:39:26 +00:00
|
|
|
.if ${OSVERSION} < 400015
|
2000-01-29 11:13:43 +00:00
|
|
|
BROKEN="Requires FreeBSD 4.0 or newer"
|
|
|
|
.endif
|
|
|
|
|
2000-01-29 03:15:24 +00:00
|
|
|
threads_files := README.FreeBSD clone.S clone.h freebsd-compat.h getgr_r.c \
|
|
|
|
gethostby_r.c getnetby_r.c getprotoby_r.c getpw_r.c getservby_r.c \
|
|
|
|
lclone.c libc_calls.c libc_thread.c sched.c uthread_file.c
|
1999-11-30 09:07:29 +00:00
|
|
|
|
2000-11-06 19:43:33 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME}
|
1999-11-30 09:07:29 +00:00
|
|
|
SRC_BASE= /usr/src
|
|
|
|
LIBSRC_BASE= ${SRC_BASE}/lib
|
|
|
|
|
|
|
|
post-extract:
|
2000-11-06 19:43:33 +00:00
|
|
|
@mv ${WRKDIR}/linuxthreads ${WRKSRC}
|
|
|
|
@mv ${WRKDIR}/linuxthreads_db ${WRKSRC}
|
2000-01-29 03:15:24 +00:00
|
|
|
.for src in lockfile.c no-tsd.c oldsemaphore.c weaks.c \
|
|
|
|
sysdeps/pthread/semaphore.h
|
1999-12-28 15:18:32 +00:00
|
|
|
@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
|
2000-10-08 10:23:48 +00:00
|
|
|
${CAT} ${PKGMESSAGE}
|
1999-12-28 15:18:32 +00:00
|
|
|
|
2000-10-08 10:23:48 +00:00
|
|
|
# @sh ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
1999-11-30 09:07:29 +00:00
|
|
|
|
2000-01-29 11:13:43 +00:00
|
|
|
.include <bsd.port.post.mk>
|