--- Makerules.orig 2023-11-24 18:10:54 UTC +++ Makerules @@ -331,3 +331,43 @@ ifeq "$(OS)" "ios" LD = xcrun ld RANLIB = xcrun ranlib endif + + +# added from FreeBSD ports +PTHREAD_LIBS := -lthr +USE_SYSTEM_CURL := yes +SYS_CURL_CFLAGS := $(shell pkg-config --cflags libcurl) +SYS_CURL_LIBS := $(shell pkg-config --libs libcurl) +USE_SYSTEM_FREETYPE := yes +SYS_FREETYPE_CFLAGS := $(shell pkg-config --cflags freetype2) +SYS_FREETYPE_LIBS := $(shell pkg-config --libs freetype2) +HAVE_GLUT := yes +USE_SYSTEM_GLUT := yes +SYS_GLUT_CFLAGS := $(shell pkg-config --cflags gl glut) +SYS_GLUT_LIBS := $(shell pkg-config --libs gl glut) +USE_SYSTEM_HARFBUZZ := yes +SYS_HARFBUZZ_CFLAGS := $(shell pkg-config --cflags harfbuzz) +SYS_HARFBUZZ_LIBS := $(shell pkg-config --libs harfbuzz) +USE_SYSTEM_JBIG2DEC := yes +SYS_JBIG2DEC_CFLAGS := $(shell pkg-config --cflags jbig2dec) +SYS_JIB2DEC_LIBS := $(shell pkg-config --libs jbig2dec) +USE_SYSTEM_LCMS2 := no +HAVE_LIBCRYPTO := no +SYS_LIBCRYPTO_CFLAGS := +SYS_LIBCRYPTO_LIBS := +USE_SYSTEM_LIBJPEG := yes +SYS_LIBJPEG_CFLAGS := $(shell pkg-config --cflags libjpeg) +SYS_LIBJPEG_LIBS := $(shell pkg-config --libs libjpeg) +USE_SYSTEM_OPENJPEG := yes +SYS_OPENJPEG_CFLAGS := $(shell pkg-config --cflags libopenjp2) +SYS_OPENJPEG_LIBS := $(shell pkg-config --libs libopenjp2) +HAVE_OPENSSL_SSL := no +HAVE_PTHREAD := yes +SYS_PTHREAD_CFLAGS := +SYS_PTHREAD_LIBS := -lpthread +HAVE_X11 := yes +X11_CFLAGS := $(shell pkg-config --cflags x11 xext) +X11_LIBS := $(shell pkg-config --libs x11 xext) +USE_SYSTEM_ZLIB := yes +SYS_ZLIB_CFLAGS := $(shell pkg-config --cflags zlib) +SYS_ZLIB_LIBS := $(shell pkg-config --libs zlib)