SHA256
1
0
forked from pool/lazarus
lazarus/lazarus-Makefile_patch.diff
Pragmatic Linux 5a8b614cef Accepting request 1139048 from home:pragmalin:branches:devel:languages:pascal
- Update to 3.0
  * For a complete list of changes see:
    https://wiki.freepascal.org/Lazarus_3.0_release_notes
- Removed 0002-fix-GTK3-build-error.patch because this is fixed in Lazarus 3.0.
- Spec-file improvements to fix several RPM lint errors and warnings.

OBS-URL: https://build.opensuse.org/request/show/1139048
OBS-URL: https://build.opensuse.org/package/show/devel:languages:pascal/lazarus?expand=0&rev=86
2024-01-15 21:46:41 +00:00

34 lines
1.0 KiB
Diff

Index: lazarus/Makefile.fpc
===================================================================
--- lazarus.orig/Makefile.fpc
+++ lazarus/Makefile.fpc
@@ -20,7 +20,7 @@ files=$(wildcard *$(OEXT)) $(wildcard *$
[install]
fpcpackage=n
-basedir=share/lazarus
+basedir=$(_LIB)/lazarus
[dist]
destdir=$(BASEDIR)/dist
@@ -29,7 +29,7 @@ destdir=$(BASEDIR)/dist
RCPP?=$(strip $(firstword cpp$(SRCEXEEXT)))
#
ifndef LAZARUS_INSTALL_DIR
-LAZARUS_INSTALL_DIR=$(INSTALL_PREFIX)/share/lazarus
+LAZARUS_INSTALL_DIR=$(INSTALL_PREFIX)/$(_LIB)/lazarus
INSTALL_MAN_DIR=$(INSTALL_PREFIX)/share/man
ifneq ($(findstring $(OS_TARGET),win32 win64),)
LAZARUS_INSTALL_DIR=C:\lazarus
@@ -249,8 +249,8 @@ installbase:
ifneq ($(findstring $(OS_TARGET),win32 win64),)
else
- $(MKDIR) $(INSTALL_PREFIX)/share
- $(MKDIR) $(INSTALL_PREFIX)/share/lazarus
+ $(MKDIR) $(INSTALL_PREFIX)/$(_LIB)
+ $(MKDIR) $(INSTALL_PREFIX)/$(_LIB)/lazarus
$(MKDIR) $(INSTALL_PREFIX)/share/applications
$(MKDIR) $(INSTALL_PREFIX)/share/pixmaps
$(MKDIR) $(INSTALL_PREFIX)/share/mime/packages