diff -ruN xchat.orig/Makefile xchat/Makefile
--- xchat.orig/Makefile	Wed Nov 16 21:26:11 2005
+++ xchat/Makefile	Wed Nov 16 21:15:39 2005
@@ -18,7 +18,7 @@
 WANTLIB=		X11 Xext Xft Xinerama Xrender atk-1.0.0.0 c crypto \
 			fontconfig freetype glib-2.0.0.0 gmodule-2.0.0.0 \
 			gobject-2.0.0.0 m pango-1.0.0.0 pangoft2-1.0.0.0 \
-			pangox-1.0.0.0 pangoxft-1.0.0.0 ssl Xcursor
+			pangox-1.0.0.0 pangoxft-1.0.0.0 ssl Xcursor perl
 
 MASTER_SITES=	${HOMEPAGE}files/source/2.4/
 MASTER_SITES0=	${MASTER_SITE_SOURCEFORGE:=xchat/}
@@ -33,9 +33,12 @@
 USE_X11=	Yes
 CONFIGURE_STYLE= gnu
 CONFIGURE_ARGS+= --disable-python --disable-textfe \
-		 --disable-perl --disable-mmx \
-		 --enable-ipv6 --enable-openssl="/usr"
+		 --disable-mmx --enable-ipv6 --enable-openssl="/usr"
 CONFIGURE_ENV=	CFLAGS="-I${LOCALBASE}/include" \
 		LIBS="-L${LOCALBASE}/lib"
+
+post-install:
+	${SUDO} mv "${PREFIX}/lib/xchat/plugins/perl.so.0.0" \
+		"${PREFIX}/lib/xchat/plugins/perl.so"
 
 .include <bsd.port.mk>
diff -ruN xchat.orig/pkg/PFRAG.shared xchat/pkg/PFRAG.shared
--- xchat.orig/pkg/PFRAG.shared	Thu Jan  1 01:00:00 1970
+++ xchat/pkg/PFRAG.shared	Wed Nov 16 21:06:30 2005
@@ -0,0 +1,2 @@
+@comment $OpenBSD$
+lib/xchat/plugins/perl.so
diff -ruN xchat.orig/pkg/PLIST xchat/pkg/PLIST
--- xchat.orig/pkg/PLIST	Wed Nov 16 21:26:11 2005
+++ xchat/pkg/PLIST	Wed Nov 16 21:35:31 2005
@@ -1,5 +1,8 @@
 @comment $OpenBSD: PLIST,v 1.15 2004/11/28 19:50:20 couderc Exp $
 bin/xchat
+lib/xchat/
+lib/xchat/plugins/
+lib/xchat/plugins/perl.la
 share/applications/
 share/applications/xchat.desktop
 share/locale/
