1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval
$(call gb_ExternalProject_ExternalProject
,xpdf
))
12 $(eval
$(call gb_ExternalProject_register_targets
,xpdf
,\
18 $(call gb_ExternalProject_get_state_target
,xpdf
,build
):
19 $(call gb_ExternalProject_run
,build
,\
20 .
/configure
--without-x
--enable-multithreaded
--enable-exceptions \
21 $(if
$(filter YES
,$(CROSS_COMPILING
)),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
22 LDFLAGS
="-Wl$(COMMA)--enable-runtime-pseudo-reloc-v2" \
24 && MAKEFLAGS
="$(subst r,,$(MAKEFLAGS))" $(MAKE
) \
27 $(call gb_ExternalProject_get_state_target
,xpdf
,build
):
28 $(call gb_ExternalProject_run
,build
,\
29 LIB
="$(ILIB)" cmd.exe
/d
/c ms_make.bat \
33 $(call gb_ExternalProject_get_state_target
,xpdf
,build
):
34 $(call gb_ExternalProject_run
,build
,\
35 .
/configure
--without-x
--without-libpaper-library
--without-t1-library
--enable-multithreaded
--enable-exceptions \
36 $(if
$(filter YES
,$(CROSS_COMPILING
)),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
37 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
38 $(if
$(SYSBASE
),CFLAGS
="-I$(SYSBASE)/usr/include") \
39 $(if
$(PTHREAD_LIBS
),$(if
$(filter GCC
,$(COM
)),LDFLAGS
=$(PTHREAD_LIBS
))) \
40 && MAKEFLAGS
="$(subst r,,$(MAKEFLAGS))" $(MAKE
) \
45 # vim: set noet sw=4 ts=4: