View | Details | Raw Unified | Return to bug 192144 | Differences between
and this patch

Collapse All | Expand All

(-)psptoolchain-newlib/Makefile (-3 / +3 lines)
Lines 3-15 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}
9
MASTER_SITE_SUBDIR=	${PORTNAME}
10
MASTER_SITE_SUBDIR=	${PORTNAME}
10
PKGNAMEPREFIX=		psptoolchain-
11
PKGNAMEPREFIX=		psptoolchain-
11
12
12
MAINTAINER= ports@FreeBSD.org
13
MAINTAINER= tphilipp@potion-studios.com
13
COMMENT=		PlayStation Portable development toolchain ${PORTNAME}
14
COMMENT=		PlayStation Portable development toolchain ${PORTNAME}
14
15
15
PSP_GCC_STAGE_PREFIX=	psp/stage1
16
PSP_GCC_STAGE_PREFIX=	psp/stage1
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>

Return to bug 192144