- Fix build on -stable

- Support CFLAGS properly

PR:		ports/62259
Submitted by:	Ports Fury
This commit is contained in:
Kirill Ponomarev 2004-02-02 15:34:51 +00:00
parent f7a539c509
commit 4dcb418a8b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=99816
2 changed files with 14 additions and 1 deletions

View file

@ -17,12 +17,14 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= A simple but powerful tool for parsing
WRKSRC= ${WRKDIR}/d
USE_GMAKE= yes
MAKE_ARGS= CC="${CC}" D_OPTIMIZE=
MAN1= make_dparser.1
.if !defined(NOPORTDOCS)
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
.endif

View file

@ -0,0 +1,11 @@
--- arg.c.orig Fri Nov 7 03:03:52 2003
+++ arg.c Mon Feb 2 18:35:43 2004
@@ -40,7 +40,7 @@
*(double *)desc[i].location = atof(arg);
break;
case 'L':
- *(int64 *)desc[i].location = atoll(arg);
+ *(int64 *)desc[i].location = strtoll(arg,NULL,10);
break;
case 'S': strncpy((char *)desc[i].location,arg, atoi(desc[i].type+1));
break;