1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Update to r12.0.1

PR:		ports/72610
Submitted by:	Kuang-che Wu <kcwu@csie.org> (maintainer)
This commit is contained in:
Pav Lucistnik 2004-10-13 18:41:12 +00:00
parent 62ca169cf4
commit a2eb819fd5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=119278
6 changed files with 59 additions and 66 deletions

View File

@ -5,43 +5,46 @@
# $FreeBSD$
#
PORTNAME= iiimf-csconv
PORTVERSION= ${IIIMF_VER:S/_/./:C/-.*//}
PORTREVISION= 1
PORTNAME= csconv
PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//}
CATEGORIES= textproc
MASTER_SITES= http://www.openi18n.org/download/docs/im-sdk/
MASTER_SITES= http://www.openi18n.org/download/im-sdk/src/
PKGNAMEPREFIX= iiimf-
DISTNAME= im-sdk
DISTFILES= ${DISTNAME}.${IIIMF_VER:S/-/./}${EXTRACT_SUFX}
DISTFILES= ${DISTNAME}-src-${IIIMF_VER}.tgz
MAINTAINER= kcwu@csie.org
COMMENT= Internet/Intranet Input Method Framework encoding convert library
IIIMF_VER= r11_4-1467
IIIMF_VER= r12_0_1-svn1891
WRKSRC= ${WRKDIR}/${DISTNAME}-${IIIMF_VER}/lib/CSConv
USE_BZIP2= yes
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}-${IIIMF_VER}
USE_ICONV= yes
USE_GMAKE= yes
INSTALLS_SHLIB= yes
USE_REINPLACE= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
USE_AUTOCONF_VER=259
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -liconv" \
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}"
post-patch:
${REINPLACE_CMD} -e "s,-lpthread,-pthread,g" \
-e "s,-D_POSIX_C_SOURCE=199506L,,g" \
-e "s,has_xiccallback=no,has_xiccallback=yes,g" \
-e "s,/usr/lib/im,${PREFIX}/lib/im,g" \
-e 's,x"gcc",x"cc",g' \
${WRKSRC}/configure
${REINPLACE_CMD} -e "s,/usr/lib/im,${PREFIX}/lib/im,g" \
${WRKSRC}/../../acfiles/im_common.m4 \
${WRKSRC}/configure.ac \
${WRKSRC}/aclocal.m4 \
${WRKSRC}/csconv.h \
${WRKSRC}/converterPI/test/icutest4linux.c \
${WRKSRC}/converterPI/icuconv_relay.c \
${WRKSRC}/converterPI/configure \
${WRKSRC}/converterPI/configure.in \
${WRKSRC}/converterPI/icuconv/common/config.h
${REINPLACE_CMD} -e "s,-lpthread,-pthread,g" -e "s,-ldl,," \
${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g" -e "s,-ldl,," -e 's,-lc$$,,' \
${WRKSRC}/converterPI/icuconv/common/Makefile.in \
${WRKSRC}/converterPI/icuconv/tools/toolutil/Makefile.in
${WRKSRC}/converterPI/icuconv/tools/toolutil/Makefile.in \
${WRKSRC}/converter/compoundtext/Makefile.in
${REINPLACE_CMD} -e "s,ELIBBAD,-2," \
${WRKSRC}/converterPI/icuconv/common/icuconv.c
${REINPLACE_CMD} -e "s,(LIBS),(LIBS) ${PTHREAD_LIBS},g" \
${WRKSRC}/converterPI/icuconv/tools/makeconv/Makefile.in \
${WRKSRC}/converterPI/icuconv/tools/gencnval/Makefile.in
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
MD5 (im-sdk.r11_4.1467.tar.bz2) = ca6b6ac7c41641db6eaa0fa395748f90
SIZE (im-sdk.r11_4.1467.tar.bz2) = 7253894
MD5 (im-sdk-src-r12_0_1-svn1891.tgz) = 4e51e4fd07391bd957622db0e89aeefe
SIZE (im-sdk-src-r12_0_1-svn1891.tgz) = 18206118

View File

@ -1,26 +0,0 @@
--- configure.orig Sat Aug 23 09:33:31 2003
+++ configure Wed Apr 21 12:04:17 2004
@@ -2772,7 +2772,6 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lc $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
@@ -2819,7 +2818,6 @@
#define HAVE_LIBC 1
_ACEOF
- LIBS="-lc $LIBS"
fi
@@ -6220,6 +6218,7 @@
case "${host}" in
*solaris*) platform=SOLARIS ;;
*linux*) platform=LINUX ;;
+ *freebsd*) platform=FREEBSD ;;
esac

View File

@ -0,0 +1,35 @@
--- lib/CSConv/configure.ac.orig Fri Jun 13 00:27:08 2003
+++ lib/CSConv/configure.ac Sat Sep 4 05:39:51 2004
@@ -55,8 +55,6 @@
AC_PATH_PROG(RM, rm)
AC_PATH_PROG(SED, sed)
-AC_CHECK_LIB(c, main)
-AC_CHECK_LIB(dl, main)
dnl FreeBSD -pthread check - Jonathan McDowell <noodles@earth.li>
@@ -294,13 +292,8 @@
CDEBUGFLAGS=
ARFLAGS=ru
- if test x"${CC}" = x"gcc" ; then
- SHLIBCFLAGS='-fpic'
- SHLIBLDFLAGS='-shared'
- else
- SHLIBCFLAGS=
- SHLIBLDFLAGS=
- fi
+ SHLIBCFLAGS='-fpic'
+ SHLIBLDFLAGS='-shared'
csc_system_name="`uname -s`"
;;
@@ -314,6 +307,7 @@
case "${host}" in
*solaris*) platform=SOLARIS ;;
*linux*) platform=LINUX ;;
+ *freebsd*) platform=FREEBSD ;;
esac
AC_SUBST(platform)

View File

@ -1,18 +0,0 @@
--- converterPI/configure.orig Wed Apr 21 12:04:26 2004
+++ converterPI/configure Wed Apr 21 12:04:34 2004
@@ -1152,7 +1152,6 @@
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lc $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1158 "configure"
#include "confdefs.h"
@@ -1182,7 +1181,6 @@
#define $ac_tr_lib 1
EOF
- LIBS="-lc $LIBS"
else
echo "$ac_t""no" 1>&6

View File

@ -32,7 +32,6 @@ csconv/ctex_wcs.so
csconv/encoding.norm
csconv/euc_ct.so
csconv/eucw_ct.so
csconv/iconv.so
csconv/iconv_relay.so
csconv/iconv_relay_mb_wc.so
csconv/iconv_relay_wc_mb.so