summaryrefslogtreecommitdiff
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2012-10-10 21:43:21 -0400
committerPeter Foley <pefoley2@verizon.net>2012-10-12 19:20:23 -0400
commit8615d09bb10a91444b993fa8806696a7b01f06f9 (patch)
treeb9efa6fbd91454e0d74286e7fcc8502155c9abb1 /RepositoryExternal.mk
parent179e267704733fff336637a9de61598369e1dce9 (diff)
convert librsvg to gbuild
Change-Id: I1f84f85abc4e2db3679e64d34671458779ca97fa
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r--RepositoryExternal.mk145
1 files changed, 145 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 81f412db2045..5a3cf89a9d48 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -1205,10 +1205,25 @@ endef
else # ENABLE_GIO
+ifeq ($(SYSTEM_GLIB),YES)
+
+gb_LinkTarget__use_gio :=
+
+else # !SYSTEM_GLIB
+
+$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO,\
+ gio-2.0 \
+))
+
define gb_LinkTarget__use_gio
+$(call gb_LinkTarget_use_libraries,$(1),\
+ gio-2.0 \
+)
endef
+endif # SYSTEM_GLIB
+
endif # ENABLE_GIO
define gb_LinkTarget__use_gtk
@@ -1234,11 +1249,26 @@ endif
endef
+ifeq ($(SYSTEM_GLIB),YES)
+
define gb_LinkTarget__use_gthread
$(call gb_LinkTarget_add_libs,$(1),$(GTHREAD_LIBS))
+endef
+
+else # !SYSTEM_GLIB
+
+$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO,\
+ gthread-2.0 \
+))
+define gb_LinkTarget__use_gthread
+$(call gb_LinkTarget_use_libraries,$(1),\
+ gthread-2.0 \
+)
endef
+endif # SYSTEM_GLIB
+
ifeq ($(ENABLE_CUPS),TRUE)
define gb_LinkTarget__use_cups
@@ -1324,6 +1354,107 @@ gb_LinkTarget__use_telepathy :=
endif # ENABLE_TELEPATHY
+ifeq ($(SYSTEM_LIBCROCO),NO)
+
+$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO,\
+ croco-0.6-3 \
+))
+
+define gb_LinkTarget__use_croco
+
+$(call gb_LinkTarget_set_include,$(1),\
+ $$(INCLUDE) \
+ -I$(OUTDIR)/inc/external/libcroco-0.6 \
+)
+
+$(call gb_LinkTarget_use_libraries,$(1),\
+ croco-0.6-3 \
+)
+
+endef
+
+else # !SYSTEM_LIBCROCO
+
+gb_LinkTarget__use_croco :=
+
+endif # SYSTEM_LIBCROCO
+
+ifeq ($(SYSTEM_PANGO),NO)
+
+$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
+ pango-1.0 \
+ pangocairo-1.0 \
+))
+
+define gb_LinkTarget__use_pango
+
+$(call gb_LinkTarget_set_include,$(1),\
+ $$(INCLUDE) \
+ -I$(OUTDIR)/inc/external/pango-1.0 \
+)
+
+$(call gb_LinkTarget_use_libraries,$(1),\
+ pango-1.0 \
+ pangocairo-1.0 \
+)
+
+endef
+
+else # !SYSTEM_PANGO
+
+gb_LinkTarget__use_pango :=
+
+endif # SYSTEM_PANGO
+
+ifeq ($(SYSTEM_LIBGSF),NO)
+
+$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
+ gsf-1 \
+))
+
+define gb_LinkTarget__use_gsf
+
+$(call gb_LinkTarget_set_include,$(1),\
+ $$(INCLUDE) \
+ -I$(OUTDIR)/inc/external/libgsf-1 \
+)
+
+$(call gb_LinkTarget_use_libraries,$(1),\
+ gsf-1 \
+)
+
+endef
+
+else # !SYSTEM_LIBGSF
+
+gb_LinkTarget__use_gsf :=
+
+endif # SYSTEM_LIBGSF
+
+ifeq ($(SYSTEM_GDKPIXBUF),NO)
+
+$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
+ gdk_pixbuf-2.0 \
+))
+
+define gb_LinkTarget__use_pixbuf
+
+$(call gb_LinkTarget_set_include,$(1),\
+ $$(INCLUDE) \
+ -I$(OUTDIR)/inc/external/gdk-pixbuf-2.0 \
+)
+
+$(call gb_LinkTarget_use_libraries,$(1),\
+ gdk_pixbuf-2.0 \
+)
+
+endef
+
+else # !SYSTEM_GDKPIXBUF
+
+gb_LinkTarget__use_pixbuf :=
+
+endif # SYSTEM_GDKPIXBUF
ifeq ($(SYSTEM_DB),YES)
@@ -1536,6 +1667,7 @@ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO,\
endif # SYSTEM_CLUCENE
+ifeq ($(SYSTEM_GLIB),YES)
define gb_LinkTarget__use_gobject
$(call gb_LinkTarget_add_libs,$(1),\
$(GOBJECT_LIBS) \
@@ -1547,6 +1679,19 @@ $(call gb_LinkTarget_set_include,$(1),\
)
endef
+else # !SYSTEM_GLIB
+
+$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
+ gobject-2.0 \
+))
+
+define gb_LinkTarget__use_gobject
+$(call gb_LinkTarget_use_libraries,$(1),\
+ gobject-2.0 \
+)
+endef
+
+endif # !SYSTEM_GLIB
ifeq ($(SYSTEM_HSQLDB),YES)