Skip to content

Commit

Permalink
devel/pcc-libs: accept both x86_64 and amd64
Browse files Browse the repository at this point in the history
In preparation for config.guess/config.sub
  • Loading branch information
bapt committed Sep 5, 2022
1 parent 7a51b65 commit 97eb3f0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 9 deletions.
10 changes: 1 addition & 9 deletions devel/pcc-libs/Makefile
Expand Up @@ -22,12 +22,4 @@ GNU_CONFIGURE= yes
DATADIR= ${PREFIX}/lib/pcc
PORTDATA= *

.include <bsd.port.pre.mk>

post-patch:
.if ${OPSYS} == FreeBSD
@${REINPLACE_CMD} -e '/targmach=amd64/s/x86_64/amd64/' \
${WRKSRC}/configure
.endif

.include <bsd.port.post.mk>
.include <bsd.port.mk>
30 changes: 30 additions & 0 deletions devel/pcc-libs/files/patch-configure
@@ -0,0 +1,30 @@
--- configure.orig 2014-12-06 10:06:59 UTC
+++ configure
@@ -1976,7 +1976,7 @@ case "$target_os" in
case "$target_cpu" in
i?86) targmach=i386 ;;
powerpc) targmach=powerpc endian=big ;;
- x86_64) targmach=amd64 ;;
+ amd64) targmach=amd64 ;;
esac
;;

@@ -1991,7 +1991,8 @@ case "$target_os" in
targos=freebsd
case "$target_cpu" in
i386) targmach=i386 ;;
- x86_64) targmach=amd64 ;;
+ amd64) targmach=amd64 ;;
+ x86_64|amd64) targmach=amd64 ;;
esac
;;

@@ -2000,7 +2001,7 @@ case "$target_os" in
case "$target_cpu" in
i?86) targmach=i386 ;;
powerpc*) targmach=powerpc endian=big ;;
- x86_64) targmach=amd64 ;;
+ amd64) targmach=amd64 ;;
esac
;;

0 comments on commit 97eb3f0

Please sign in to comment.