# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

$(eval $(call gb_Module_Module,libpng))

$(eval $(call gb_Module_add_targets,libpng,\
	StaticLibrary_png \
	UnpackedTarball_png \
))

# vim: set noet sw=4 ts=4:

# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

$(eval $(call gb_Module_Module,libpng))

ifeq ($(SYSTEM_LIBPNG),NO)

$(eval $(call gb_Module_add_targets,libpng,\
	StaticLibrary_png \
	UnpackedTarball_png \
))

endif

# vim: set noet sw=4 ts=4:

Revert "no need to double the conditional, once is enough"
Revert "no need to double the conditional, once is enough"

This reverts commit b63029c8072c10c03b2fc36fe82619f0cff0ca18

This might be a bug in gb_Helper_optional or some such, but I get:

make[1]: *** No rule to make target `/home/master/src/libreoffice/workdirs/master/src/9e5d864bce8f06751bbd99962ecf4aad-libpng-1.5.10.tar.gz', needed by `/home/master/src/libreoffice/workdirs/master/workdir/unxlngx6/UnpackedTarget/9e5d864bce8f06751bbd99962ecf4aad-libpng-1.5.10.tar.gz'.  Stop.
make[1]: *** Waiting for unfinished jobs....
make: *** [build] Error 2

Change-Id: Ib9cd0cbe800f158bf50aaeb95f848cc2fd805de3
Reviewed-on: https://gerrit.libreoffice.org/6287
Reviewed-by: Lionel Elie Mamane <5befb0748e190886505727a102475cc24fbaa116@mamane.lu>
Tested-by: Lionel Elie Mamane <5befb0748e190886505727a102475cc24fbaa116@mamane.lu>
