Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Oct 2014 12:23:37 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r371627 - in branches/2014Q4/games/uqm: . files
Message-ID:  <201410281223.s9SCNbxG023001@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Oct 28 12:23:36 2014
New Revision: 371627
URL: https://svnweb.freebsd.org/changeset/ports/371627
QAT: https://qat.redports.org/buildarchive/r371627/

Log:
  MFH: r371608
  
  - Fix installation wrt. staging
  
  Approved by:	portmgr

Modified:
  branches/2014Q4/games/uqm/Makefile
  branches/2014Q4/games/uqm/files/patch-build-unix-build_functions
Directory Properties:
  branches/2014Q4/   (props changed)

Modified: branches/2014Q4/games/uqm/Makefile
==============================================================================
--- branches/2014Q4/games/uqm/Makefile	Tue Oct 28 12:11:40 2014	(r371626)
+++ branches/2014Q4/games/uqm/Makefile	Tue Oct 28 12:23:36 2014	(r371627)
@@ -3,7 +3,7 @@
 
 PORTNAME=	uqm
 PORTVERSION=	0.7.0
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	games
 MASTER_SITES=	SF/sc2/UQM/${PORTVERSION:R}
 DISTFILES=	${PORTNAME}-${PORTVERSION}-source.tgz ${PORTNAME}-${DATAVERSION}-content.uqm
@@ -86,7 +86,7 @@ do-configure:
 	@${ECHO_CMD} CHOICE_accel_VALUE=\'plainc\' >> ${WRKSRC}/config.state
 .endif
 	@${ECHO_CMD} CHOICE_threadlib_VALUE=\'sdl\' >> ${WRKSRC}/config.state
-	@${ECHO_CMD} INPUT_install_prefix_VALUE=\'${STAGEDIR}${PREFIX}\' >> ${WRKSRC}/config.state
+	@${ECHO_CMD} INPUT_install_prefix_VALUE=\'${PREFIX}\' >> ${WRKSRC}/config.state
 	@${ECHO_CMD} INPUT_install_bindir_VALUE=\''$$prefix/bin'\' >> ${WRKSRC}/config.state
 	@${ECHO_CMD} INPUT_install_libdir_VALUE=\''$$prefix/lib'\' >> ${WRKSRC}/config.state
 	@${ECHO_CMD} INPUT_install_sharedir_VALUE=\''$$prefix/share'\' >> ${WRKSRC}/config.state
@@ -96,7 +96,7 @@ do-build:
 	@(cd ${WRKSRC} && ./build.sh uqm)
 
 do-install:
-	@(cd ${WRKSRC} && ./build.sh uqm install)
+	@(cd ${WRKSRC} && ${SETENV} STAGEDIR="${STAGEDIR}" ./build.sh uqm install)
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/uqm/uqm

Modified: branches/2014Q4/games/uqm/files/patch-build-unix-build_functions
==============================================================================
--- branches/2014Q4/games/uqm/files/patch-build-unix-build_functions	Tue Oct 28 12:11:40 2014	(r371626)
+++ branches/2014Q4/games/uqm/files/patch-build-unix-build_functions	Tue Oct 28 12:23:36 2014	(r371627)
@@ -1,5 +1,5 @@
 --- build/unix/build_functions.orig	2011-05-20 23:25:22.000000000 +0400
-+++ build/unix/build_functions	2013-01-08 19:54:57.000000000 +0400
++++ build/unix/build_functions	2014-09-11 17:04:15.000000000 +0400
 @@ -56,7 +56,7 @@
  	eval "${TARGET}_requirements"
  	eval "${TARGET}_prepare_config"
@@ -9,3 +9,49 @@
  	eval "${TARGET}_save_config"
  }
  
+@@ -264,39 +264,39 @@
+ 	echo "Installing system-dependent data..." >&2
+ 	eval LIBS="\${${BUILD_PROJECT}_INSTALL_LIBS}"
+ 	eval LIBDIR="\${${BUILD_PROJECT}_INSTALL_LIBDIR%/}/"
+-	mkdirhier "$LIBDIR" 0755
++	mkdirhier "${STAGEDIR}$LIBDIR" 0755
+ 	for LIB in $LIBS; do
+ 		eval SRC="\${${BUILD_PROJECT}_INSTALL_LIB_${LIB}_SRC%/}"
+ 		eval DEST="\$LIBDIR\${${BUILD_PROJECT}_INSTALL_LIB_${LIB}_DEST}"
+ 		eval MODE="\${${BUILD_PROJECT}_INSTALL_LIB_${LIB}_MODE}"
+ 		eval OWNER="\${${BUILD_PROJECT}_INSTALL_LIB_${LIB}_OWNER}"
+-		installsome "$SRC" "$DEST" "$MODE" "$OWNER"
++		installsome "$SRC" "${STAGEDIR}$DEST" "$MODE" "$OWNER"
+ 	done
+ 
+ 	local SHARE SHARED SHAREDIR
+ 	echo "Installing system-independent data..." >&2
+ 	eval SHARED="\${${BUILD_PROJECT}_INSTALL_SHARED}"
+ 	eval SHAREDIR="\${${BUILD_PROJECT}_INSTALL_SHAREDIR%/}/"
+-	mkdirhier "$SHAREDIR" 0755
++	mkdirhier "${STAGEDIR}$SHAREDIR" 0755
+ 	for SHARE in $SHARED; do
+ 		eval SRC="\${${BUILD_PROJECT}_INSTALL_SHARED_${SHARE}_SRC%/}"
+ 		eval DEST="\$SHAREDIR\${${BUILD_PROJECT}_INSTALL_SHARED_${SHARE}_DEST}"
+ 		eval MODE="\${${BUILD_PROJECT}_INSTALL_SHARED_${SHARE}_MODE}"
+ 		eval OWNER="\${${BUILD_PROJECT}_INSTALL_SHARED_${SHARE}_OWNER}"
+-		installsome "$SRC" "$DEST" "$MODE" "$OWNER"
++		installsome "$SRC" "${STAGEDIR}$DEST" "$MODE" "$OWNER"
+ 	done
+ 
+ 	local BINS BINDIR
+ 	echo "Installing binaries..." >&2
+ 	eval BINS="\${${BUILD_PROJECT}_INSTALL_BINS}"
+ 	eval BINDIR="\${${BUILD_PROJECT}_INSTALL_BINDIR%/}/"
+-	mkdirhier "$BINDIR" 0755
++	mkdirhier "${STAGEDIR}$BINDIR" 0755
+ 	for BIN in $BINS; do
+ 		eval SRC="\${${BUILD_PROJECT}_INSTALL_BIN_${BIN}_SRC%/}"
+ 		eval DEST="\$BINDIR\${${BUILD_PROJECT}_INSTALL_BIN_${BIN}_DEST}"
+ 		eval MODE="\${${BUILD_PROJECT}_INSTALL_BIN_${BIN}_MODE}"
+ 		eval OWNER="\${${BUILD_PROJECT}_INSTALL_BIN_${BIN}_OWNER}"
+-		installsome "$SRC" "$DEST" "$MODE" "$OWNER"
++		installsome "$SRC" "${STAGEDIR}$DEST" "$MODE" "$OWNER"
+ 	done
+ 
+ 	eval "${TARGET}_post_install"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410281223.s9SCNbxG023001>