Lines 3-8
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= newlib |
4 |
PORTNAME= newlib |
5 |
PORTVERSION= 1.20.0 |
5 |
PORTVERSION= 1.20.0 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= devel |
7 |
CATEGORIES= devel |
7 |
MASTER_SITES= ftp://sources.redhat.com/pub/ \ |
8 |
MASTER_SITES= ftp://sources.redhat.com/pub/ \ |
8 |
${MASTER_SITE_SOURCEWARE} |
9 |
${MASTER_SITE_SOURCEWARE} |
Lines 29-35
Link Here
|
29 |
MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS} -g" # Apparently, it doesn't work on the PSP without debug information |
30 |
MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS} -g" # Apparently, it doesn't work on the PSP without debug information |
30 |
|
31 |
|
31 |
# Disable installation of .info files and fix includedir reference. |
32 |
# Disable installation of .info files and fix includedir reference. |
32 |
NO_STAGE= yes |
|
|
33 |
post-patch: |
33 |
post-patch: |
34 |
@${REINPLACE_CMD} -E 's/^(install.*:.*)install-info(.*)/\1\2/' ${WRKSRC}/etc/Makefile.in |
34 |
@${REINPLACE_CMD} -E 's/^(install.*:.*)install-info(.*)/\1\2/' ${WRKSRC}/etc/Makefile.in |
35 |
@${REINPLACE_CMD} -E 's#(-I\$${prefix}/)psp(/sdk/include)#-I${LOCALBASE}/${PSP_SDK_STAGE_PREFIX:S,/,\\/,}\2#' ${WRKSRC}/newlib/configure.host |
35 |
@${REINPLACE_CMD} -E 's#(-I\$${prefix}/)psp(/sdk/include)#-I${LOCALBASE}/${PSP_SDK_STAGE_PREFIX:S,/,\\/,}\2#' ${WRKSRC}/newlib/configure.host |
Lines 39-44
Link Here
|
39 |
# Rename installed crt0.o as real crt0.o used by PSP code comes with psptoolchain-pspsdk-stage2 |
39 |
# Rename installed crt0.o as real crt0.o used by PSP code comes with psptoolchain-pspsdk-stage2 |
40 |
# and would overwrite the one from this port. |
40 |
# and would overwrite the one from this port. |
41 |
post-install: |
41 |
post-install: |
42 |
@${MV} ${PREFIX}/psp/lib/crt0.o ${PREFIX}/psp/lib/crt0.newlib.o |
42 |
@${MV} ${STAGEDIR}${PREFIX}/psp/lib/crt0.o ${STAGEDIR}${PREFIX}/psp/lib/crt0.newlib.o |
43 |
|
43 |
|
44 |
.include <bsd.port.post.mk> |
44 |
.include <bsd.port.post.mk> |