Changeset View
Changeset View
Standalone View
Standalone View
devel/psptoolchain-gcc-stage1/Makefile
Show All 29 Lines | BUILD_DEPENDS+= psp-addr2line:${PORTSDIR}/devel/psptoolchain-binutils \ | ||||
psp-objdump:${PORTSDIR}/devel/psptoolchain-binutils \ | psp-objdump:${PORTSDIR}/devel/psptoolchain-binutils \ | ||||
psp-ranlib:${PORTSDIR}/devel/psptoolchain-binutils \ | psp-ranlib:${PORTSDIR}/devel/psptoolchain-binutils \ | ||||
psp-readelf:${PORTSDIR}/devel/psptoolchain-binutils \ | psp-readelf:${PORTSDIR}/devel/psptoolchain-binutils \ | ||||
psp-size:${PORTSDIR}/devel/psptoolchain-binutils \ | psp-size:${PORTSDIR}/devel/psptoolchain-binutils \ | ||||
psp-strings:${PORTSDIR}/devel/psptoolchain-binutils \ | psp-strings:${PORTSDIR}/devel/psptoolchain-binutils \ | ||||
psp-strip:${PORTSDIR}/devel/psptoolchain-binutils | psp-strip:${PORTSDIR}/devel/psptoolchain-binutils | ||||
USES= gmake libtool tar:bzip2 | USES= gmake libtool tar:bzip2 | ||||
PATCH_WRKSRC= ${SRCDIR} | |||||
CONFIGURE_SCRIPT= ../${SRCDIR:S/${WRKDIR}\///}/configure | |||||
SRCDIR= ${WRKDIR}/${PORTNAME}-${PORTVERSION} | |||||
WRKSRC= ${WRKDIR}/build | |||||
MAKE_ENV+= PATH=${LOCALBASE}/${PSP_GCC_STAGE_PREFIX}/bin:${PREFIX}/bin:${PATH} | MAKE_ENV+= PATH=${LOCALBASE}/${PSP_GCC_STAGE_PREFIX}/bin:${PREFIX}/bin:${PATH} | ||||
HAS_CONFIGURE= yes | HAS_CONFIGURE= yes | ||||
CONFIGURE_OUTSOURCE= yes | |||||
CONFIGURE_ARGS?= --prefix=${PREFIX}/${PSP_GCC_STAGE_PREFIX} \ | CONFIGURE_ARGS?= --prefix=${PREFIX}/${PSP_GCC_STAGE_PREFIX} \ | ||||
--target="psp" \ | --target="psp" \ | ||||
--enable-languages="c" \ | --enable-languages="c" \ | ||||
--enable-lto \ | --enable-lto \ | ||||
--with-newlib \ | --with-newlib \ | ||||
--with-gmp=${LOCALBASE} \ | --with-gmp=${LOCALBASE} \ | ||||
--with-mpfr \ | --with-mpfr \ | ||||
--without-headers \ | --without-headers \ | ||||
--disable-libssp \ | --disable-libssp \ | ||||
--disable-nls \ | --disable-nls \ | ||||
--with-ld=${LOCALBASE}/bin/psp-ld \ | --with-ld=${LOCALBASE}/bin/psp-ld \ | ||||
--with-as=${LOCALBASE}/bin/psp-as \ | --with-as=${LOCALBASE}/bin/psp-as \ | ||||
--mandir=${PREFIX}/man | --mandir=${PREFIX}/man | ||||
pre-configure: | pre-configure: | ||||
@${MKDIR} ${CONFIGURE_WRKSRC} | @${MKDIR} ${CONFIGURE_WRKSRC} | ||||
# Don't install any documentation for psptoolchain's gcc stage 1 - makes no sense. | # Don't install any documentation for psptoolchain's gcc stage 1 - makes no sense. | ||||
# Disable installation of .info files and libiberty for both stages. | # Disable installation of .info files and libiberty for both stages. | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -E "s/^(install-data-am:)(.*)install-info-am(.*)/\1 \2 \3/" \ | @${REINPLACE_CMD} -E "s/^(install-data-am:)(.*)install-info-am(.*)/\1 \2 \3/" \ | ||||
${SRCDIR}/libquadmath/Makefile.in | ${WRKSRC}/libquadmath/Makefile.in | ||||
@${REINPLACE_CMD} -E "s/^(install:)(.*)/\1#\2/" ${SRCDIR}/libiberty/Makefile.in | @${REINPLACE_CMD} -E "s/^(install:)(.*)/\1#\2/" ${WRKSRC}/libiberty/Makefile.in | ||||
@${REINPLACE_CMD} -E \ | @${REINPLACE_CMD} -E \ | ||||
-e "/^ \\$$\(mkinstalldirs\) \\$$\(DESTDIR\)\\$$\((infodir|man7dir)\)/d" \ | -e "/^ \\$$\(mkinstalldirs\) \\$$\(DESTDIR\)\\$$\((infodir|man7dir)\)/d" \ | ||||
-e "s/^(install-info:)(.*)/\1#\2/" \ | -e "s/^(install-info:)(.*)/\1#\2/" \ | ||||
-e "/^ \\$$\(DESTDIR\)\\$$\(man7dir\)\/(fsf-funding|gfdl|gpl)\\$$\(man7ext\)/d" \ | -e "/^ \\$$\(DESTDIR\)\\$$\(man7dir\)\/(fsf-funding|gfdl|gpl)\\$$\(man7ext\)/d" \ | ||||
${SRCDIR}/gcc/Makefile.in | ${WRKSRC}/gcc/Makefile.in | ||||
.if ${PKGNAMESUFFIX} == "-stage1" | .if ${PKGNAMESUFFIX} == "-stage1" | ||||
@${REINPLACE_CMD} -E "s/^(install-man:)(.*)/\1#\2/" ${SRCDIR}/gcc/Makefile.in | @${REINPLACE_CMD} -E "s/^(install-man:)(.*)/\1#\2/" ${WRKSRC}/gcc/Makefile.in | ||||
.endif | .endif | ||||
PLIST_SUB+= PSP_GCC_STAGE_PREFIX=${PSP_GCC_STAGE_PREFIX} | PLIST_SUB+= PSP_GCC_STAGE_PREFIX=${PSP_GCC_STAGE_PREFIX} | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |