LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File lazarus-Makefile_patch.diff of Package lazarus (Project devel:languages:pascal)

diff -Pdpru lazarus.orig/Makefile.fpc lazarus/Makefile.fpc
--- lazarus.orig/Makefile.fpc	2014-09-06 20:59:12.000000000 +0200
+++ lazarus/Makefile.fpc	2015-04-23 00:00:38.959929899 +0200
@@ -20,7 +20,7 @@ files=$(wildcard *$(OEXT)) $(wildcard *$
 
 [install]
 fpcpackage=n
-basedir=share/lazarus
+basedir=lib/lazarus
 
 [dist]
 destdir=$(BASEDIR)/dist
@@ -28,7 +28,7 @@ destdir=$(BASEDIR)/dist
 [prerules]
 RCPP?=$(strip $(firstword cpp$(SRCEXEEXT)))
 #
-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
@@ -256,8 +256,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