[BACK]Return to Makefile.common CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / cross / mingw-w64-x86_64-winpthreads

File: [cvs.NetBSD.org] / pkgsrc / cross / mingw-w64-x86_64-winpthreads / Makefile.common (download)

Revision 1.3, Sun Mar 22 14:46:01 2020 UTC (4 years ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1
Changes since 1.2: +2 -2 lines

mingw-w64-x86_64-winpthreads: uses pax(1) during pre-install

# $NetBSD: Makefile.common,v 1.3 2020/03/22 14:46:01 tnn Exp $
#
# used by cross/mingw-w64-i686-winpthreads/Makefile
# used by cross/mingw-w64-x86_64-winpthreads/Makefile

DISTNAME=		mingw-w64-v7.0.0
CATEGORIES=		cross
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=mingw-w64/}
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		https://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

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"