summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
Diffstat (limited to 'chat')
-rw-r--r--chat/epic4/Makefile5
-rw-r--r--chat/epic4/distinfo3
-rw-r--r--chat/epic4/options.mk15
-rw-r--r--chat/epic4/patches/patch-configure23
4 files changed, 43 insertions, 3 deletions
diff --git a/chat/epic4/Makefile b/chat/epic4/Makefile
index d98d1e2e03c..ddacc934dca 100644
--- a/chat/epic4/Makefile
+++ b/chat/epic4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2015/11/07 21:18:23 dholland Exp $
+# $NetBSD: Makefile,v 1.40 2015/11/07 21:36:57 dholland Exp $
#
DISTNAME= epic4-2.10.2
@@ -17,7 +17,6 @@ EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.epicsol.org/
COMMENT= The (E)nhanced (P)rogrammable (I)RC-II (C)lient
-USE_TOOLS+= perl
GNU_CONFIGURE= YES
@@ -25,6 +24,8 @@ INSTALL_MAKE_FLAGS+= IP=${DESTDIR}
CFLAGS.OSF1+= -D_SOCKADDR_LEN
+.include "options.mk"
+
.include "../../mk/termcap.buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/chat/epic4/distinfo b/chat/epic4/distinfo
index 214dcdd3ad8..1aa77ac054a 100644
--- a/chat/epic4/distinfo
+++ b/chat/epic4/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.13 2015/11/03 01:20:18 agc Exp $
+$NetBSD: distinfo,v 1.14 2015/11/07 21:36:57 dholland Exp $
SHA1 (epic4-2.10.2.tar.bz2) = 5b6538d9c1465bc861295f54fe375f326921dcb7
RMD160 (epic4-2.10.2.tar.bz2) = 38af0d56fdb315c4ce47bf531a4e00d79f13eb5f
SHA512 (epic4-2.10.2.tar.bz2) = 648bcdca52d376705d4459853a316e1027e7c9c00cb0a8b56ad45c13e4019fb790bd10c6686103064994133ddc26f280925b24cdc4932bd986b127b7033a558c
Size (epic4-2.10.2.tar.bz2) = 633946 bytes
+SHA1 (patch-configure) = d75eba5b1e6c223f8f166f3e9dedc7f2925b6393
SHA1 (patch-source_Makefile.in) = ea4b6520c228b22b43dc391725f3a0d616aeb729
diff --git a/chat/epic4/options.mk b/chat/epic4/options.mk
new file mode 100644
index 00000000000..d4d5037cacf
--- /dev/null
+++ b/chat/epic4/options.mk
@@ -0,0 +1,15 @@
+# $NetBSD: options.mk,v 1.1 2015/11/07 21:36:57 dholland Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.epic4
+PKG_SUPPORTED_OPTIONS+= perl
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mperl)
+USE_TOOLS+= perl:run
+CONFIGURE_ARGS+= --with-perl
+.include "../../lang/perl5/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-perl
+.endif
diff --git a/chat/epic4/patches/patch-configure b/chat/epic4/patches/patch-configure
new file mode 100644
index 00000000000..d58ba424a87
--- /dev/null
+++ b/chat/epic4/patches/patch-configure
@@ -0,0 +1,23 @@
+$NetBSD: patch-configure,v 1.1 2015/11/07 21:36:57 dholland Exp $
+
+- Disable part of the perl probe so pkgsrc perl works.
+
+--- configure~ 2008-03-20 04:20:49.000000000 +0000
++++ configure
+@@ -5051,11 +5051,11 @@ fi
+
+ test "xno" != "x$withval" && for base in $withval /usr/local /usr /
+ do
+- FOUND=
+- for ext in so a dll ; do
+- test -r $base/lib/libperl.$ext && FOUND=1
+- test -r $base/libperl.$ext && FOUND=1
+- done
++ FOUND=1
++ #for ext in so a dll ; do
++ # test -r $base/lib/libperl.$ext && FOUND=1
++ # test -r $base/libperl.$ext && FOUND=1
++ #done
+ test -n "$FOUND" || continue
+ echo "$ac_t""yes" 1>&6
+ LIBS="$LIBS `perl -MExtUtils::Embed -e ldopts`"