summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2009-04-24 23:18:48 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2009-04-24 23:18:48 +0000
commitaf5297de25ae9a4589ac9a30c8f68c22a1b06039 (patch)
treece21d7e154fc0ba1474e212a9ab0e19918fcc29d /Makefile
parentefa447f3bcb4d6579f8e20de6b139a2c08624a00 (diff)
downloadnetsurf-af5297de25ae9a4589ac9a30c8f68c22a1b06039.tar.gz
netsurf-af5297de25ae9a4589ac9a30c8f68c22a1b06039.tar.bz2
Add external lib detections for BeOS.
svn path=/trunk/netsurf/; revision=7308
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fe1bc4a00..1e6a59cd0 100644
--- a/Makefile
+++ b/Makefile
@@ -371,6 +371,25 @@ ifeq ($(TARGET),beos)
NETLDFLAGS := -lnetwork
endif
LDFLAGS += -lbe -ltranslation $(NETLDFLAGS)
+
+ $(eval $(call feature_enabled,NSSVG,-DWITH_NS_SVG,-lsvgtiny,SVG rendering))
+ ifeq ($(HOST),beos)
+ CFLAGS += -I$(PREFIX)/include
+ LDFLAGS += -L$(PREFIX)/lib
+ $(eval $(call feature_enabled,HUBBUB,-DWITH_HUBBUB,-lhubbub-debug -lparserutils-debug,Hubbub HTML parser))
+ $(eval $(call feature_enabled,BMP,-DWITH_BMP,-lnsbmp,NetSurf BMP decoder))
+ $(eval $(call feature_enabled,GIF,-DWITH_GIF,-lnsgif,NetSurf GIF decoder))
+ $(eval $(call feature_enabled,PNG,-DWITH_PNG,-lpng,PNG support))
+ else
+ NETSURF_FEATURE_HUBBUB_CFLAGS := -DWITH_HUBBUB
+ NETSURF_FEATURE_BMP_CFLAGS := -DWITH_BMP
+ NETSURF_FEATURE_GIF_CFLAGS := -DWITH_GIF
+ NETSURF_FEATURE_PNG_CFLAGS := -DWITH_PNG
+ $(eval $(call pkg_config_find_and_add,HUBBUB,libhubbub,Hubbub HTML parser))
+ $(eval $(call pkg_config_find_and_add,BMP,libnsbmp,NetSurf BMP decoder))
+ $(eval $(call pkg_config_find_and_add,GIF,libnsgif,NetSurf GIF decoder))
+ $(eval $(call pkg_config_find_and_add,PNG,libpng,PNG support))
+ endif
endif
# ----------------------------------------------------------------------------