bump product version to 4.1.6.2
[LibreOffice.git] / xpdf / ExternalProject_xpdf.mk
blobf7cb13c66f5cccdc5ba1dd0040bda3ca376b8aa0
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,\
13 build \
16 ifeq ($(OS),WNT)
17 ifeq ($(COM),GCC)
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" \
23 LIBS="-lgdi32" \
24 && MAKEFLAGS="$(subst r,,$(MAKEFLAGS))" $(MAKE) \
26 else # COM=MSC
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 \
31 endif
32 else # OS!=WNT
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) \
43 endif
45 # vim: set noet sw=4 ts=4: