mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
New port: devel/libcfg
Library for command line and configuration file parsing Approved by: garga (mentor)
This commit is contained in:
parent
6c67af15a7
commit
9179ba7133
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=191203
@ -522,6 +522,7 @@
|
||||
SUBDIR += libbonobomm
|
||||
SUBDIR += libcapsinetwork
|
||||
SUBDIR += libccid
|
||||
SUBDIR += libcfg
|
||||
SUBDIR += libcheck
|
||||
SUBDIR += libchipcard
|
||||
SUBDIR += libchipcard-kde
|
||||
|
66
devel/libcfg/Makefile
Normal file
66
devel/libcfg/Makefile
Normal file
@ -0,0 +1,66 @@
|
||||
# ports collection makefile for: libcfg
|
||||
# Date created: 30 April 2007
|
||||
# Whom: Martin Matuska <mm@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= libcfg
|
||||
PORTVERSION= 0.6.2
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://platon.sk/upload/_projects/00003/
|
||||
DISTNAME= ${PORTNAME}+-${DISTVERSION}
|
||||
|
||||
MAINTAINER= mm@FreeBSD.org
|
||||
COMMENT= Library for command line and configuration file parsing
|
||||
|
||||
USE_AUTOTOOLS= autoconf:259
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
INSTALL_TARGET= install-strip
|
||||
|
||||
.if !defined(NO_INSTALL_MANPAGES)
|
||||
MAN3= cfg_add_property.3 cfg_context.3 cfg_option.3 cfg_parse.3 \
|
||||
cfg_print_error.3 cfg_set_context_flag.3 libcfg+.3
|
||||
MANCOMPRESSED= yes
|
||||
INSTALL_TARGET+= install-man
|
||||
.endif
|
||||
|
||||
PORTDOCS= *
|
||||
|
||||
OPTIONS= EXAMPLES "Install examples" off \
|
||||
HTMLDOCS "Install html documentation" off
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_EXAMPLES)
|
||||
PLIST_SUB+= EXAMPLES=""
|
||||
.else
|
||||
PLIST_SUB+= EXAMPLES="@comment "
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
||||
CFLAGS+= -fPIC
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if defined(WITH_EXAMPLES)
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/doc/examples/example.* ${EXAMPLESDIR}
|
||||
.endif
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for FILE in AUTHORS COPYING README TODO
|
||||
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
||||
.endfor
|
||||
.if defined(WITH_HTMLDOCS)
|
||||
@${MKDIR} ${DOCSDIR}/html
|
||||
@for FILE in ${WRKSRC}/doc/html/*; do \
|
||||
${INSTALL_DATA} $${FILE} ${DOCSDIR}/html; \
|
||||
done
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
devel/libcfg/distinfo
Normal file
3
devel/libcfg/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (libcfg+-0.6.2.tar.gz) = e117a2d054c5f5831fdb5ed27c26d767
|
||||
SHA256 (libcfg+-0.6.2.tar.gz) = 8f7984dc7e457c738c6f1ab778900d61183156d18a6c67f929376d9dfeac278c
|
||||
SIZE (libcfg+-0.6.2.tar.gz) = 169482
|
19
devel/libcfg/files/patch-Rules.make.in
Normal file
19
devel/libcfg/files/patch-Rules.make.in
Normal file
@ -0,0 +1,19 @@
|
||||
--- Rules.make.in.orig Mon Apr 30 11:56:50 2007
|
||||
+++ Rules.make.in Mon Apr 30 11:57:50 2007
|
||||
@@ -15,6 +15,7 @@
|
||||
|
||||
PACKAGE = @PACKAGE@
|
||||
VERSION = @VERSION@
|
||||
+SHLIB_MAJOR = @SHLIB_MAJOR@
|
||||
|
||||
CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION))
|
||||
|
||||
@@ -25,7 +26,7 @@
|
||||
|
||||
LIBSTATIC = $(PACKAGE).a
|
||||
LIBDYNAMIC = $(PACKAGE).so
|
||||
-LIBDYNAMICV = $(PACKAGE).so.$(VERSION)
|
||||
+LIBDYNAMICV = $(PACKAGE).so.$(SHLIB_MAJOR)
|
||||
|
||||
install_LIB = $(LIBSTATIC) $(LIBDYNAMICV)
|
||||
SCRIPTS =
|
14
devel/libcfg/files/patch-configure.in
Normal file
14
devel/libcfg/files/patch-configure.in
Normal file
@ -0,0 +1,14 @@
|
||||
--- configure.in.orig Tue Feb 17 17:37:47 2004
|
||||
+++ configure.in Mon Apr 30 12:04:01 2007
|
||||
@@ -63,8 +63,11 @@
|
||||
prefix="`cd $prefix && pwd`"
|
||||
fi
|
||||
|
||||
+SHLIB_MAJOR="0"
|
||||
+
|
||||
AC_SUBST(PACKAGE)
|
||||
AC_SUBST(VERSION)
|
||||
+AC_SUBST(SHLIB_MAJOR)
|
||||
AC_SUBST(DATE)
|
||||
AC_SUBST(DATE_HUMAN)
|
||||
AC_SUBST(MANVOLNUM)
|
8
devel/libcfg/pkg-descr
Normal file
8
devel/libcfg/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
libcfg+ is a C library that features multi- command line and configuration
|
||||
file parsing. It is possible to set up various special properties such as
|
||||
quoting characters, deliminator strings, file comment prefixes, multi-line
|
||||
postfixes, and more. It supports many data types such as booleans, integers,
|
||||
decimal numbers, strings with many additional data type flags (such as
|
||||
multiple values for a single option).
|
||||
|
||||
WWW: http://platon.sk/projects/libcfg+
|
11
devel/libcfg/pkg-plist
Normal file
11
devel/libcfg/pkg-plist
Normal file
@ -0,0 +1,11 @@
|
||||
lib/libcfg+.a
|
||||
lib/libcfg+.so.0
|
||||
lib/libcfg+.so
|
||||
include/cfg.h
|
||||
include/cfg+.h
|
||||
include/platon/cfg.h
|
||||
include/platon/cfg+.h
|
||||
@dirrm include/platon
|
||||
%%EXAMPLES%%%%EXAMPLESDIR%%/example.c
|
||||
%%EXAMPLES%%%%EXAMPLESDIR%%/example.cfg
|
||||
%%EXAMPLES%%@dirrm %%EXAMPLESDIR%%
|
Loading…
Reference in New Issue
Block a user