diff options
author | lev <lev@FreeBSD.org> | 2014-06-08 00:53:01 +0800 |
---|---|---|
committer | lev <lev@FreeBSD.org> | 2014-06-08 00:53:01 +0800 |
commit | 5be9b01706cd729cb8126c2ca3fd15f35565c0e2 (patch) | |
tree | 56da65f3a12d8770977140df994296e5124c9c33 | |
parent | a774b0dec7d86110727f0b4501ef9324ebcf5a04 (diff) | |
download | freebsd-ports-gnome-5be9b01706cd729cb8126c2ca3fd15f35565c0e2.tar.gz freebsd-ports-gnome-5be9b01706cd729cb8126c2ca3fd15f35565c0e2.tar.zst freebsd-ports-gnome-5be9b01706cd729cb8126c2ca3fd15f35565c0e2.zip |
Fix stage Q/A.
-rw-r--r-- | devel/msp430mcu/Makefile | 7 | ||||
-rw-r--r-- | devel/msp430mcu/files/patch-scripts--install.sh | 38 |
2 files changed, 42 insertions, 3 deletions
diff --git a/devel/msp430mcu/Makefile b/devel/msp430mcu/Makefile index 29ce02ccd853..2810f0e8b8f5 100644 --- a/devel/msp430mcu/Makefile +++ b/devel/msp430mcu/Makefile @@ -3,7 +3,7 @@ PORTNAME= ${MCUTARGET}mcu PORTVERSION= 1.0.${MCUVERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= SF/mspgcc/${PORTNAME} DISTNAME= ${PORTNAME}-${MCUVERSION} @@ -24,7 +24,8 @@ MCUTARGET= msp430 BUGS_FIXED= 3522088 LTS_PATCHES!= for bugid in ${BUGS_FIXED} ; do echo ${PORTNAME}-${MCUVERSION}-sf$${bugid}.patch ; done -USE_BZIP2= yes +USES= tar:bzip2 + NO_BUILD= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${MCUVERSION} @@ -46,6 +47,6 @@ pre-install: @${ECHO} "@dirrmtry ${MCUTARGET}" >> ${PLIST} do-install: - @cd ${WRKSRC} && MSP430MCU_ROOT=${WRKSRC} ${SH} scripts/install.sh ${STAGEDIR}${PREFIX} + @cd ${WRKSRC} && MSP430MCU_ROOT=${WRKSRC} ${SH} scripts/install.sh ${PREFIX} ${STAGEDIR}${PREFIX} .include <bsd.port.mk> diff --git a/devel/msp430mcu/files/patch-scripts--install.sh b/devel/msp430mcu/files/patch-scripts--install.sh new file mode 100644 index 000000000000..eb0b37fb619b --- /dev/null +++ b/devel/msp430mcu/files/patch-scripts--install.sh @@ -0,0 +1,38 @@ +--- scripts/install.sh.orig 2014-06-07 20:49:35.000000000 +0400 ++++ scripts/install.sh 2014-06-07 20:50:51.000000000 +0400 +@@ -4,6 +4,7 @@ + # This file is part of msp430mcu (http://sourceforge.net/projects/mspgcc/) + + PREFIX=${1:-/msp430/install/dev} ++DISTDIR=${2:-${PREFIX}} + MSP430MCU_ROOT=${MSP430MCU_ROOT:-${MSP430_ROOT:-/msp430}/msp430mcu} + UPSTREAM=${MSP430MCU_ROOT}/upstream + ANALYSIS=${MSP430MCU_ROOT}/analysis +@@ -11,9 +12,13 @@ + VERSION=`cat ${MSP430MCU_ROOT}/.version` + UPSTREAM_VERSION=`cat ${MSP430MCU_ROOT}/upstream/.version` + +-BINPATH=${PREFIX}/bin +-INCPATH=${PREFIX}/msp430/include +-LIBPATH=${PREFIX}/msp430/lib ++PBINPATH=${PREFIX}/bin ++PINCPATH=${PREFIX}/msp430/include ++PLIBPATH=${PREFIX}/msp430/lib ++ ++BINPATH=${DISTDIR}/bin ++INCPATH=${DISTDIR}/msp430/include ++LIBPATH=${DISTDIR}/msp430/lib + + mkdir -p ${INCPATH} ${LIBPATH} ${BINPATH} + +@@ -37,8 +42,8 @@ + cat bin/msp430mcu-config.in \ + | sed \ + -e 's!@PREFIX@!'"${PREFIX}"'!g' \ +- -e 's!@SCRIPTPATH@!'"${LIBPATH}/ldscripts"'!g' \ +- -e 's!@INCPATH@!'"${INCPATH}"'!g' \ ++ -e 's!@SCRIPTPATH@!'"${PLIBPATH}/ldscripts"'!g' \ ++ -e 's!@INCPATH@!'"${PINCPATH}"'!g' \ + -e 's!@VERSION@!'"${VERSION}"'!g' \ + -e 's!@UPSTREAM_VERSION@!'"${UPSTREAM_VERSION}"'!g' \ + > ${BINPATH}/msp430mcu-config \ |