diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2003-09-24 07:19:42 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2003-09-24 07:19:42 +0800 |
commit | 4b193c7344ca018c761068b805a622fa366168d6 (patch) | |
tree | e23c431857a1865543044208bcc8129de4eea47c | |
parent | fd601f6775126d7d1930250ae946fce994abe3d0 (diff) | |
download | marcuscom-ports-4b193c7344ca018c761068b805a622fa366168d6.tar marcuscom-ports-4b193c7344ca018c761068b805a622fa366168d6.tar.gz marcuscom-ports-4b193c7344ca018c761068b805a622fa366168d6.tar.bz2 marcuscom-ports-4b193c7344ca018c761068b805a622fa366168d6.tar.lz marcuscom-ports-4b193c7344ca018c761068b805a622fa366168d6.tar.xz marcuscom-ports-4b193c7344ca018c761068b805a622fa366168d6.tar.zst marcuscom-ports-4b193c7344ca018c761068b805a622fa366168d6.zip |
Add xchat2, and update to 2.0.5.
PR: 57127
Submitted by: Jean-Yves Lefort <jylefort@brutele.be>
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1247 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | irc/xchat2/Makefile | 81 | ||||
-rw-r--r-- | irc/xchat2/distinfo | 1 | ||||
-rw-r--r-- | irc/xchat2/files/patch-Makefile.in | 11 | ||||
-rw-r--r-- | irc/xchat2/files/patch-configure | 17 | ||||
-rw-r--r-- | irc/xchat2/files/patch-ltmain.sh | 58 | ||||
-rw-r--r-- | irc/xchat2/pkg-descr | 5 | ||||
-rw-r--r-- | irc/xchat2/pkg-plist | 27 |
7 files changed, 200 insertions, 0 deletions
diff --git a/irc/xchat2/Makefile b/irc/xchat2/Makefile new file mode 100644 index 000000000..533319c2c --- /dev/null +++ b/irc/xchat2/Makefile @@ -0,0 +1,81 @@ +# New ports collection makefile for: xchat2 +# Date created: 17 Aug 2002 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD: ports/irc/xchat2/Makefile,v 1.120 2003/08/23 01:03:50 perky Exp $ +# + +PORTNAME= xchat2 +PORTVERSION= 2.0.5 +CATEGORIES= irc gnome ipv6 +MASTER_SITES= http://xchat.org/files/source/2.0/ \ + http://xchat.linuxpower.org/files/source/2.0/ +DISTNAME= xchat-${PORTVERSION} + +MAINTAINER= gnome@FreeBSD.org +COMMENT= An X11 IRC client using the GTK+ 2 toolkit + +USE_X_PREFIX= yes +USE_BZIP2= yes +USE_GMAKE= yes +USE_PERL5= yes +USE_GNOME= gnomeprefix gnomehack gtk20 +GNU_CONFIGURE= yes +USE_REINPLACE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ + LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" +CONFIGURE_ARGS= --enable-nls \ + --enable-ipv6 \ + --enable-perl + +.include <bsd.port.pre.mk> + +.if defined(WITH_SOCKS) +BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5 +CONFIGURE_ARGS+= --enable-socks +.endif + +# openssl in now default in configure + +.if defined(WITH_PYTHON) +USE_PYTHON= yes +CONFIGURE_ARGS+= --enable-python +PLIST_SUB+= PYTHON="" +.else +CONFIGURE_ARGS+= --disable-python +PLIST_SUB+= PYTHON="@comment " +.endif + +.if defined(WITH_TCL) +LIB_DEPENDS= tcl83.1:${PORTSDIR}/lang/tcl83 +CONFIGURE_ARGS+=--enable-tcl=${LOCALBASE}/lib/tcl8.3 +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS} \ + -I${LOCALBASE}/include/tcl8.3" \ + LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} \ + -L${LOCALBASE}/lib/tcl8.3" +PLIST_SUB+= TCL="" +.else +CONFIGURE_ARGS+=--enable-tcl=no +PLIST_SUB+= TCL="@comment " +.endif + +pre-everything:: +.if !defined(WITH_PYTHON) || !defined(WITH_SOCKS) || !defined(WITH_TCL) + @${ECHO_MSG} "You may specify the following on the command line:" + @${ECHO_MSG} "" +.endif +.if !defined(WITH_PYTHON) + @${ECHO_MSG} "WITH_PYTHON=yes for Python support" +.endif +.if !defined(WITH_SOCKS) + @${ECHO_MSG} "WITH_SOCKS=yes for SOCKS5 proxy support" +.endif +.if !defined(WITH_TCL) + @${ECHO_MSG} "WITH_TCL=yes for tcl support" +.endif + +post-patch: + @${REINPLACE_CMD} -E -e 's|PY_LIBS=.*|PY_LIBS="-L\$$PY_EXEC_PREFIX/lib/python\$$PY_VER/config -lpython\$$PY_VER ${PTHREAD_LIBS} -lutil"|' \ + ${WRKSRC}/configure + +.include <bsd.port.post.mk> diff --git a/irc/xchat2/distinfo b/irc/xchat2/distinfo new file mode 100644 index 000000000..741b27757 --- /dev/null +++ b/irc/xchat2/distinfo @@ -0,0 +1 @@ +MD5 (xchat-2.0.5.tar.bz2) = 8a594ed57287a9fb212425ecba8d5401 diff --git a/irc/xchat2/files/patch-Makefile.in b/irc/xchat2/files/patch-Makefile.in new file mode 100644 index 000000000..5625f2e60 --- /dev/null +++ b/irc/xchat2/files/patch-Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.old Thu Jul 31 05:24:26 2003 ++++ Makefile.in Thu Jul 31 19:03:06 2003 +@@ -211,7 +211,7 @@ + icondir = $(datadir)/pixmaps + + util_DATA = xchat.desktop +-utildir = $(datadir)/applications ++utildir = $(datadir)/apps/Internet + subdir = . + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs diff --git a/irc/xchat2/files/patch-configure b/irc/xchat2/files/patch-configure new file mode 100644 index 000000000..576821f6f --- /dev/null +++ b/irc/xchat2/files/patch-configure @@ -0,0 +1,17 @@ +--- configure.orig Tue Sep 23 18:58:15 2003 ++++ configure Tue Sep 23 19:04:29 2003 +@@ -21462,12 +21462,12 @@ + /* end confdefs.h. */ + #include <libintl.h> + extern int _nl_msg_cat_cntr; +-extern int *_nl_domain_bindings; ++extern int *libintl_nl_domain_bindings; + int + main () + { + bindtextdomain ("", ""); +-return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings ++return (int) gettext ("") + _nl_msg_cat_cntr + *libintl_nl_domain_bindings + ; + return 0; + } diff --git a/irc/xchat2/files/patch-ltmain.sh b/irc/xchat2/files/patch-ltmain.sh new file mode 100644 index 000000000..2162ffd95 --- /dev/null +++ b/irc/xchat2/files/patch-ltmain.sh @@ -0,0 +1,58 @@ +--- ltmain.sh.old Thu Jun 12 05:09:04 2003 ++++ ltmain.sh Thu Jul 31 19:03:06 2003 +@@ -1280,7 +1280,7 @@ + esac + elif test "X$arg" = "X-lc_r"; then + case $host in +- *-*-openbsd* | *-*-freebsd*) ++ *-*-openbsd* | *-*-freebsd4*) + # Do not include libc_r directly, use -pthread flag. + continue + ;; +@@ -1290,8 +1290,16 @@ + continue + ;; + ++ -pthread) ++ compile_command="$compile_command -pthread" ++ finalize_command="$finalize_command -pthread" ++ compiler_flags="$compiler_flags -pthread" ++ continue ++ ;; ++ + -module) + module=yes ++ build_old_libs=no + continue + ;; + +@@ -4305,11 +4313,11 @@ + $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" + $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? + +- # Clean up the generated files. +- $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" +- $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" +- +- # Transform the symbol file into the correct name. ++ # Clean up the generated files. ++ $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" ++ $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" ++ ++ # Transform the symbol file into the correct name. + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` + ;; +@@ -5428,10 +5436,12 @@ + fi + + # Install the pseudo-library for information purposes. ++ if /usr/bin/false; then + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + instname="$dir/$name"i + $show "$install_prog $instname $destdir/$name" + $run eval "$install_prog $instname $destdir/$name" || exit $? ++ fi + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" diff --git a/irc/xchat2/pkg-descr b/irc/xchat2/pkg-descr new file mode 100644 index 000000000..f93552a5a --- /dev/null +++ b/irc/xchat2/pkg-descr @@ -0,0 +1,5 @@ +XChat is a graphical IRC client. It requires a computer running a +UNIX-like OS and the X Window System (X11), and the GTK 2 library. It can +also use Perl and (optionally) Python scripts. + +WWW: http://xchat.org/ diff --git a/irc/xchat2/pkg-plist b/irc/xchat2/pkg-plist new file mode 100644 index 000000000..7990fd95d --- /dev/null +++ b/irc/xchat2/pkg-plist @@ -0,0 +1,27 @@ +bin/xchat +lib/xchat/plugins/perl.so +%%PYTHON%%lib/xchat/plugins/python.so +%%TCL%%lib/xchat/plugins/tcl.so +share/gnome/apps/Internet/xchat.desktop +share/gnome/pixmaps/xchat.png +share/locale/am/LC_MESSAGES/xchat.mo +share/locale/ca/LC_MESSAGES/xchat.mo +share/locale/de/LC_MESSAGES/xchat.mo +share/locale/el/LC_MESSAGES/xchat.mo +share/locale/es/LC_MESSAGES/xchat.mo +share/locale/et/LC_MESSAGES/xchat.mo +share/locale/fi/LC_MESSAGES/xchat.mo +share/locale/fr/LC_MESSAGES/xchat.mo +share/locale/ja/LC_MESSAGES/xchat.mo +share/locale/lt/LC_MESSAGES/xchat.mo +share/locale/lv/LC_MESSAGES/xchat.mo +share/locale/ms/LC_MESSAGES/xchat.mo +share/locale/nl/LC_MESSAGES/xchat.mo +share/locale/no/LC_MESSAGES/xchat.mo +share/locale/pt/LC_MESSAGES/xchat.mo +share/locale/sk/LC_MESSAGES/xchat.mo +share/locale/sl/LC_MESSAGES/xchat.mo +share/locale/sv/LC_MESSAGES/xchat.mo +share/locale/zh_CN/LC_MESSAGES/xchat.mo +@dirrm lib/xchat/plugins +@dirrm lib/xchat |