mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Avoid overriding post-patch target on some architectures.
PR: ports/149715 Submitted by: Dmitry Marakasov <amdmi3@amdmi3.ru>
This commit is contained in:
parent
ee18ec8073
commit
ae0c801b41
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=262768
@ -37,18 +37,6 @@ PLIST_FILES= bin/${PORTNAME}-gtk
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} != "amd64" && ${ARCH} != "i386"
|
||||
post-patch:
|
||||
# These architectures do not support "-minline-all-stringops"
|
||||
@${REINPLACE_CMD} -e 's|-minline-all-stringops||g' \
|
||||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
. if ${ARCH} == "alpha"
|
||||
# "-ffast-math" does not work on alpha
|
||||
@${REINPLACE_CMD} -e 's|-ffast-math||g' \
|
||||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
. endif
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_OPTIMIZED_CFLAGS)
|
||||
CONFIGURE_ARGS+=--with-gcc=3
|
||||
.else
|
||||
@ -67,6 +55,16 @@ CONFIGURE_ARGS+=--with-sdl-audio
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.if ${ARCH} != "amd64" && ${ARCH} != "i386"
|
||||
# These architectures do not support "-minline-all-stringops"
|
||||
@${REINPLACE_CMD} -e 's|-minline-all-stringops||g' \
|
||||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
. if ${ARCH} == "alpha"
|
||||
# "-ffast-math" does not work on alpha
|
||||
@${REINPLACE_CMD} -e 's|-ffast-math||g' \
|
||||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
. endif
|
||||
.endif
|
||||
@${REINPLACE_CMD} -e '/%define %1 @UNDERSCORE@%1 /d' \
|
||||
${WRKSRC}/raze/raze.asm.in
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user