aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/simpleini/Makefile36
-rw-r--r--devel/simpleini/distinfo3
-rw-r--r--devel/simpleini/files/patch-tests_Makefile22
-rw-r--r--devel/simpleini/pkg-descr6
5 files changed, 68 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index d069fa8879a1..4404e8753169 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7111,6 +7111,7 @@
SUBDIR += simdjson
SUBDIR += simgear
SUBDIR += simian
+ SUBDIR += simpleini
SUBDIR += sjasmplus
SUBDIR += skalibs
SUBDIR += skypat
diff --git a/devel/simpleini/Makefile b/devel/simpleini/Makefile
new file mode 100644
index 000000000000..87c3bde0cbcc
--- /dev/null
+++ b/devel/simpleini/Makefile
@@ -0,0 +1,36 @@
+PORTNAME= simpleini
+PORTVERSION= 4.19
+CATEGORIES= devel
+
+MAINTAINER= amdmi3@FreeBSD.org
+COMMENT= C++ library providing a simple API to INI-style configuration files
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENCE.txt
+
+USE_GITHUB= yes
+GH_ACCOUNT= brofield
+NO_BUILD= yes
+NO_ARCH= yes
+
+PORTDOCS= *
+
+PLIST_FILES= include/SimpleIni.h
+
+OPTIONS_DEFINE= TEST DOCS
+
+TEST_USES= pkgconfig
+TEST_BUILD_DEPENDS= googletest>=0:devel/googletest
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/SimpleIni.h ${STAGEDIR}${PREFIX}/include
+
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/
+
+do-test-TEST-on:
+ cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${TEST_ENV} \
+ ${MAKE_CMD} ${_MAKE_JOBS} ${MAKE_ARGS} test
+
+.include <bsd.port.mk>
diff --git a/devel/simpleini/distinfo b/devel/simpleini/distinfo
new file mode 100644
index 000000000000..31c0a25a4435
--- /dev/null
+++ b/devel/simpleini/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1659547325
+SHA256 (brofield-simpleini-4.19_GH0.tar.gz) = dc10df3fa363be2c57627d52cbb1b5ddd0689d474bf13908e822c1522df8377e
+SIZE (brofield-simpleini-4.19_GH0.tar.gz) = 62793
diff --git a/devel/simpleini/files/patch-tests_Makefile b/devel/simpleini/files/patch-tests_Makefile
new file mode 100644
index 000000000000..943dd9682db2
--- /dev/null
+++ b/devel/simpleini/files/patch-tests_Makefile
@@ -0,0 +1,22 @@
+--- tests/Makefile.orig 2022-03-15 20:36:43 UTC
++++ tests/Makefile
+@@ -1,14 +1,13 @@
+-CC=g++
+-CFLAGS=-Wall -std=c++11
+-CPPFLAGS=-Wall -std=c++11
+-LDFLAGS=-lpthread -lgtest -lgtest_main -lpthread -L/usr/lib -L/usr/lib/x86_64-linux-gnu
++CXX?=g++
++CXXFLAGS+=-Wall -std=c++11 `pkg-config --cflags gtest_main`
++LDFLAGS=`pkg-config --libs gtest_main`
+
+ OBJS=ts-roundtrip.o ts-snippets.o ts-utf8.o ts-bugfix.o ts-quotes.o ts-noconvert.o
+
+ BIN=./tests
+
+-all: $(OBJS)
+- $(CC) -o $(BIN) $(OBJS) $(LDFLAGS)
++$(BIN): $(OBJS)
++ $(CXX) -o $(BIN) $(OBJS) $(LDFLAGS)
+
+ clean:
+ rm -f core $(OBJS) $(BIN)
diff --git a/devel/simpleini/pkg-descr b/devel/simpleini/pkg-descr
new file mode 100644
index 000000000000..4589eec7de4c
--- /dev/null
+++ b/devel/simpleini/pkg-descr
@@ -0,0 +1,6 @@
+A cross-platform library that provides a simple API to read and
+write INI-style configuration files. It supports data files in
+ASCII, MBCS and Unicode. It is designed explicitly to be portable
+to any platform and has been tested on Windows, WinCE and Linux.
+
+WWW: https://github.com/brofield/simpleini