--- Makefile (revision 563552) +++ Makefile (working copy) @@ -6,7 +6,7 @@ CATEGORIES= comms sysutils MASTER_SITES= http://bsd-geek.de/FreeBSD/distfiles/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= mizhka@FreeBSD.org COMMENT= Bluetooth traffic dumper, similar to tcpdump LICENSE= GPLv2 @@ -19,4 +19,12 @@ PLIST_FILES= bin/hcidump man/man1/hcidump.1.gz +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300133 +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-parser-Makefile-pre13 +.else +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-parser-Makefile-post13 +.endif + .include --- files/extra-patch-parser-Makefile-post13 (nonexistent) +++ files/extra-patch-parser-Makefile-post13 (working copy) @@ -0,0 +1,16 @@ +--- parser/Makefile.orig ++++ parser/Makefile +@@ -7,10 +7,10 @@ + MAN= + SRCS= bnep.c cmtp.c hidp.c l2cap.c rfcomm.c hci.c parser.c sdp.c + WARNS?= 2 +-DEBUG_FLAGS= -g +-CFLAGS= -O2 ++MK_WERROR= no ++CFLAGS?= -O2 + +-NOPROFILE= 1 ++MK_PROFILE= no + + .include + --- files/extra-patch-parser-Makefile-pre13 (nonexistent) +++ files/extra-patch-parser-Makefile-pre13 (working copy) @@ -0,0 +1,16 @@ +--- parser/Makefile.orig ++++ parser/Makefile +@@ -7,10 +7,10 @@ + MAN= + SRCS= bnep.c cmtp.c hidp.c l2cap.c rfcomm.c hci.c parser.c sdp.c + WARNS?= 2 +-DEBUG_FLAGS= -g +-CFLAGS= -O2 ++NO_WERROR= yes ++CFLAGS?= -O2 + +-NOPROFILE= 1 ++MK_PROFILE= no + + .include + --- files/patch-parser-Makefile (revision 563552) +++ files/patch-parser-Makefile (nonexistent) @@ -1,16 +0,0 @@ ---- parser/Makefile.orig -+++ parser/Makefile -@@ -7,10 +7,10 @@ - MAN= - SRCS= bnep.c cmtp.c hidp.c l2cap.c rfcomm.c hci.c parser.c sdp.c - WARNS?= 2 --DEBUG_FLAGS= -g --CFLAGS= -O2 -+NO_WERROR= yes -+CFLAGS?= -O2 - --NOPROFILE= 1 -+MK_PROFILE= no - - .include -