1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/security/fwbuilder/Makefile
Stefan Eßer 04b9da4140 */*: Remove redundant '-*' from CONFLICTS definitions
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").

Approved by: portmgr (blanket)
2021-11-25 22:40:11 +01:00

83 lines
2.2 KiB
Makefile

# Created by: Roman Shterenzon <roman@xpert.com>
PORTNAME= fwbuilder
PORTVERSION= 5.3.7
PORTREVISION= 2
DISTVERSIONPREFIX= v
CATEGORIES= security
MAINTAINER= cy@FreeBSD.org
COMMENT= Firewall Builder GUI and policy compilers
BROKEN_FreeBSD_12_powerpc64= fails to configure on powerpc64 elfv1: libz library not found
LIB_DEPENDS= libxslt.so:textproc/libxslt \
libnetsnmp.so:net-mgmt/net-snmp
OPTIONS_DEFINE= DOCS
.if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX} == -devel
CONFLICTS= fwbuilder-[234].* fwbuilder-devel-[234].* \
libfwbuilder-[234].* libfwbuilder-devel-[234].*
.else
CONFLICTS= fwbuilder-[234].* fwbuilder-devel \
libfwbuilder-[234].* libfwbuilder-devel
.endif
USES= autoreconf:build gmake libtool qmake:no_configure qt:5 ssl
USE_GITHUB= yes
PLIST_SUB= PORTVERSION=${PORTVERSION}
USE_QT= buildtools gui \
linguist_build \
printsupport \
qmake_build \
svg \
xml
QTDIR?= ${PREFIX}
GNU_CONFIGURE= yes
CONFIGURE_ENV= QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++ \
INSTALL_ROOT=${STAGEDIR}
CPPFLAGS+= -I${LOCALBASE}/include
CXXFLAGS+= -Wno-reserved-user-defined-literal
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-docdir=${DOCSDIR} --with-qtdir=${QTDIR} \
--prefix=${PREFIX}
MAKE_ARGS+= QTDIR="${QTDIR}" \
QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++
MAKE_ENV= INSTALL_ROOT=${STAGEDIR} CCACHE_DISABLE=yes
USE_LDCONFIG= yes
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
PORTDOCS= *
.include <bsd.port.options.mk>
.if !exists (/usr/bin/rcs)
# IMPORTANT: Newer versions of rcs will NOT work with fwbuilder.
RUN_DEPENDS+= rcs:devel/rcs57
.endif
.if empty(PORT_OPTIONS:MDOCS)
BROKEN= DOCS must be enabled in this port
.endif
post-patch:
@${REINPLACE_CMD} '/^\.\/configure/d' ${WRKSRC}/autogen.sh
pre-configure:
(cd ${WRKSRC} && ./autogen.sh)
# Work around an esoteric build issue related to the QT5 build infrastructure
post-configure:
@find ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} 's|-isystem /usr/include||g'
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fwbuilder
@${ECHO} If you are upgrading from a previous version of fwbuilder,
@${ECHO} please make sure to backup your fwbuilder database files
@${ECHO} prior to invoking fwbuilder for the first time.
.include <bsd.port.mk>