freebsd-ports/polish/ekg2/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

99 lines
2.4 KiB
Makefile

# Created by: Aleksander Fafula <alex@bsdguru.org>
# $FreeBSD$
PORTNAME= ekg2
PORTVERSION= 0.3.1
PORTREVISION= 7
PORTEPOCH= 1
CATEGORIES= polish net-im
MASTER_SITES= http://pl.ekg2.org/
MAINTAINER= pawel@FreeBSD.org
COMMENT= Text-mode Gadu-Gadu, Jabber, and IRC client
LIB_DEPENDS= libgadu.so:${PORTSDIR}/polish/libgadu \
libgnutls.so:${PORTSDIR}/security/gnutls \
libexpat.so:${PORTSDIR}/textproc/expat2
LICENSE= GPLv2
GNU_CONFIGURE= yes
USES= gmake iconv libtool pathfix pkgconfig readline
CONFIGURE_ARGS+= --enable-shared \
--disable-static \
--enable-dynamic \
--with-expat \
--without-sqlite \
--without-gpm-mouse \
--with-libgadu \
--without-gif \
--without-libjpeg \
--without-libidn
INSTALL_TARGET= install-strip
LDFLAGS+= -L${LOCALBASE}/lib -lintl -pthread
CFLAGS+= -I${LOCALBASE}/include
OPTIONS_DEFINE= ASPELL GPG GSM GTK2 NLS PERL PYTHON SQLITE UNICODE XOSD
OPTIONS_DEFAULT=ASPELL
OPTIONS_SUB= yes
GPG_DESC= GPG plugin
GSM_DESC= GSM audio plugin
GTK2_DESC= GTK+ 2 plugin
PERL_DESC= Perl plugin
PYTHON_DESC= Python plugin
SQLITE_DESC= SQLite plugin
UNICODE_DESC= Unicode support (experimental)
XOSD_DESC= Xosd plugin
ASPELL_CONFIGURE_WITH= aspell
ASPELL_LIB_DEPENDS= libaspell.so:${PORTSDIR}/textproc/aspell
ASPELL_RUN_DEPENDS= ${LOCALBASE}/share/aspell/pl.rws:${PORTSDIR}/polish/aspell
GPG_CONFIGURE_WITH= gpg
GPG_LIB_DEPENDS= libgpgme.so:${PORTSDIR}/security/gpgme \
libgpg-error.so:${PORTSDIR}/security/libgpg-error
GPG_RUN_DEPENDS= gpg:${PORTSDIR}/security/gnupg
GSM_CONFIGURE_WITH= libgsm
GSM_LIB_DEPENDS= libgsm.so:${PORTSDIR}/audio/gsm
GTK2_CONFIGURE_WITH= gtk
GTK2_USE= GNOME=gtk2
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
PERL_CONFIGURE_WITH= perl
PERL_USES= perl5
PYTHON_CONFIGURE_WITH= python
PYTHON_USE= PYTHON=yes
SQLITE_CONFIGURE_WITH= sqlite3
SQLITE_LIB_DEPENDS= libsqlite3.so:${PORTSDIR}/databases/sqlite3
UNICODE_CONFIGURE_ENABLE= unicode
XOSD_CONFIGURE_WITH= libxosd
XOSD_LIB_DEPENDS= libxosd.so:${PORTSDIR}/misc/xosd
.include <bsd.port.options.mk>
post-patch:
# needs newer headers for O_NOFOLLOW flag
@${REINPLACE_CMD} '/_XOPEN_SOURCE/ s|600|700|' \
${WRKSRC}/plugins/xmsg/xmsg.c
.if ${PORT_OPTIONS:MPYTHON}
@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
${WRKSRC}/contrib/python/notify-bubble.py
.endif
.if ${PORT_OPTIONS:MUNICODE}
@${REINPLACE_CMD} -e 's|ncursesw/||' ${WRKSRC}/configure \
${WRKSRC}/plugins/ncurses/ecurses.h
.endif
.include <bsd.port.mk>