freebsd-ports/devel/mingw32-bin-msvcrt/Makefile
Pawel Pekala 990cf975d5 Update to r3.20.a3.17.2
PR:             ports/172625
Submitted by:   Naram Qashat <cyberbotx@cyberbotx.com> (maintainer)
Feature safe:   yes
2012-10-20 17:00:35 +00:00

45 lines
1.4 KiB
Makefile

# Created by: Lev A. Serebryakov <lev@serebryakov.spb.ru>
# $FreeBSD$
PORTNAME= bin-msvcrt
PORTVERSION= r${RUNTIMEVERSION}.a${APIVERSION:S/-/./}
CATEGORIES= devel
MASTER_SITES= SF/mingw/MinGW/Base/mingw-rt/mingwrt-${RUNTIMEVERSION}:runtime \
SF/mingw/MinGW/Base/w32api/w32api-${APIVERSION:C/-.*$//}:api
PKGNAMEPREFIX= mingw32-
DISTFILES= mingwrt-${RUNTIMEVERSION}-mingw32-dev${EXTRACT_SUFX}:runtime \
mingwrt-${RUNTIMEVERSION}-mingw32-dll${EXTRACT_SUFX}:runtime \
w32api-${APIVERSION}-mingw32-dev${EXTRACT_SUFX:S/.gz$/.lzma/}:api
DIST_SUBDIR= mingw
MAINTAINER= cyberbotx@cyberbotx.com
COMMENT= Headers and Libraries for Windows cross-development
CONFLICTS= mingw-bin-msvcrt-*
RUNTIMEVERSION= 3.20
APIVERSION= 3.17-2
NO_MTREE= yes
NO_WRKSUBDIR= yes
.if defined(INSTALL_AS_USER)
MAKE_ARGS+= INSTALL_AS_USER=yes
.endif
.include <bsd.port.pre.mk>
.if ( (${OSVERSION} >= 900000 && ${OSVERSION} < 900012) || ${OSVERSION} < 800505 )
EXTRACT_DEPENDS=${LOCALBASE}/bin/xz:${PORTSDIR}/archivers/xz
EXTRACT_ONLY= mingwrt-${RUNTIMEVERSION}-mingw32-dev${EXTRACT_SUFX} \
mingwrt-${RUNTIMEVERSION}-mingw32-dll${EXTRACT_SUFX}
.endif
post-extract:
@${CP} ${FILESDIR}/Makefile ${WRKDIR}
.if ( (${OSVERSION} >= 900000 && ${OSVERSION} < 900012) || ${OSVERSION} < 800505 )
@cd ${WRKDIR} && xzcat \
${_DISTDIR}/w32api-${APIVERSION}-mingw32-dev.tar.lzma | ${TAR} -xf -
.endif
.include <bsd.port.post.mk>