1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/irc/znc/Makefile
Mathieu Arnold 551be3c723 Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored.  They will
  automatically get flavors (py27, py34, py35, py36) depending on what
  versions they support.

  There is also a USE_PYTHON=flavors for ports that do not use distutils
  but need FLAVORS to be set.  A USE_PYTHON=noflavors can be set if
  using distutils but flavors are not wanted.

  A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
  added to cope with Python ports that did not have the Python
  PKGNAMEPREFIX but are flavored.

  USES=python now also exports a PY_FLAVOR variable that contains the
  current python flavor.  It can be used in dependency lines when the
  port itself is not python flavored.  For example, deskutils/calibre.

  By default, all the flavors are generated.  To only generate flavors
  for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define
  BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf.

  In all the ports with Python dependencies, the *_DEPENDS entries MUST
  end with the flavor so that the framework knows which to build/use.
  This is done by appending '@${PY_FLAVOR}' after the origin (or
  @${FLAVOR} if in a Python module with Python flavors, as the content
  will be the same).  For example:

    RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}

PR:		223071
Reviewed by:	portmgr, python
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12464
2017-11-30 15:50:30 +00:00

85 lines
2.1 KiB
Makefile

# Created by: elvstone@gmail.com
# $FreeBSD$
PORTNAME= znc
PORTVERSION= 1.6.5
PORTREVISION= 4
CATEGORIES= irc ipv6
MASTER_SITES= http://znc.in/releases/ \
http://znc.in/releases/archive/
MAINTAINER= dbaio@FreeBSD.org
COMMENT= Advanced IRC bouncer
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
GNU_CONFIGURE= yes
USE_RC_SUBR= znc
SUB_FILES= pkg-message
USES= compiler:c++11-lib cpe gmake iconv pathfix pkgconfig
MAKE_ENV= V=1
PORTDOCS= README.md
USERS= znc
GROUPS= znc
OPTIONS_DEFINE= CHARSET CYRUS DEBUG DOCS IPV6 OPENSSL PERL PYTHON TCL
OPTIONS_DEFAULT= OPENSSL PERL
OPTIONS_SUB= yes
CHARSET_DESC= Character encoding support via ICU
CYRUS_DESC= Cyrus SASL module
DEBUG_DESC= Debugging support
PERL_DESC= Perl scripting module
PYTHON_DESC= Python scripting module
TCL_DESC= Tcl scripting module
CHARSET_CONFIGURE_OFF= --disable-charset
CHARSET_LIB_DEPENDS= libicuuc.so:devel/icu
CYRUS_CONFIGURE_ON= --enable-cyrus
CYRUS_LDFLAGS= -L${LOCALBASE}/lib
CYRUS_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
DEBUG_CONFIGURE_ON= --enable-debug
IPV6_CONFIGURE_OFF= --disable-ipv6
OPENSSL_CONFIGURE_OFF= --disable-openssl
OPENSSL_CONFIGURE_ON= --with-openssl=${OPENSSLBASE}
OPENSSL_USES= ssl
PERL_BUILD_DEPENDS= swig30>=3.0.0:devel/swig30
PERL_CONFIGURE_ENABLE= perl
PERL_CONFIGURE_ON= --enable-swig
PERL_USE= perl5=build,run
PERL_USES= perl5
PYTHON_BUILD_DEPENDS= swig30>=3.0.0:devel/swig30
PYTHON_CONFIGURE_ON= --enable-python=python-${PYTHON_VER} --enable-swig
PYTHON_USE= perl5=build
PYTHON_USES= perl5 python:3.4+
TCL_CONFIGURE_ENABLE= tcl
TCL_CONFIGURE_ON= --with-tcl=${TCL_LIBDIR}
TCL_USES= tcl
# Instead of using bundled swig generated files, delete them to force
# regeneration using swig 2.0.11+ (fixes port compilation using clang)
#
pre-configure-PERL-on:
@${RM} ${WRKSRC}/modules/modperl/ZNC.cpp
pre-configure-PYTHON-on:
@${RM} ${WRKSRC}/modules/modpython/_znc_core.cpp
post-patch:
@${REINPLACE_CMD} -e \
's#/usr/local#${LOCALBASE}#' ${WRKSRC}/configure
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
post-install:
@${MKDIR} ${STAGEDIR}${ETCDIR}
.include <bsd.port.mk>