1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
This commit is contained in:
Vanilla I. Shu 2014-07-08 07:20:06 +00:00
parent 264c9ecbae
commit d3b0dfa009
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361194
2 changed files with 7 additions and 5 deletions

View File

@ -8,7 +8,7 @@ MASTER_SITES= ftp://sources.redhat.com/pub/${PORTNAME}-win32/
PKGNAMEPREFIX= mingw32-
DISTNAME= ${PORTNAME}-w32-${PORTVERSION:S/./-/g}-release
MAINTAINER= ports@FreeBSD.org
MAINTAINER= ports@FreeBSD.org
COMMENT= POSIX threads library for Windows compiled with MinGW32
BUILD_DEPENDS= ${PKGNAMEPREFIX}gcc:${PORTSDIR}/devel/${PKGNAMEPREFIX}gcc \
@ -16,18 +16,19 @@ BUILD_DEPENDS= ${PKGNAMEPREFIX}gcc:${PORTSDIR}/devel/${PKGNAMEPREFIX}gcc \
USES= gmake
NO_STAGE= yes
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 ${PREFIX}/mingw32/include/$f
${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${PREFIX}/mingw32/include/$f
.endfor
.for f in libpthreadGC2.a pthreadGC2.dll
${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/mingw32/lib/$f
${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${PREFIX}/mingw32/lib/$f
.endfor
${LN} -sf libpthreadGC2.a ${PREFIX}/mingw32/lib/libpthread.a
${LN} -sf libpthreadGC2.a ${STAGEDIR}${PREFIX}/mingw32/lib/libpthread.a
.include <bsd.port.mk>

View File

@ -4,3 +4,4 @@ mingw32/include/semaphore.h
mingw32/lib/libpthread.a
mingw32/lib/libpthreadGC2.a
mingw32/lib/pthreadGC2.dll
@dirrmtry mingw32/include