diff options
author | tegge <tegge@FreeBSD.org> | 2002-03-10 09:24:23 +0800 |
---|---|---|
committer | tegge <tegge@FreeBSD.org> | 2002-03-10 09:24:23 +0800 |
commit | f01885a88652b823b24a425d2f2f5b54eff20673 (patch) | |
tree | 0b47b3707852988b0e1ef362867ce986a16d95f8 /devel | |
parent | 5d263512893c9835d66970be7aec9119fa910370 (diff) | |
download | freebsd-ports-gnome-f01885a88652b823b24a425d2f2f5b54eff20673.tar.gz freebsd-ports-gnome-f01885a88652b823b24a425d2f2f5b54eff20673.tar.zst freebsd-ports-gnome-f01885a88652b823b24a425d2f2f5b54eff20673.zip |
Document that FreeBSD source code is needed to build linuxthreads port.
Add sanity check for presence of needed FreeBSD source code.
Unbreak compilation on 5.0-CURRENT, DEFS.h is no longer available.
Bump port revision.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/linuxthreads/Makefile | 12 | ||||
-rw-r--r-- | devel/linuxthreads/files/clone.S | 4 | ||||
-rw-r--r-- | devel/linuxthreads/pkg-descr | 3 |
3 files changed, 17 insertions, 2 deletions
diff --git a/devel/linuxthreads/Makefile b/devel/linuxthreads/Makefile index 9c341c54d04b..2f7afeaf5b0d 100644 --- a/devel/linuxthreads/Makefile +++ b/devel/linuxthreads/Makefile @@ -7,7 +7,7 @@ PORTNAME= linuxthreads PORTVERSION= 2.2.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= glibc @@ -33,13 +33,21 @@ WRKSRC= ${WRKDIR}/${PKGNAME} SRC_BASE= /usr/src LIBSRC_BASE= ${SRC_BASE}/lib -.if !defined(WITH_CONDWAIT_PATCH) pre-fetch: +.if !defined(WITH_CONDWAIT_PATCH) @${ECHO} @${ECHO} You can use an experimental patch to reduce the number of @${ECHO} condition variable triggered context switches by defining @${ECHO} WITH_CONDWAIT_PATCH + @${ECHO} .endif + @if test -f /usr/src/gnu/lib/libgcc/Makefile; then \ + : ; \ + else \ + ${ECHO_MSG} ">>The linuxthreads port needs source code for libgcc"; \ + ${ECHO_MSG} ">>Please install FreeBSD source code in /usr/src"; \ + false; \ + fi post-extract: @mv ${WRKDIR}/linuxthreads ${WRKSRC} diff --git a/devel/linuxthreads/files/clone.S b/devel/linuxthreads/files/clone.S index 73d8d46467d9..0f1a9656e20c 100644 --- a/devel/linuxthreads/files/clone.S +++ b/devel/linuxthreads/files/clone.S @@ -1,6 +1,10 @@ .file "clone.S" #include <sys/syscall.h> +#ifdef __FreeBSD__ >= 5 +#include <machine/asm.h> +#else #include "DEFS.h" +#endif #include "SYS.h" #define KERNEL #define _KERNEL diff --git a/devel/linuxthreads/pkg-descr b/devel/linuxthreads/pkg-descr index f8f4b7d45bc9..889fdda33eae 100644 --- a/devel/linuxthreads/pkg-descr +++ b/devel/linuxthreads/pkg-descr @@ -9,3 +9,6 @@ LinuxThreads implementation see: Note that LinuxThreads has been integrated with the GNU C library (glibc) since version 2.0, so the above URL points to dated information. + +The FreeBSD source code should be installed in /usr/src before building +linuxthreads. |