From c2e4a3857464cd63c73feb31716f834e1ae78baf Mon Sep 17 00:00:00 2001 From: Nishi Date: Wed, 21 Aug 2024 16:58:31 +0000 Subject: [PATCH] adding netbsd mk git-svn-id: file:///raid/svn-personal/repoview/trunk@23 7e8b2a19-8934-dd40-8cb3-db22cdd5a80f --- Platform/netbsd.mk | 6 ++++++ config.h.tmpl | 4 ++++ libs.c | 10 ++++++++++ 3 files changed, 20 insertions(+) create mode 100644 Platform/netbsd.mk diff --git a/Platform/netbsd.mk b/Platform/netbsd.mk new file mode 100644 index 0000000..883ca16 --- /dev/null +++ b/Platform/netbsd.mk @@ -0,0 +1,6 @@ +# $Id$ + +CC = cc +CFLAGS = -std=c99 -I /usr/pkg/include +LDFLAGS = -L /usr/pkg/lib -Wl,-R/usr/pkg/lib +LIBS = -lcrypto diff --git a/config.h.tmpl b/config.h.tmpl index fce1ef6..ecb869a 100644 --- a/config.h.tmpl +++ b/config.h.tmpl @@ -48,6 +48,10 @@ /* Authentication type. */ #define USE_COOKIE +/* GraphicsMagick or ImageMagick. */ +#define USE_IMAGEMAGICK +#undef USE_GRAPHICSMAGICK + /* PATH, uses PATH from environment automatically if not defined. */ #undef USE_PATH diff --git a/libs.c b/libs.c index 57db579..75e1423 100644 --- a/libs.c +++ b/libs.c @@ -9,6 +9,16 @@ int main() { printf("-lsqlite3"); #elif defined(USE_GDBM) printf("-lgdbm -lgdbm_compat"); +#endif + printf(" "); +#if defined(USE_GRAPHICSMAGICK) + printf("-lGraphicsMagickWand"); +#elif defined(USE_IMAGEMAGICK) +#ifdef __NetBSD__ + printf("-lMagickWand-7.Q16HDRI"); +#else + printf("-lMagickWand-7"); +#endif #endif printf("\n"); return 0; -- 2.45.2