mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-11 05:22:40 -04:00
48 lines
2.0 KiB
Plaintext
48 lines
2.0 KiB
Plaintext
$NetBSD: patch-Makefile,v 1.3 2014/03/26 13:29:53 imil Exp $
|
|
|
|
Fix installation.
|
|
|
|
--- Makefile.orig 2014-03-12 12:10:00.000000000 +0000
|
|
+++ Makefile
|
|
@@ -24,7 +24,6 @@ ABIVER= 5.1
|
|
# Change the installation path as needed. This automatically adjusts
|
|
# the paths in src/luaconf.h, too. Note: PREFIX must be an absolute path!
|
|
#
|
|
-export PREFIX= /usr/local
|
|
export MULTILIB= lib
|
|
##############################################################################
|
|
|
|
@@ -40,7 +39,7 @@ INSTALL_LMODD= $(INSTALL_SHARE)/lua
|
|
INSTALL_LMOD= $(INSTALL_LMODD)/$(ABIVER)
|
|
INSTALL_CMODD= $(INSTALL_LIB)/lua
|
|
INSTALL_CMOD= $(INSTALL_CMODD)/$(ABIVER)
|
|
-INSTALL_MAN= $(INSTALL_SHARE)/man/man1
|
|
+INSTALL_MAN= $(DPREFIX)/man/man1
|
|
INSTALL_PKGCONFIG= $(INSTALL_LIB)/pkgconfig
|
|
|
|
INSTALL_TNAME= luajit-$(VERSION)
|
|
@@ -48,6 +47,7 @@ INSTALL_TSYMNAME= luajit
|
|
INSTALL_ANAME= libluajit-$(ABIVER).a
|
|
INSTALL_SONAME= libluajit-$(ABIVER).so.$(MAJVER).$(MINVER).$(RELVER)
|
|
INSTALL_SOSHORT= libluajit-$(ABIVER).so
|
|
+INSTALL_SOMAJOR= libluajit-$(ABIVER).so.$(MAJVER)
|
|
INSTALL_DYLIBNAME= libluajit-$(ABIVER).$(MAJVER).$(MINVER).$(RELVER).dylib
|
|
INSTALL_DYLIBSHORT1= libluajit-$(ABIVER).dylib
|
|
INSTALL_DYLIBSHORT2= libluajit-$(ABIVER).$(MAJVER).dylib
|
|
@@ -57,6 +57,7 @@ INSTALL_STATIC= $(INSTALL_LIB)/$(INSTALL
|
|
INSTALL_DYN= $(INSTALL_LIB)/$(INSTALL_SONAME)
|
|
INSTALL_SHORT1= $(INSTALL_LIB)/$(INSTALL_SOSHORT)
|
|
INSTALL_SHORT2= $(INSTALL_LIB)/$(INSTALL_SOSHORT)
|
|
+INSTALL_MAJOR1= $(INSTALL_LIB)/$(INSTALL_SOMAJOR)
|
|
INSTALL_T= $(INSTALL_BIN)/$(INSTALL_TNAME)
|
|
INSTALL_TSYM= $(INSTALL_BIN)/$(INSTALL_TSYMNAME)
|
|
INSTALL_PC= $(INSTALL_PKGCONFIG)/$(INSTALL_PCNAME)
|
|
@@ -113,6 +114,7 @@ install: $(INSTALL_DEP)
|
|
cd src && test -f $(FILE_SO) && \
|
|
$(INSTALL_X) $(FILE_SO) $(INSTALL_DYN) && \
|
|
$(LDCONFIG) $(INSTALL_LIB) && \
|
|
+ $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_MAJOR1) && \
|
|
$(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \
|
|
$(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || :
|
|
cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)
|