1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/irc/epic4/Makefile
Mathieu Arnold eee58d187e Change the way Perl modules are installed, update the default Perl to 5.18.
Before, we had:

  site_perl :           lib/perl5/site_perl/5.18
  site_perl/perl_arch : lib/perl5/site_perl/5.18/mach
  perl_man3 :           lib/perl5/5.18/man/man3

Now we have:

  site_perl : lib/perl5/site_perl
  site_arch : lib/perl5/site_perl/mach/5.18
  perl_man3 : lib/perl5/site_perl/man/man3

Modules without any .so will be installed at the same place regardless of the
Perl version, minimizing the upgrade when the major Perl version is changed.
It uses a version dependent directory for modules with compiled bits.

As PERL_ARCH is no longer needed in plists, it has been removed from
PLIST_SUB.

The USE_PERL5=fixpacklist keyword is removed, the .packlist file is now
always removed, as is perllocal.pod.

The old site_perl and site_perl/arch directories have been kept in the
default Perl @INC for all Perl ports, and will be phased out as these old
Perl versions expire.

PR:		194969
Differential Revision:	https://reviews.freebsd.org/D1019
Exp-run by:	antoine
Reviewed by:	perl@
Approved by:	portmgr
2014-11-26 13:08:24 +00:00

86 lines
2.2 KiB
Makefile

# Created by: Ben Hutchinson <benhutch@xfiles.org.uk>
# $FreeBSD$
PORTNAME= epic4
PORTVERSION= 2.10.5
PORTREVISION= 1
CATEGORIES= irc ipv6
MASTER_SITES= http://ftp.epicsol.org/pub/epic/EPIC4-PRODUCTION/ \
http://tehran.lain.pl/epic-mirror/EPIC4-PRODUCTION/ \
ftp://ftp.irc.org/irc/clients/unix/epic/EPIC4-PRODUCTION/ \
http://ftp.freenet.de/pub/ftp.prbh.org/pub/epic/EPIC4-PRODUCTION/ \
ftp://ftp.eu.uu.net/pub/unix/irc/epic/EPIC4-PRODUCTION/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${PORTNAME}-help-20050315.tar.bz2
MAINTAINER= jpaetzel@FreeBSD.org
COMMENT= The (E)nhanced (P)rogrammable (I)RC-II (C)lient
LICENSE= BSD3CLAUSE
CONFLICTS= epic5-0.[0-2]*
GNU_CONFIGURE= yes
USE_OPENSSL= yes
PLIST_SUB+= PORTVERSION=${PORTVERSION}
USES+= tar:bzip2
CFLAGS:= ${CFLAGS:C/-O2/-g -O/g}
OPTIONS_DEFINE= IPV6 TCL PERL SSL TERMCAP DOCS
OPTIONS_DEFAULT= TCL PERL SSL
TERMCAP_DESC= Refuse to use terminfo/ncurses
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --without-ipv6
.endif
.if ${PORT_OPTIONS:MTCL}
LIB_DEPENDS+= libtcl84.so:${PORTSDIR}/lang/tcl84
CONFIGURE_ARGS+= --with-tcl
.else
CONFIGURE_ARGS+= --without-tcl
.endif
# enable perl5 support (requires perl 5.6.1 or newer)
#
# The path provided to --with-perl is needed, since the configure script
# looks for libperl.so in places very specific to Linux. Possibly a
# patch to configure would be a better idea, but we need to rely on
# SITE_PERL and PERL_VERSION to create the path.
#
.if ${PORT_OPTIONS:MPERL}
USES+= perl5
CONFIGURE_ARGS+= --with-perl=${LOCALBASE}/lib/perl5/${PERL_VERSION}/${PERL_ARCH}/CORE
.else
CONFIGURE_ARGS+= --without-perl
.endif
.if ${PORT_OPTIONS:MSSL}
CONFIGURE_ARGS+= --with-ssl
.else
CONFIGURE_ARGS+= --without-ssl
.endif
.if ${PORT_OPTIONS:MTERMCAP}
CONFIGURE_ARGS+= --with-termcap
.endif
post-extract:
@${FIND} ${WRKDIR} -type d -name CVS | ${XARGS} ${RM} -rf
post-patch:
@${RM} ${WRKDIR}/help/Makefile
post-install:
@${CP} -R ${WRKDIR}/help/* ${STAGEDIR}${PREFIX}/share/epic/help
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in BUG_FORM COPYRIGHT KNOWNBUGS README UPDATES VOTES
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>