Fix build on newer FreeBSD versions, and with clang.

This commit is contained in:
Adam Weinberger 2014-08-04 19:36:18 +00:00
parent d1459f8ca6
commit 3ce545202d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364041
2 changed files with 16 additions and 12 deletions

View file

@ -13,4 +13,8 @@ COMMENT= Version 3.00 beta API for Dallas Semiconductors 1-wire lan devices
NO_WRKSUBDIR= yes
USES= uidfix zip
post-patch:
@${REINPLACE_CMD} -e '/int main/s/short argc/int argc/' \
${WRKSRC}/apps/gethumd/gethumd.c ${WRKSRC}/apps/shaapp/shaapp.c
.include <bsd.port.mk>

View file

@ -43,7 +43,7 @@
+CFLAGS= -I. -Wall -I${MLANCOM}
+LDADD= -L${MLANLIB} -lmlan
+DPADD= ${MLANLIB}/libmlan.a
+NOMAN= 1
+NO_MAN= 1
+SRCS= ${PROG}.c
+
+test: ${PROG}
@ -61,7 +61,7 @@
+CFLAGS= -I. -Wall -I${MLANCOM}
+LDADD= -L${MLANLIB} -lmlan
+DPADD= ${MLANLIB}/libmlan.a
+NOMAN= 1
+NO_MAN= 1
+SRCS= ${PROG}.c
+
+test: ${PROG}
@ -79,7 +79,7 @@
+CFLAGS= -I. -Wall -I${MLANCOM}
+LDADD= -L${MLANLIB} -lmlan
+DPADD= ${MLANLIB}/libmlan.a
+NOMAN= 1
+NO_MAN= 1
+SRCS= ${PROG}.c
+
+test: ${PROG}
@ -97,7 +97,7 @@
+CFLAGS= -I. -Wall -I${MLANCOM}
+LDADD= -L${MLANLIB} -lmlan
+DPADD= ${MLANLIB}/libmlan.a
+NOMAN= 1
+NO_MAN= 1
+SRCS= ${PROG}.c
+
+test: ${PROG}
@ -115,7 +115,7 @@
+CFLAGS= -I. -Wall -I${MLANCOM}
+LDADD= -L${MLANLIB} -lmlan
+DPADD= ${MLANLIB}/libmlan.a
+NOMAN= 1
+NO_MAN= 1
+SRCS= ${PROG}.c
+
+test: ${PROG}
@ -133,7 +133,7 @@
+CFLAGS= -I. -Wall -I${MLANCOM}
+LDADD= -L${MLANLIB} -lmlan
+DPADD= ${MLANLIB}/libmlan.a
+NOMAN= 1
+NO_MAN= 1
+SRCS= ${PROG}.c
+
+test: ${PROG}
@ -151,7 +151,7 @@
+CFLAGS= -I. -Wall -I${MLANCOM}
+LDADD= -L${MLANLIB} -lmlan
+DPADD= ${MLANLIB}/libmlan.a
+NOMAN= 1
+NO_MAN= 1
+SRCS= ${PROG}.c
+
+test: ${PROG}
@ -165,7 +165,7 @@
+CFLAGS= -I. -Wall -I ../../common
+LDFLAGS= -L ../../common -L ../../lib/userial
+LDADD= -lmlanser -lmlancom
+NOMAN= true
+NO_MAN= true
+SRCS= tstfind.c
+
+.include <bsd.prog.mk>
@ -180,7 +180,7 @@
+CFLAGS= -I. -Wall -I${MLANCOM}
+LDADD= -L${MLANLIB} -lmlan
+DPADD= ${MLANLIB}/libmlan.a
+NOMAN= 1
+NO_MAN= 1
+SRCS= ${PROG}.c
+
+test: ${PROG}
@ -198,7 +198,7 @@
+CFLAGS= -I. -Wall -I${MLANCOM}
+LDADD= -L${MLANLIB} -lmlan
+DPADD= ${MLANLIB}/libmlan.a
+NOMAN= 1
+NO_MAN= 1
+SRCS= ${PROG}.c
+
+test: ${PROG}
@ -212,7 +212,7 @@
+CFLAGS= -I. -Wall -I ../../common
+LDFLAGS= -L ../../common -L ../../lib/userial
+LDADD= -lmlanser -lmlancom
+NOMAN= true
+NO_MAN= true
+SRCS= tstfind.c
+
+.include <bsd.prog.mk>
@ -227,7 +227,7 @@
+CFLAGS= -I. -Wall -I${MLANCOM}
+LDADD= -L${MLANLIB} -lmlan
+DPADD= ${MLANLIB}/libmlan.a
+NOMAN= 1
+NO_MAN= 1
+SRCS= ${PROG}.c
+
+test: ${PROG}