From fbbfcc63c2fa792d18cb2e778ee4df279e520e24 Mon Sep 17 00:00:00 2001 From: Max Khon Date: Tue, 10 Jun 2003 09:27:41 +0000 Subject: [PATCH] New port: devel/libzt Collection of utility code for C application/server development. PR: 53124 Submitted by: Kirill Ponomarew --- devel/Makefile | 1 + devel/libzt/Makefile | 31 +++++++++++++++++++++++++++ devel/libzt/distinfo | 1 + devel/libzt/files/patch-libzt::opts.c | 10 +++++++++ devel/libzt/pkg-descr | 7 ++++++ devel/libzt/pkg-plist | 25 +++++++++++++++++++++ 6 files changed, 75 insertions(+) create mode 100644 devel/libzt/Makefile create mode 100644 devel/libzt/distinfo create mode 100644 devel/libzt/files/patch-libzt::opts.c create mode 100644 devel/libzt/pkg-descr create mode 100644 devel/libzt/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 025e8699772c..57b90355cf9d 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -359,6 +359,7 @@ SUBDIR += libvanessa_socket SUBDIR += libvc SUBDIR += libxalloc + SUBDIR += libzt SUBDIR += libzvbi SUBDIR += lightning SUBDIR += lincvs diff --git a/devel/libzt/Makefile b/devel/libzt/Makefile new file mode 100644 index 000000000000..a424a2b82c51 --- /dev/null +++ b/devel/libzt/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: libzt +# Date created: 09.06.2003 +# Whom: Kirill Ponomarew +# +# $FreeBSD$ +# + +PORTNAME= libzt +PORTVERSION= 1.0.2 +CATEGORIES= devel +MASTER_SITES= http://www.zerotao.org/downloads/${PORTNAME}/ + +MAINTAINER= ponomarew@oberon.net +COMMENT= Collection of utility code for C application/server development + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_REINPLACE= yes +USE_GETOPT_LONG= yes +INSTALLS_SHLIB= yes +CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LIBS="-L${LOCALBASE}/lib" + +post-patch: + @${FIND} ${WRKSRC} -name "Makefile*" | ${XARGS} \ + ${REINPLACE_CMD} -e \ + "s,^CFLAGS =,CFLAGS+=${CFLAGS},g ; \ + s,-no-cpp-precomp,,g" + +.include diff --git a/devel/libzt/distinfo b/devel/libzt/distinfo new file mode 100644 index 000000000000..06db16df5b73 --- /dev/null +++ b/devel/libzt/distinfo @@ -0,0 +1 @@ +MD5 (libzt-1.0.2.tar.gz) = 256059c9c8999c57a839f1aa22aecf56 diff --git a/devel/libzt/files/patch-libzt::opts.c b/devel/libzt/files/patch-libzt::opts.c new file mode 100644 index 000000000000..96f105f452fc --- /dev/null +++ b/devel/libzt/files/patch-libzt::opts.c @@ -0,0 +1,10 @@ +--- libzt/opts.c.orig Tue Jun 10 01:23:36 2003 ++++ libzt/opts.c Tue Jun 10 01:24:00 2003 +@@ -14,6 +14,7 @@ + + #include + #include ++#include + + #include + #include diff --git a/devel/libzt/pkg-descr b/devel/libzt/pkg-descr new file mode 100644 index 000000000000..1ca05a4948a0 --- /dev/null +++ b/devel/libzt/pkg-descr @@ -0,0 +1,7 @@ +LibZT is a collection of utility code for C application/server +development. It contains a ubiquitous logging subsystem, +configuration file parser, commandline option parser, and +numerous handy tools that need to be written for just about any +project (wrappers to malloc, etc). + +WWW: http://www.zerotao.org/projects/libzt diff --git a/devel/libzt/pkg-plist b/devel/libzt/pkg-plist new file mode 100644 index 000000000000..cd536333a8f3 --- /dev/null +++ b/devel/libzt/pkg-plist @@ -0,0 +1,25 @@ +include/libzt/assert.h +include/libzt/cfg.h +include/libzt/cfg/cfg_private.h +include/libzt/cfg/ini.h +include/libzt/cfg/interface.h +include/libzt/common.h +include/libzt/daemon.h +include/libzt/log.h +include/libzt/log/file.h +include/libzt/log/interface.h +include/libzt/log/log_private.h +include/libzt/log/stderr.h +include/libzt/log/syslog.h +include/libzt/macros.h +include/libzt/opts.h +include/libzt/progname.h +include/libzt/str.h +include/libzt/zt.h +lib/libzt.a +lib/libzt.la +lib/libzt.so +lib/libzt.so.0 +@dirrm include/libzt/cfg +@dirrm include/libzt/log +@dirrm include/libzt