Hi ports@, Most packages contain both static and shared libraries, this one doesn't. I noticed this when trying to statically link my own software.
The diff simply enables building of statib library. diff --git devel/cjson/Makefile devel/cjson/Makefile index 2a3e8579216..c8a8d017c17 100644 --- devel/cjson/Makefile +++ devel/cjson/Makefile @@ -3,6 +3,7 @@ COMMENT = ultralightweight JSON parser in ANSI C GH_ACCOUNT = DaveGamble GH_PROJECT = cJSON GH_TAGNAME = v1.7.18 +REVISION = 0 PKGNAME = ${DISTNAME:L} @@ -20,8 +21,10 @@ WANTLIB += m MODULES = devel/cmake +CONFIGURE_ARGS += -DBUILD_SHARED_AND_STATIC_LIBS=ON + # evertyhing except tests -ALL_TARGET = cjson +ALL_TARGET = cjson cjson-static # build whatever is left (ca. 43 C test files) pre-test: diff --git devel/cjson/pkg/PLIST devel/cjson/pkg/PLIST index 72fecab4602..c64c876d1ee 100644 --- devel/cjson/pkg/PLIST +++ devel/cjson/pkg/PLIST @@ -6,5 +6,6 @@ lib/cmake/cJSON/cJSONConfig.cmake lib/cmake/cJSON/cJSONConfigVersion.cmake lib/cmake/cJSON/cjson${MODCMAKE_BUILD_SUFFIX} lib/cmake/cJSON/cjson.cmake +@static-lib lib/libcjson.a @lib lib/libcjson.so.${LIBcjson_VERSION} lib/pkgconfig/libcjson.pc
signature.asc
Description: PGP signature