summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2013-11-22 11:49:42 +0000
committerryoon <ryoon@pkgsrc.org>2013-11-22 11:49:42 +0000
commit4e999c8f9c243d6b6bd3dff14842439a3b8efaa8 (patch)
tree7cc959b3337f50900d77c973482eb808685e8f20
parentcbe2695667c1d6e991459f45fbc3c08fba28de6b (diff)
downloadpkgsrc-4e999c8f9c243d6b6bd3dff14842439a3b8efaa8.tar.gz
Import iniparser-3.1 as devel/iniparser.
iniparser is a free stand-alone ini file parsing library. It is written in portable ANSI C and should compile anywhere. iniparser is distributed under an MIT license.
-rw-r--r--devel/iniparser/DESCR3
-rw-r--r--devel/iniparser/Makefile16
-rw-r--r--devel/iniparser/PLIST23
-rw-r--r--devel/iniparser/buildlink3.mk12
-rw-r--r--devel/iniparser/distinfo6
-rw-r--r--devel/iniparser/patches/patch-Makefile58
6 files changed, 118 insertions, 0 deletions
diff --git a/devel/iniparser/DESCR b/devel/iniparser/DESCR
new file mode 100644
index 00000000000..1313c737cd3
--- /dev/null
+++ b/devel/iniparser/DESCR
@@ -0,0 +1,3 @@
+iniparser is a free stand-alone ini file parsing library.
+It is written in portable ANSI C and should compile anywhere.
+iniparser is distributed under an MIT license.
diff --git a/devel/iniparser/Makefile b/devel/iniparser/Makefile
new file mode 100644
index 00000000000..c5b06d4c496
--- /dev/null
+++ b/devel/iniparser/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2013/11/22 11:49:42 ryoon Exp $
+
+DISTNAME= iniparser-3.1
+CATEGORIES= devel
+MASTER_SITES= http://ndevilla.free.fr/iniparser/
+
+MAINTAINER= ryoon@NetBSD.org
+HOMEPAGE= http://ndevilla.free.fr/iniparser/
+COMMENT= Free stand-alone ini file parsing library
+LICENSE= mit
+
+WRKSRC= ${WRKDIR}/iniparser
+
+USE_LIBTOOL= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/iniparser/PLIST b/devel/iniparser/PLIST
new file mode 100644
index 00000000000..23af47585cd
--- /dev/null
+++ b/devel/iniparser/PLIST
@@ -0,0 +1,23 @@
+@comment $NetBSD: PLIST,v 1.1 2013/11/22 11:49:42 ryoon Exp $
+include/dictionary.h
+include/iniparser.h
+lib/libiniparser.la
+share/iniparser/bc_s.png
+share/iniparser/closed.png
+share/iniparser/doxygen.css
+share/iniparser/doxygen.png
+share/iniparser/globals_func.html
+share/iniparser/index.html
+share/iniparser/iniparser_8h.html
+share/iniparser/iniparser_8main.html
+share/iniparser/nav_f.png
+share/iniparser/nav_h.png
+share/iniparser/open.png
+share/iniparser/tab_a.png
+share/iniparser/tab_b.gif
+share/iniparser/tab_b.png
+share/iniparser/tab_h.png
+share/iniparser/tab_l.gif
+share/iniparser/tab_r.gif
+share/iniparser/tab_s.png
+share/iniparser/tabs.css
diff --git a/devel/iniparser/buildlink3.mk b/devel/iniparser/buildlink3.mk
new file mode 100644
index 00000000000..b2cdea5e146
--- /dev/null
+++ b/devel/iniparser/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2013/11/22 11:49:42 ryoon Exp $
+
+BUILDLINK_TREE+= iniparser
+
+.if !defined(INIPARSER_BUILDLINK3_MK)
+INIPARSER_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.iniparser+= iniparser>=3.1
+BUILDLINK_PKGSRCDIR.iniparser?= ../../devel/iniparser
+.endif # INIPARSER_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -iniparser
diff --git a/devel/iniparser/distinfo b/devel/iniparser/distinfo
new file mode 100644
index 00000000000..59e865f7568
--- /dev/null
+++ b/devel/iniparser/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2013/11/22 11:49:42 ryoon Exp $
+
+SHA1 (iniparser-3.1.tar.gz) = 41eae7b414cad9cd42ae2c2a64394c10d7ab655e
+RMD160 (iniparser-3.1.tar.gz) = 164665a6f905dc0a272cbcf6ae33e20a56d0fc6b
+Size (iniparser-3.1.tar.gz) = 39097 bytes
+SHA1 (patch-Makefile) = cee0e27c251e0b12d3313b271850a9c5d0bc9dc2
diff --git a/devel/iniparser/patches/patch-Makefile b/devel/iniparser/patches/patch-Makefile
new file mode 100644
index 00000000000..3b5efbc8e9b
--- /dev/null
+++ b/devel/iniparser/patches/patch-Makefile
@@ -0,0 +1,58 @@
+$NetBSD: patch-Makefile,v 1.1 2013/11/22 11:49:42 ryoon Exp $
+
+* Libtoolized
+* Add install targets
+
+--- Makefile.orig 2012-04-08 14:44:57.000000000 +0000
++++ Makefile
+@@ -25,7 +25,7 @@ RM = rm -f
+
+ SUFFIXES = .o .c .h .a .so .sl
+
+-COMPILE.c=$(CC) $(CFLAGS) -c
++COMPILE.c=${LIBTOOL} --mode=compile $(CC) $(CFLAGS) -c
+ .c.o:
+ @(echo "compiling $< ...")
+ @($(COMPILE.c) -o $@ $<)
+@@ -37,16 +37,16 @@ SRCS = src/iniparser.c \
+ OBJS = $(SRCS:.c=.o)
+
+
+-default: libiniparser.a libiniparser.so
++all: libiniparser.a
+
+ libiniparser.a: $(OBJS)
+- @($(AR) $(ARFLAGS) libiniparser.a $(OBJS))
+- @($(RANLIB) libiniparser.a)
+-
+-libiniparser.so: $(OBJS)
+- @$(SHLD) $(LDSHFLAGS) -o $@.0 $(OBJS) $(LDFLAGS) \
+- -Wl,-soname=`basename $@`.0
+-
++ @(${LIBTOOL} --mode=link \
++ ${CC} -o ${.TARGET:.a=.la} \
++ ${LDSHFLAGS} \
++ ${OBJS:.o=.lo} \
++ -rpath ${PREFIX}/lib \
++ -version-info 0:0 \
++ )
+ clean:
+ $(RM) $(OBJS)
+
+@@ -60,3 +60,16 @@ docs:
+
+ check:
+ @(cd test ; $(MAKE))
++
++install-include:
++ ${BSD_INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/include
++ ${BSD_INSTALL_DATA} src/*.h ${DESTDIR}${PREFIX}/include
++
++install-docs:
++ ${BSD_INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/share/iniparser
++ ${BSD_INSTALL_DATA} html/* ${DESTDIR}${PREFIX}/share/iniparser
++
++install: install-include install-docs
++ ${BSD_INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib
++ ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libiniparser.la \
++ ${DESTDIR}${PREFIX}/lib