1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-03 11:12:13 +00:00
Mathieu Arnold 6d588589c2 Make defining both PORTVERSION and DISTVERSION a DEV_ERROR.
There are two cases:

- The upstream versionning is compatible with our versionning, or using
  DISTVERSION's magic leads to a compatible PORTVERSION, use
  DISTVERSION.  If it is possible to use DISTVERSIONPREFIX and
  DISTVERSIONSUFFIX to make it compatible, use them.
- The upstream versionning is not compatible with our versionning, and
  DISTVERSION's magic does not lead to a correct PORTVERSION, then set
  PORTVERSION to the equivalent of our versionning, and set DISTNAME.
  It is possible to use a third variable where you store upstream's
  version and use it to compute PORTVERSION and/or DISTNAME, like the
  dns/bind9* ports do.

Sponsored by:	Absolight
2017-04-11 15:21:23 +00:00

83 lines
2.0 KiB
Makefile

# Created by: Roman Shterenzon <roman@xpert.com>
# $FreeBSD$
PORTNAME= fwbuilder
PORTVERSION= 5.1.0
DISTVERSIONSUFFIX= .${BUILD}
PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= SF/${PORTNAME}/Current_Packages/${PORTVERSION}
MAINTAINER= cy@FreeBSD.org
COMMENT= Firewall Builder GUI and policy compilers
#OPTIONS_DEFINE= DOCS
BUILD= 3599
.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= libxslt.so:textproc/libxslt \
libnetsnmp.so:net-mgmt/net-snmp
PLIST_SUB= BUILD_VERSION=${PORTVERSION}.${BUILD}
USE_QT4= corelib \
gui \
iconengines \
inputmethods \
linguist_build \
moc_build \
rcc_build \
qmake_build \
svg \
uic_build \
xml
QTDIR?= ${PREFIX}
USES= autoreconf:build gmake libtool ssl
GNU_CONFIGURE= yes
CONFIGURE_ENV= QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++ \
INSTALL_ROOT=${STAGEDIR}
CPPFLAGS+= -I${LOCALBASE}/include
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)
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>