1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/devel/linuxthreads/Makefile
Satoshi Asami 5e5841f2cd Eliminate WRKSRC=${WRKDIR}/${PKGNAME} lines, as these will break when
PORTREVISION or PORTEPOCH are defined.

Most of these Makefiles were defining DISTNAME and WRKSRC (and
sometimes EXTRACT_SUFX) -- change those to define DISTFILES only.
Also, some of the WRKSRC lines were not even necessary, as they were
defining it to the default value.

Instigated by:	Peter Pentchev <roam@orbitel.bg> and kris
2000-09-25 12:21:43 +00:00

62 lines
1.5 KiB
Makefile

# New ports collection makefile for: linuxthreads
# Date created: 14 Jan 1999
# Whom: Richard Seaman, Jr. <dick@tar.com>
#
# $FreeBSD$
#
PORTNAME= linuxthreads
PORTVERSION= 2.1.3
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= glibc
DISTFILES= glibc-linuxthreads-${PORTVERSION}.tar.gz
MAINTAINER= jasone@freebsd.org
.include <bsd.port.pre.mk>
# This port only works on i386 right now.
ONLY_FOR_ARCHS= i386
.if ${OSVERSION} < 400015
BROKEN="Requires FreeBSD 4.0 or newer"
.endif
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
SRC_BASE= /usr/src
LIBSRC_BASE= ${SRC_BASE}/lib
post-extract:
@mv ${WRKDIR}/linuxthreads ${WRKDIR}/${PKGNAME}
@mv ${WRKDIR}/linuxthreads_db ${WRKDIR}/${PKGNAME}
.for src in lockfile.c no-tsd.c oldsemaphore.c weaks.c \
sysdeps/pthread/semaphore.h
@mv ${WRKSRC}/$(src) ${WRKSRC}/$(src).unused
.endfor
@cd ${FILESDIR} ; \
${CP} -p ${threads_files} ${WRKSRC}/.
post-build:
@cd ${FILESDIR} ; \
${MKDIR} ${WRKSRC}/libgcc_r ; \
${LN} -s ${FILESDIR}/Makefile.libgcc_r ${WRKSRC}/libgcc_r/Makefile
@cd ${WRKSRC}/libgcc_r ; \
${MAKE}
pre-install:
@cd ${WRKSRC}/libgcc_r ; \
${MAKE} install
post-install:
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m /usr/lib
${CAT} ${PKGDIR}/MESSAGE
# @sh ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>