freebsd-ports/devel/mingw32-pthreads/Makefile
Gerald Pfeifer c2a92a1aea Bump PORTREVISIONs of all users of math/mpc that we just updated to
version 1.1.0 (via revision 464079).
2018-03-10 17:46:04 +00:00

35 lines
980 B
Makefile

# Created by: Ed Schouten <ed@fxq.nl>
# $FreeBSD$
PORTNAME= pthreads
PORTVERSION= 2.8.0
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ftp://sources.redhat.com/pub/${PORTNAME}-win32/
PKGNAMEPREFIX= mingw32-
DISTNAME= ${PORTNAME}-w32-${PORTVERSION:S/./-/g}-release
MAINTAINER= ports@FreeBSD.org
COMMENT= POSIX threads library for Windows compiled with MinGW32
BUILD_DEPENDS= ${PKGNAMEPREFIX}gcc:devel/${PKGNAMEPREFIX}gcc \
mingwm10.dll:devel/mingw32-bin-msvcrt
USES= gmake
do-build:
@${MAKE_CMD} -C ${WRKSRC} CROSS=${PKGNAMEPREFIX} GC
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/mingw32/include
@${MKDIR} ${STAGEDIR}${PREFIX}/mingw32/lib
.for f in pthread.h sched.h semaphore.h
${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${PREFIX}/mingw32/include/$f
.endfor
.for f in libpthreadGC2.a pthreadGC2.dll
${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${PREFIX}/mingw32/lib/$f
.endfor
${LN} -sf libpthreadGC2.a ${STAGEDIR}${PREFIX}/mingw32/lib/libpthread.a
.include <bsd.port.mk>