blob: 330825f4e80d965b0a16710b624afb27a5d8c048 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# $NetBSD: Makefile.common,v 1.7 2022/10/09 02:37:04 ryoon Exp $
#
# used by cross/mingw-w64-i686-winpthreads/Makefile
# used by cross/mingw-w64-x86_64-winpthreads/Makefile
DISTNAME= mingw-w64-v10.0.0
CATEGORIES= cross
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mingw-w64/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mingw-w64.org/
PATCHDIR= ${.CURDIR}/../../cross/mingw-w64-x86_64-headers/patches
DISTINFO_FILE= ${.CURDIR}/../../cross/mingw-w64-x86_64-headers/distinfo
WRKSRC= ${WRKDIR}/${DISTNAME}/mingw-w64-libraries/winpthreads
RELRO_SUPPORTED= no
USE_LANGUAGES= c c++
USE_TOOLS+= gmake pax perl:build
USE_GNU_CONFIGURE_HOST= no
GNU_CONFIGURE= yes
GNU_CONFIGURE_PREFIX= ${PREFIX}/cross/${MINGW_TARGET}-winpthreads/mingw
CONFIGURE_ARGS+= --host=${MINGW_TARGET}
CONFIGURE_ARGS+= --with-sysroot=${PREFIX}/cross/${MINGW_TARGET}
CONFIGURE_ENV+= ac_cv_prog_CC=${MINGW_TARGET}-gcc
PREPEND_PATH+= ${PREFIX}/cross/${MINGW_TARGET}/bin
PREPEND_PATH+= ${PREFIX}/cross/${MINGW_TARGET}-bootstrap/bin
pre-install:
${MKDIR} ${DESTDIR}/${GNU_CONFIGURE_PREFIX}
cd ${PREFIX}/cross/${MINGW_TARGET}/mingw && \
${FIND} include lib -type f \! -name '*.orig' -print | \
pax -rw -pmp ${DESTDIR}${GNU_CONFIGURE_PREFIX}
.include "../../cross/mingw-w64/Makefile.common"
|