mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
[PATCH] devel/hptools: fix GCC 4.2 builds
Fix build breakage under gcc 4.2 PR: ports/115798 Submitted by: Hung-Yi Chen <gaod@hychen.org> Approved by: maintainer timeout
This commit is contained in:
parent
57ca83abc6
commit
cbffe84b30
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=200737
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= hptools
|
||||
PORTVERSION= 3.0.8
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://www.hpcalc.org/hp48/pc/programming/
|
||||
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
|
||||
@ -18,6 +19,8 @@ WRKSRC= ${WRKDIR}/Hptools/${CONFIGURE_TARGET}
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_SCRIPT= ../support/configure
|
||||
PATCH_ARGS= -E ${PATCH_STRIP}
|
||||
|
||||
|
||||
NO_CDROM= 'Commercial use is Prohibited'
|
||||
|
||||
@ -26,6 +29,11 @@ pre-patch:
|
||||
${WRKDIR}/Hptools/common/envfile.c \
|
||||
${WRKDIR}/Hptools/rplcomp/defer.c \
|
||||
${WRKDIR}/Hptools/rplcomp/masd.c
|
||||
cd ${WRKDIR}/Hptools && \
|
||||
${PATCH} ${PATCH_ARGS} < ${FILESDIR}/p-common_getopt.c
|
||||
cd ${WRKDIR}/Hptools && \
|
||||
${PATCH} ${PATCH_ARGS} < ${FILESDIR}/p-sload_symb.c
|
||||
|
||||
pre-configure:
|
||||
@(${MKDIR} ${WRKSRC})
|
||||
|
||||
|
11
devel/hptools/files/p-common_getopt.c
Normal file
11
devel/hptools/files/p-common_getopt.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- common/getopt.c.orig Wed Oct 3 23:28:45 2007
|
||||
+++ common/getopt.c Wed Oct 3 23:29:03 2007
|
||||
@@ -21,7 +21,7 @@
|
||||
int optopt, opterr = TRUE, optind = 1;
|
||||
char *optarg;
|
||||
|
||||
-static int sp = 1;
|
||||
+int sp = 1;
|
||||
|
||||
int getopt( int argc, char * const argv[], const char *opts )
|
||||
{
|
11
devel/hptools/files/p-sload_symb.c
Normal file
11
devel/hptools/files/p-sload_symb.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- sload/symb.c.orig Wed Oct 3 23:28:21 2007
|
||||
+++ sload/symb.c Wed Oct 3 23:28:31 2007
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "sptree.h"
|
||||
|
||||
|
||||
-static SYMBOLPTR symtree;
|
||||
+SYMBOLPTR symtree;
|
||||
int lookups=0, lkcmps=0, adds=0;
|
||||
|
||||
b_16 symbols;
|
Loading…
Reference in New Issue
Block a user