mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
$(GNUSTEP_INSTANCE)_INTERFACE_VERSION is used in gnustep-make to define the version of the shared object. As a packager, there might be various reasons to override the $(GNUSTEP_INSTANCE)_INTERFACE_VERSION in order to control the library version. So I do for gnustep-gui on OpenBSD packages. The problem here is, that the libgnustep-gui_INTERFACE_VERSION is additionally used to specify the path where resources like Panels, Localizations etc. get installed, however, in Source/NSApplication.m, the use of GNUSTEP_GUI_MAJOR_VERSION.GNUSTEP_GUI_MINOR_VERSION As long as the libgnustep-gui_INTERFACE_VERSION is not overridden with some other value, everything is fine. However, as in my case, Applications aren't able to find the Panels/Translations provided by -gui anymore. Decided to just remove the definition of libgnustep-gui_INTERFACE_VERSION in these three Makefiles, as it was only used once, and used the GNUSTEP_GUI_MAJOR_VERSION.GNUSTEP_GUI_MINOR_VERSION directly. Alternatively, libgnustep-gui_INTERFACE_VERSION in these Makefiles could could have been renamed to avoid this conflict.
58 lines
2.3 KiB
Makefile
58 lines
2.3 KiB
Makefile
#
|
|
# Resources makefile for gnustep-gui
|
|
# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
|
|
#
|
|
# Written by: Nicola Pero <n.pero@mi.flashnet.it>
|
|
# Date: December 2001, September 2002
|
|
#
|
|
# This file is part of the GNUstep GUI Library.
|
|
#
|
|
# This library is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
# License as published by the Free Software Foundation; either
|
|
# version 2 of the License, or (at your option) any later version.
|
|
#
|
|
# This library is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# Lesser General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
# License along with this library; see the file COPYING.LIB.
|
|
# If not, see <http://www.gnu.org/licenses/> or write to the
|
|
# Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
# Boston, MA 02110-1301, USA.
|
|
|
|
PACKAGE_NAME = gnustep-gui
|
|
GNUSTEP_LOCAL_ADDITIONAL_MAKEFILES=../gui.make
|
|
include $(GNUSTEP_MAKEFILES)/common.make
|
|
|
|
include ../Version
|
|
|
|
RESOURCE_SET_NAME = gui-resources
|
|
gui-resources_INSTALL_DIR = $(GNUSTEP_LIBRARY)/Libraries/gnustep-gui/Versions/$(GNUSTEP_GUI_MAJOR_VERSION).$(GNUSTEP_GUI_MINOR_VERSION)/Resources
|
|
gui-resources_LANGUAGES = English Italian Lojban Esperanto German French Spanish Korean Japanese Polish
|
|
gui-resources_LOCALIZED_RESOURCE_FILES = Localizable.strings
|
|
|
|
include $(GNUSTEP_MAKEFILES)/resource-set.make
|
|
|
|
# The following code is so that by typing 'make strings', all the
|
|
# Localizable.strings files are updated for the new localizable
|
|
# strings in the source code. If we had the localized resources in
|
|
# the Source directory, this would be supported automatically by
|
|
# gnustep-make (but it would parse all files all the times ... which
|
|
# will be reasonable when more than two files actually contain
|
|
# something to translate :-)
|
|
|
|
# The list of OBJC_FILES containing localizable strings
|
|
strings_OBJC_FILES = \
|
|
NSApplication.m \
|
|
NSDocument.m
|
|
|
|
# The list of HEADER_FILES containing localizable strings
|
|
strings_HEADER_FILES =
|
|
|
|
after-strings::
|
|
make_strings -L "$(gui-resources_LANGUAGES)" \
|
|
$(addprefix ../Source/,$(strings_OBJC_FILES)) \
|
|
$(addprefix ../Headers/Additions/GNUstepGUI/,$(strings_HEADER_FILES))
|