mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Update to 1.8.2, with nls, ipv6 and japanese-conv all enabled. I'll
feed this effort back to the irc/xchat port soon after the forthcoming 4.4-RELEASE. PR: ports/30282 (partly) Submitted by: TOGAWA Satoshi <toga@puyo.org> Tested by: TERAMOTO Masahiro <teramoto@comm.eng.osaka-u.ac.jp>, ume We are now two hours away from the ports freeze!
This commit is contained in:
parent
b327724009
commit
7ab6aae6ba
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47374
@ -6,81 +6,75 @@
|
||||
#
|
||||
|
||||
PORTNAME= xchat
|
||||
PORTVERSION= 1.4.3
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= japanese irc gnome
|
||||
MASTER_SITES= http://xchat.org/files/source/1.4/ \
|
||||
http://xchat.linuxpower.org/files/source/1.4/
|
||||
|
||||
PATCH_SITES= http://northeye.org/~takuo/xchat-ja/
|
||||
PATCHFILES= ${PORTNAME}-${PORTVERSION}.ja.3.diff.gz
|
||||
PATCH_DIST_STRIP= -p1
|
||||
PORTVERSION= 1.8.2
|
||||
CATEGORIES+= irc gnome ipv6
|
||||
MASTER_SITES= http://xchat.org/files/source/1.8/ \
|
||||
http://xchat.linuxpower.org/files/source/1.8/
|
||||
|
||||
MAINTAINER= knu@FreeBSD.org
|
||||
|
||||
LIB_DEPENDS= iconv.2:${PORTSDIR}/converters/iconv
|
||||
RUN_DEPENDS= ${LOCALBASE}/libexec/iconv/iso-2022-jp.so:${PORTSDIR}/converters/iconv-extra
|
||||
BUILD_DEPENDS= msgfmt-new:${PORTSDIR}/devel/gettext-devel
|
||||
LIB_DEPENDS= giconv.2:${PORTSDIR}/converters/libiconv
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../../irc/xchat
|
||||
MD5_FILE= ${.CURDIR}/distinfo
|
||||
PLIST= ${.CURDIR}/pkg-plist
|
||||
# <ja-specific>
|
||||
CATEGORIES:= japanese ${CATEGORIES}
|
||||
|
||||
#EXTRA_PATCHES= ${.CURDIR}/files/patch-aa
|
||||
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LIBS="-L${LOCALBASE}/lib"
|
||||
CONFIGURE_ARGS= --enable-japanese-conv
|
||||
MAKE_ARGS= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib -liconv -lintl"
|
||||
|
||||
# begin master part
|
||||
USE_X_PREFIX= yes
|
||||
USE_BZIP2= yes
|
||||
USE_GMAKE= yes
|
||||
USE_PERL5= yes
|
||||
USE_IMLIB= yes
|
||||
WANT_GNOME= yes
|
||||
GNU_CONFIGURE= yes
|
||||
COMMENT= ${.CURDIR}/../../irc/xchat/pkg-comment
|
||||
DESCR= ${.CURDIR}/../../irc/xchat/pkg-descr
|
||||
# </ja-specific>
|
||||
|
||||
USE_X_PREFIX= yes
|
||||
USE_BZIP2= yes
|
||||
USE_GMAKE= yes
|
||||
USE_PERL5= yes
|
||||
USE_IMLIB= yes
|
||||
WANT_GNOME= yes
|
||||
GNU_CONFIGURE= yes
|
||||
# Assign with `+=' for slave ports
|
||||
CONFIGURE_ARGS+=--disable-python
|
||||
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LIBS="-L${LOCALBASE}/lib -lintl -lgiconv" \
|
||||
MSGFMT=${LOCALBASE}/bin/msgfmt-new
|
||||
CONFIGURE_ARGS+= --disable-python \
|
||||
--without-included-gettext \
|
||||
--enable-nls \
|
||||
--enable-ipv6
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 400014
|
||||
CATEGORIES+= ipv6
|
||||
CONFIGURE_ARGS+=--enable-ipv6
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SOCKS)
|
||||
# Assign with `+=' for slave ports
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
|
||||
CONFIGURE_ARGS+=--enable-socks
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
|
||||
CONFIGURE_ARGS+= --enable-socks
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SSL)
|
||||
USE_OPENSSL= YES
|
||||
CONFIGURE_ARGS+= --enable-openssl
|
||||
.endif
|
||||
|
||||
.if defined(HAVE_GNOME)
|
||||
USE_GNOME= yes
|
||||
CONFIGURE_ARGS+=--enable-gnome --enable-panel --enable-gdk-pixbuf
|
||||
USE_GNOME= yes
|
||||
CONFIGURE_ARGS+= --enable-gnome --enable-panel --enable-gdk-pixbuf
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-gnome --disable-gdk-pixbuf
|
||||
CONFIGURE_ARGS+= --disable-gnome --disable-gdk-pixbuf
|
||||
.endif
|
||||
# end master part
|
||||
|
||||
pre-patch:
|
||||
${PERL} -i -pe 's/-b&h-lucidatypewriter-medium-r-normal-\*-\*-120-\*-\*-m-\*-\*-\*/$$&,-default-*ng-medium-r-normal--14-*,*/' ${WRKSRC}/src/common/cfgfiles.c
|
||||
|
||||
# begin master part
|
||||
post-patch:
|
||||
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
||||
s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
|
||||
s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \
|
||||
s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' ${WRKSRC}/configure
|
||||
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
|
||||
's|\$$\(datadir\)/gnome/|\$$\(datadir\)/|g ; \
|
||||
s|\$$\(datadir\)/locale|\$$\(prefix\)/share/locale|g'
|
||||
# end master part
|
||||
@${PERL} -pi \
|
||||
-e 's|-lpthread|${PTHREAD_LIBS}|g;' \
|
||||
-e 's|DATADIRNAME=lib|DATADIRNAME=share|g;' \
|
||||
-e 's|iconv|giconv|;' \
|
||||
${WRKSRC}/configure
|
||||
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi \
|
||||
-e 's|\$$\(datadir\)/gnome/|\$$\(datadir\)/|g;' \
|
||||
-e 's|\$$\(datadir\)/locale|\$$\(prefix\)/share/locale|g;'
|
||||
@${PERL} -pi -e 's|iconv\.h|giconv.h|;' \
|
||||
${WRKSRC}/src/common/jcode.c
|
||||
|
||||
pre-build:
|
||||
${TOUCH} ${WRKSRC}/aclocal.m4 ${WRKSRC}/Makefile.in ${WRKSRC}/configure ${WRKSRC}/config.status
|
||||
|
||||
# begin master part
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${ECHO_MSG} "===> Installing xchat docs in ${PREFIX}/share/doc/xchat"
|
||||
@ -89,7 +83,5 @@ post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xchat
|
||||
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/xchat
|
||||
.endif
|
||||
# end master part
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
#.include "${MASTERDIR}/Makefile"
|
||||
|
@ -1,2 +1 @@
|
||||
MD5 (xchat-1.4.3.tar.bz2) = 268ee72a8a58c323e838f72ebfc58cd6
|
||||
MD5 (xchat-1.4.3.ja.3.diff.gz) = 06c66673eb980eb6a85e73679333f014
|
||||
MD5 (xchat-1.8.2.tar.bz2) = 51987e6e79d0e902e1928918fdd7b353
|
||||
|
10
japanese/xchat/files/patch-aa
Normal file
10
japanese/xchat/files/patch-aa
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/common/cfgfiles.c.orig Mon Jun 25 18:23:57 2001
|
||||
+++ src/common/cfgfiles.c Mon Jul 2 20:25:35 2001
|
||||
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
#include <fcntl.h>
|
||||
+#include <locale.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_STRINGS_H
|
@ -14,20 +14,34 @@ bin/xchat-text
|
||||
%%PORTDOCS%%share/doc/xchat/xchat-9.html
|
||||
%%PORTDOCS%%share/doc/xchat/xchat.html
|
||||
%%PORTDOCS%%share/doc/xchat/xchat.sgml
|
||||
%%PORTDOCS%%@dirrm share/doc/xchat
|
||||
%%GNOME:%%share/gnome/apps/Internet/xchat.desktop
|
||||
%%GNOME:%%share/gnome/pixmaps/xchat.png
|
||||
%%PORTDOCS%%@dirrm share/doc/xchat
|
||||
share/locale/ca/LC_MESSAGES/xchat.mo
|
||||
share/locale/cs/LC_MESSAGES/xchat.mo
|
||||
share/locale/da/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/fi/LC_MESSAGES/xchat.mo
|
||||
share/locale/fr/LC_MESSAGES/xchat.mo
|
||||
share/locale/he/LC_MESSAGES/xchat.mo
|
||||
share/locale/hu/LC_MESSAGES/xchat.mo
|
||||
share/locale/it/LC_MESSAGES/xchat.mo
|
||||
share/locale/ja/LC_MESSAGES/xchat.mo
|
||||
share/locale/ko/LC_MESSAGES/xchat.mo
|
||||
share/locale/lt/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/pt_BR/LC_MESSAGES/xchat.mo
|
||||
share/locale/ro/LC_MESSAGES/xchat.mo
|
||||
share/locale/ru/LC_MESSAGES/xchat.mo
|
||||
share/locale/sk/LC_MESSAGES/xchat.mo
|
||||
share/locale/sl/LC_MESSAGES/xchat.mo
|
||||
share/locale/sr_YU/LC_MESSAGES/xchat.mo
|
||||
share/locale/sr/LC_MESSAGES/xchat.mo
|
||||
share/locale/sv/LC_MESSAGES/xchat.mo
|
||||
share/locale/tr/LC_MESSAGES/xchat.mo
|
||||
share/locale/uk/LC_MESSAGES/xchat.mo
|
||||
share/locale/zh_CN/LC_MESSAGES/xchat.mo
|
||||
share/locale/zh_TW.Big5/LC_MESSAGES/xchat.mo
|
||||
|
Loading…
Reference in New Issue
Block a user