Changeset View
Changeset View
Standalone View
Standalone View
head/devel/psptoolchain-newlib/Makefile
Show All 25 Lines | |||||
CONFIGURE_ENV= PATH=${LOCALBASE}/${PSP_GCC_STAGE_PREFIX}/bin:${PATH} | CONFIGURE_ENV= PATH=${LOCALBASE}/${PSP_GCC_STAGE_PREFIX}/bin:${PATH} | ||||
MAKE_ENV= PATH=${LOCALBASE}/${PSP_GCC_STAGE_PREFIX}/bin:${PATH} | MAKE_ENV= PATH=${LOCALBASE}/${PSP_GCC_STAGE_PREFIX}/bin:${PATH} | ||||
CONFIGURE_ARGS= --prefix=${PREFIX} --target="psp" | CONFIGURE_ARGS= --prefix=${PREFIX} --target="psp" | ||||
MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS} -g" # Apparently, it doesn't work on the PSP without debug information | 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. | # Disable installation of .info files and fix includedir reference. | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -E 's/^(install.*:.*)install-info(.*)/\1\2/' ${WRKSRC}/etc/Makefile.in | @${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 | @${REINPLACE_CMD} -E 's#(-I\$$\{prefix}/)psp(/sdk/include)#-I${LOCALBASE}/${PSP_SDK_STAGE_PREFIX:S,/,\\/,}\2#' ${WRKSRC}/newlib/configure.host | ||||
# Rename installed crt0.o as real crt0.o used by PSP code comes with psptoolchain-pspsdk-stage2 | # 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. | # and would overwrite the one from this port. | ||||
post-install: | post-install: | ||||
@${MV} ${STAGEDIR}${PREFIX}/psp/lib/crt0.o ${STAGEDIR}${PREFIX}/psp/lib/crt0.newlib.o | @${MV} ${STAGEDIR}${PREFIX}/psp/lib/crt0.o ${STAGEDIR}${PREFIX}/psp/lib/crt0.newlib.o | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |