# Created by: Tassilo Philipp # $FreeBSD: head/devel/psptoolchain-pspsdk-stage2/Makefile 503679 2019-06-08 00:23:04Z swills $ PORTREVISION= 2 PKGNAMESUFFIX= -stage2 MAINTAINER= tphilipp@potion-studios.com COMMENT= PlayStation Portable development toolchain ${PORTNAME} BUILD_DEPENDS= psp-cpp:devel/psptoolchain-gcc-stage2 \ psp-gcc:devel/psptoolchain-gcc-stage2 \ psp-gcov:devel/psptoolchain-gcc-stage2 \ psp-g++:devel/psptoolchain-gcc-stage2 \ psp-ar:devel/psptoolchain-binutils \ ${LOCALBASE}/psp/lib/libc.a:devel/psptoolchain-newlib # psp-gcc doesn't need -march=... in CFLAGS (e.g. set by CPUTYPE in make.conf) CONFIGURE_ENV= CFLAGS="${CFLAGS:C/(^|[[:space:]])-march=[^[:space:]]*//g}" CONFIGURE_ARGS= --prefix=${PREFIX} --with-pspdev="${LOCALBASE}" # there is no libssp w/ PSP SDK, disable stack guards as they would be # unresolved symbols, explicitly disable to be on the safe side SSP_UNSAFE= yes CFLAGS+= -fno-stack-protector LDFLAGS+= -fno-stack-protector PLIST= ${.CURDIR}/pkg-plist MASTERDIR= ${.CURDIR}/../psptoolchain-pspsdk-stage1 .include "${MASTERDIR}/Makefile"