1b712c05fc
- fix remaining two places where CFLAGS weren't respected; - use cpio(1) to copy hierarchies instead of tar(1), so that it is possible to build the port as ordinary user, but still have installed files be owned by root; - use slightly different solution for the problem with 777 permissions on directories created during the build. Instead of harcoding resulting prmission apply umask(2) to all mode arguments of [f]chmod() calls. Since Rotor has no notion of file-level security anyway this should be an optimal way to fix the problem. Submitted by: Patrick Backlund <pbacklun@cc.hut.fi> (cpio fix) sobomax (the rest)
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
# New ports collection makefile for: cli
|
|
# Date Created: 28 March 2002
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= cli
|
|
PORTVERSION= 20020326
|
|
PORTREVISION= 3
|
|
CATEGORIES= lang
|
|
MASTER_SITES= http://download.microsoft.com/download/.netframesdk/CLI/Beta1/WXP/EN-US/ \
|
|
http://download.microsoft.com/download/.netframesdk/Beta1/WXP/EN-US/ \
|
|
http://www.corel.com/6763/downloads/mirror/microsoft/rotor/ \
|
|
ftp://ftp.corel.com/pub/mirror/Microsoft/rotor/
|
|
DISTNAME= sscli${PORTVERSION}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
|
|
|
WRKSRC= ${WRKDIR}/sscli
|
|
|
|
RESTRICTED= "license terms need to be reviewed"
|
|
NO_CDROM= ${RESTRICTED}
|
|
NO_PACKAGE= ${RESTRICTED}
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= ${BUILD_TYPE}
|
|
CONFIGURE_SCRIPT= portconfigure
|
|
MAKEFILE= makefile
|
|
MAKE_ENV= CC_NAME="${CC}"
|
|
BUILD_TYPE= retail
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 500000
|
|
EXTRA_PATCHES!= ${ECHO_CMD} ${PKGDIR}/files.5/patch-*
|
|
.endif
|
|
|
|
post-extract:
|
|
@${CP} ${SCRIPTDIR}/portconfigure ${WRKSRC}
|
|
|
|
do-build:
|
|
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ./buildall ${BUILD_TYPE})
|
|
|
|
.if !defined(I_AGREE_TO_LICENSE_TERMS)
|
|
pre-install:
|
|
@${ECHO_MSG} "Please make sure that you have read and understood license terms contained in"
|
|
@${ECHO_MSG} "the ${WRKSRC}/license.txt file and if you"
|
|
@${ECHO_MSG} "agree with them then add -DI_AGREE_TO_LICENSE_TERMS to command line to"
|
|
@${ECHO_MSG} "install the software (i.e. 'make -DI_AGREE_TO_LICENSE_TERMS install')."
|
|
@${FALSE}
|
|
.endif
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/cli-${PORTVERSION}
|
|
@${INSTALL_DATA} ${WRKSRC}/license.txt ${PREFIX}/cli-${PORTVERSION}
|
|
@cd ${WRKSRC}/build/v1.x86fre.rotor && ${FIND} . | \
|
|
/usr/bin/cpio -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/cli-${PORTVERSION}
|
|
|
|
.include <bsd.port.post.mk>
|