--- psptoolchain-newlib/Makefile 2014-07-26 16:07:43.263104844 -0500 +++ psptoolchain-newlib/Makefile 2014-07-26 17:43:48.393105039 -0500 @@ -3,6 +3,7 @@ PORTNAME= newlib PORTVERSION= 1.20.0 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= ftp://sources.redhat.com/pub/ \ ${MASTER_SITE_SOURCEWARE} @@ -29,7 +30,6 @@ MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS} -g" # Apparently, it doesn't work on the PSP without debug information # Disable installation of .info files and fix includedir reference. -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -E 's/^(install.*:.*)install-info(.*)/\1\2/' ${WRKSRC}/etc/Makefile.in @${REINPLACE_CMD} -E 's#(-I\$${prefix}/)psp(/sdk/include)#-I${LOCALBASE}/${PSP_SDK_STAGE_PREFIX:S,/,\\/,}\2#' ${WRKSRC}/newlib/configure.host @@ -39,6 +39,6 @@ # Rename installed crt0.o as real crt0.o used by PSP code comes with psptoolchain-pspsdk-stage2 # and would overwrite the one from this port. post-install: - @${MV} ${PREFIX}/psp/lib/crt0.o ${PREFIX}/psp/lib/crt0.newlib.o + @${MV} ${STAGEDIR}${PREFIX}/psp/lib/crt0.o ${STAGEDIR}${PREFIX}/psp/lib/crt0.newlib.o .include