1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/sysutils/pflogx/Makefile
Alexey Dokuchaev f1405f0ddc Unbreak the build on sparc64: it was caused by #include <net/pfvar.h> that
was conflicting with C++ headers, leading to the following errors:

  In file included from /usr/include/c++/4.2/iostream:45,
                   from ../include/XmlFileWriter.h:36,
                   from pflogx.cpp:36:
  /usr/include/c++/4.2/ostream:566:47: error: macro "flush" passed 2
  arguments, but takes just 1

This header was required before PF_* enums were moved to <netpfil/pf/pf.h>,
which applies to all supported versions of FreeBSD.  Thus, do not #include
offending and nowadays useless header file, only #include <netpfil/pf/pf.h>
(which is #included by <net/pfvar.h>) when its definitions are needed.

Tested on:	i386, amd64, powerpc, sparc64
2017-12-27 10:39:58 +00:00

40 lines
1.0 KiB
Makefile

# Created by: clsung
# $FreeBSD$
PORTNAME= pflogx
PORTVERSION= 0.86
CATEGORIES= sysutils
MASTER_SITES= http://akldev.free.fr/pflogx/releases/
DISTNAME= ${PORTNAME}_${PORTVERSION:S/.//}
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple tool to export pf (packet filter) logs to XML files
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
WRKSRC= ${WRKDIR}/${PORTNAME}
OPTIONS_DEFINE= EXPAT DOCS EXAMPLES
EXPAT_DESC= Ability to merge new events (require expat)
EXPAT_LIB_DEPENDS= libexpat.so:textproc/expat2
EXPAT_MAKE_ARGS= -DWITH_EXPAT \
EXPAT_INCLUDEDIR=${LOCALBASE}/include \
EXPAT_LIBDIR=${LOCALBASE}/lib
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/pflogx ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/LICENSE ${STAGEDIR}${DOCSDIR}
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/dtd/* ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/xsl/* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>