New port: libcyrillic.

This C library allows to convert cyrillic text from any to any of the following
cyrillic charsets: windows-1251, koi8-r, koi8-u, iso-8859-5, x-mac-cyrillic and
ibm866. Automatic detection of charset is possible for any of those.

The library also contains a number of automation features and useful service
wrappers that are ready to be easily plugged into any application whenever one
needs more wise features instead of just dumb converting.

PR:		60042
Submitted by:	Pavel Novikov <pavel@ext.by>
This commit is contained in:
Dmitry Sivachenko 2004-01-07 14:59:42 +00:00
parent c480257832
commit ac47c1ad42
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97573
6 changed files with 78 additions and 0 deletions

View File

@ -15,6 +15,7 @@
SUBDIR += koi2koi
SUBDIR += koi8r-ps
SUBDIR += ksocrat
SUBDIR += libcyrillic
SUBDIR += linux-mozillafirebird
SUBDIR += messarge
SUBDIR += mtc

View File

@ -0,0 +1,26 @@
# New ports collection makefile for: libcyrillic
# Date created: 8 December 2003
# Whom: Pavel Novikov
#
# $FreeBSD$
#
PORTNAME= libcyrillic
PORTVERSION= 1.9
CATEGORIES= russian converters textproc
MASTER_SITES= http://ext.by/libcyrillic/
PKGNAMEPREFIX=
DISTNAME= ${PORTNAME:S/^lib//}-${PORTVERSION}
MAINTAINER= pavel@ext.by
COMMENT= Text manipulation and autodetection for 6 major cyrillic charsets
MAKE_ENV= WRKSRC="${WRKSRC}" CFLAGS="${CFLAGS}"
MAKEFILE= ${FILESDIR}/Makefile.bsd
INSTALLS_SHLIB= yes
.if !defined(WITHOUT_OPTIMIZE)
CFLAGS+= -O2
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (cyrillic-1.9.tar.gz) = 1384f1a892c43e3401de523f97a5fb45

View File

@ -0,0 +1,36 @@
SRCS= cyrillic.c cyrillic.h cyrillic_export.c cyrillic_export.h
INCS= cyrillic.h cyrillic_export.h
LIB= cyrillic
MAKEDIR= /usr/share/mk
SHLIB_MAJOR= 1
SHLIB_MINOR= 9
SHLIB_NAME!= ${MAKE} -V SHLIB_NAME LIB=${LIB} \
SHLIB_MAJOR=${SHLIB_MAJOR} \
SHLIB_MINOR=${SHLIB_MINOR} \
-f ${MAKEDIR}/bsd.lib.mk
all: lib${LIB}.a ${SHLIB_NAME}
lib${LIB}.a ${SHLIB_NAME}: ${SRCS}
${MAKE} LIB=${LIB} \
SRCS="${SRCS}" \
CFLAGS="${CFLAGS}" \
NOPROFILE=true \
NOOBJ=true \
SHLIB_MAJOR=${SHLIB_MAJOR} \
SHLIB_MINOR=${SHLIB_MINOR} \
-f ${MAKEDIR}/bsd.lib.mk
install:
mkdir -p ${PREFIX}/include
${MAKE} LIB=${LIB} \
LIBDIR=${PREFIX}/lib \
NOPROFILE=true \
NOOBJ=true \
SHLIB_MAJOR=${SHLIB_MAJOR} \
SHLIB_MINOR=${SHLIB_MINOR} \
-f ${MAKEDIR}/bsd.lib.mk install
cd ${.CURDIR} && ${BSD_INSTALL_DATA} ${INCS} ${PREFIX}/include

View File

@ -0,0 +1,9 @@
This C library allows to convert cyrillic text from any to any of the following
cyrillic charsets: windows-1251, koi8-r, koi8-u, iso-8859-5, x-mac-cyrillic and
ibm866. Automatic detection of charset is possible for any of those.
The library also contains a number of automation features and useful service
wrappers that are ready to be easily plugged into any application whenever one
needs more wise features instead of just dumb converting.
WWW: http://ext.by/libcyrillic/

View File

@ -0,0 +1,5 @@
include/cyrillic.h
include/cyrillic_export.h
lib/libcyrillic.a
lib/libcyrillic.so
lib/libcyrillic.so.1