2019-04-01 13:37:15 +00:00
|
|
|
diff --git a/lib/Makefile b/lib/Makefile
|
|
|
|
index bc758df..7f51b41 100644
|
|
|
|
--- a/lib/Makefile
|
|
|
|
+++ b/lib/Makefile
|
|
|
|
@@ -221,7 +221,7 @@ libpm.o: compile.h
|
2019-02-12 07:59:12 +00:00
|
|
|
.PHONY: install.lib
|
|
|
|
ifeq ($(NETPBMLIBTYPE),unixshared)
|
|
|
|
# install a Unix-style shared library
|
2019-04-01 13:37:15 +00:00
|
|
|
-install.lib: $(PKGDIR)/lib $(PKGDIR)/sharedlink
|
2019-02-12 07:59:12 +00:00
|
|
|
+install.lib: $(PKGDIR)/lib
|
|
|
|
cd $(PKGDIR)/lib ; rm -f libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ).*
|
|
|
|
$(INSTALL) -c -m $(INSTALL_PERM_LIBD) \
|
|
|
|
libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ).$(MIN) $(PKGDIR)/lib/
|
2019-04-01 13:37:15 +00:00
|
|
|
@@ -263,27 +263,26 @@ $(INTERFACE_HEADERS:%=%_installhdr): $(PKGDIR)/include/netpbm
|
2019-02-12 07:59:12 +00:00
|
|
|
$(SRCDIR)/lib/$(@:%_installhdr=%) $(PKGDIR)/include/netpbm/
|
|
|
|
|
|
|
|
.PHONY: install.staticlib
|
2019-04-01 13:37:15 +00:00
|
|
|
-install.staticlib: $(PKGDIR)/staticlink
|
2019-02-12 07:59:12 +00:00
|
|
|
+install.staticlib: $(PKGDIR)/lib
|
|
|
|
$(INSTALL) -c -m $(INSTALL_PERM_LIBS) libnetpbm.$(STATICLIBSUFFIX) \
|
2019-04-01 13:37:15 +00:00
|
|
|
- $(PKGDIR)/staticlink
|
2019-02-12 07:59:12 +00:00
|
|
|
+ $(PKGDIR)/lib
|
|
|
|
|
|
|
|
# Install a shared library stub -- the ".so" file used at link time to
|
|
|
|
# prepare a program for dynamically linking a library at run time
|
|
|
|
.PHONY: install.sharedlibstub
|
2019-04-01 13:37:15 +00:00
|
|
|
-install.sharedlibstub: $(PKGDIR)/sharedlink
|
2019-02-12 07:59:12 +00:00
|
|
|
+install.sharedlibstub: $(PKGDIR)/lib
|
|
|
|
ifeq ($(NETPBMLIBTYPE),unixshared)
|
|
|
|
# install the link-time (.so) links to the runtime libraries
|
2019-04-01 13:37:15 +00:00
|
|
|
- cd $(PKGDIR)/sharedlink ; \
|
2019-02-12 07:59:12 +00:00
|
|
|
+ cd $(PKGDIR)/lib ; \
|
|
|
|
rm -f libnetpbm.$(NETPBMLIBSUFFIX); \
|
|
|
|
- $(SYMLINK) ../lib/libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ) \
|
|
|
|
+ $(SYMLINK) libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ) \
|
|
|
|
libnetpbm.$(NETPBMLIBSUFFIX)
|
|
|
|
endif
|
|
|
|
ifeq ($(NETPBMLIBTYPE),dll)
|
2019-04-01 13:37:15 +00:00
|
|
|
- $(INSTALL) -c -m $(INSTALL_PERM_LIBS) libnetpbm.dll.a \
|
|
|
|
- $(PKGDIR)/sharedlink
|
|
|
|
+ $(INSTALL) -c -m $(INSTALL_PERM_LIBS) libnetpbm.dll.a $(PKGDIR)/link
|
|
|
|
endif
|
|
|
|
ifeq ($(NETPBMLIBTYPE),dylib)
|
|
|
|
- cd $(PKGDIR)/sharedlink/ ; \
|
|
|
|
+ cd $(PKGDIR)/link/ ; \
|
|
|
|
rm -f libnetpbm.dylib; \
|
|
|
|
$(SYMLINK) ../lib/libnetpbm.$(MAJ).$(MIN).dylib libnetpbm.dylib
|
|
|
|
endif
|