freebsd-ports/security/fwbuilder/Makefile
Cy Schubert b03e362c33 With the impending removal of rcs from base/head/, add new rcs 5.7 port
which is compatible with the soon to be removed rcs (5.7) in base/ and make
security/fwbuilder (which will not work with any rcs newer than 5.7)
depend on it.
2013-10-06 04:23:20 +00:00

96 lines
2.4 KiB
Makefile

# Created by: Roman Shterenzon <roman@xpert.com>
# $FreeBSD$
PORTNAME= fwbuilder
DISTVERSION= 5.1.0
PORTVERSION= ${DISTVERSION}
PORTREVISION= 2
CATEGORIES= security
BUILD= 3599
# XXX in developement version of this port: PKGNAMESUFFIX= -devel
.if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX} == -devel
MASTER_SITES= http://www.fwbuilder.org/nightly_builds/fwbuilder-5.0/current_build/
PORTVERSION= ${DISTVERSION}.b${BUILD}
PORTREVISION= 1
.else
MASTER_SITES= SF/${PORTNAME}/Current_Packages/${PORTVERSION}
.endif
DISTVERSIONSUFFIX= .${BUILD}
MAINTAINER= cy@FreeBSD.org
COMMENT= Firewall Builder GUI and policy compilers
.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
LIB_DEPENDS= xslt.2:${PORTSDIR}/textproc/libxslt \
netsnmp.30:${PORTSDIR}/net-mgmt/net-snmp
PLIST_SUB= BUILD_VERSION=${DISTVERSION}.${BUILD}
USE_QT4= corelib \
gui \
iconengines \
inputmethods \
linguist_build \
moc_build \
rcc_build \
qmake_build \
svg \
uic_build \
xml
QTDIR?= ${QT_PREFIX}
USE_OPENSSL= yes
USE_GMAKE= yes
USE_AUTOTOOLS= autoconf aclocal libtool
CONFIGURE_SCRIPT= autogen.sh
GNU_CONFIGURE= yes
CONFIGURE_ENV= QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --with-docdir=${DOCSDIR} --with-qtdir=${QTDIR}
MAKE_ARGS+= QTDIR="${QTDIR}" \
QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++
USE_LDCONFIG= yes
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
MAN1= fwbuilder.1 \
fwbedit.1 \
fwb_iosacl.1 \
fwb_ipt.1 \
fwb_ipf.1 \
fwb_ipfw.1 \
fwb_pix.1 \
fwb_pf.1
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 800107
MAKE_ENV+= CCACHE_DISABLE=yes
.endif
.if ${OSVERSION} >= 1000055
# IMPORTANT: Newer versions of rcs will NOT work with fwbuilder.
RUN_DEPENDS= rcs:${PORTSDIR}/devel/rcs57
.endif
post-install:
@${STRIP_CMD} ${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.
.if defined(NOPORTDOCS)
BROKEN= NOPORTDOCS is incomplete in this port
.endif
.include <bsd.port.post.mk>