diff options
Diffstat (limited to 'textproc/pdjson/files')
-rw-r--r-- | textproc/pdjson/files/patch-Makefile | 21 | ||||
-rw-r--r-- | textproc/pdjson/files/pdjson.pc.in | 11 |
2 files changed, 32 insertions, 0 deletions
diff --git a/textproc/pdjson/files/patch-Makefile b/textproc/pdjson/files/patch-Makefile new file mode 100644 index 000000000000..bfe7b015e15f --- /dev/null +++ b/textproc/pdjson/files/patch-Makefile @@ -0,0 +1,21 @@ +--- Makefile.orig 2024-02-22 11:12:52 UTC ++++ Makefile +@@ -1,8 +1,8 @@ + .POSIX: +-CC = cc +-CFLAGS = -std=c99 -pedantic -Wall -Wextra -Wno-missing-field-initializers ++CC ?= cc ++CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wno-missing-field-initializers -fPIC + +-all: tests/pretty tests/stream tests/tests ++all: libpdjson.so tests/pretty tests/stream tests/tests + + tests/pretty: tests/pretty.o pdjson.o + $(CC) $(LDFLAGS) -o $@ tests/pretty.o pdjson.o $(LDLIBS) +@@ -28,3 +28,6 @@ clean: + + .c.o: + $(CC) -c $(CFLAGS) -o $@ $< ++ ++libpdjson.so: pdjson.o ++ $(CC) -shared -Wl,-soname=libpdjson.so.0 -o libpdjson.so pdjson.o diff --git a/textproc/pdjson/files/pdjson.pc.in b/textproc/pdjson/files/pdjson.pc.in new file mode 100644 index 000000000000..5feb5f556ec3 --- /dev/null +++ b/textproc/pdjson/files/pdjson.pc.in @@ -0,0 +1,11 @@ +prefix=%%PREFIX%% +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: pdjson +Version: %%DISTVERSION%% +Description: Public Domain JSON parser +URL: https://github.com/skeeto/pdjson +Libs: -L${libdir} -lpdjson +Cflags: -I${includedir} + |