aboutsummaryrefslogtreecommitdiff
path: root/debian/Makefile.nx-libs
diff options
context:
space:
mode:
authorOrion Poplawski <orion@cora.nwra.com>2013-02-12 08:13:37 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-02-12 08:13:54 +0100
commitd439556ff1b83aecb10991cf0f031fd4da23494e (patch)
tree27551ef7f6c433398026abfe3bee99ce1e7bffa5 /debian/Makefile.nx-libs
parentcf521a4b6c4362a7160adbbcc83e3771e671d5d4 (diff)
downloadnx-libs-d439556ff1b83aecb10991cf0f031fd4da23494e.tar.gz
nx-libs-d439556ff1b83aecb10991cf0f031fd4da23494e.tar.bz2
nx-libs-d439556ff1b83aecb10991cf0f031fd4da23494e.zip
Fix wrong symlink direction of libNX_* files. (Fixes: #107).
Diffstat (limited to 'debian/Makefile.nx-libs')
-rw-r--r--debian/Makefile.nx-libs14
1 files changed, 5 insertions, 9 deletions
diff --git a/debian/Makefile.nx-libs b/debian/Makefile.nx-libs
index 93c7627f2..74f0d3a38 100644
--- a/debian/Makefile.nx-libs
+++ b/debian/Makefile.nx-libs
@@ -92,22 +92,18 @@ install-full:
# copy headers (for libnx-x11-dev)
cp -aL nx-X11/exports/include/* nx-X11/.build-exports/include
- # copy libs (for libnx-x11)
- find nx-X11/exports/lib/ | egrep "^.*\.so$$" | while read libpath; do \
+ # copy libs (for libnx-x11), we want the targets of the links
+ find nx-X11/exports/lib/ | grep -F ".so" | while read libpath; do \
libfile=$$(basename $$libpath); \
libdir=$$(dirname $$libpath); \
+ link=$$(readlink $$libpath); \
\
mkdir -p $${libdir//exports/.build-exports}; \
- cp -L $$libpath $${libdir//exports/.build-exports}; \
- \
- find $$libdir/$$libfile.* | while read symlink; do \
- ln -s $$libfile $${libdir//exports/.build-exports}/$$(basename $$symlink); \
- done; \
+ cp -a $${libpath/$$libfile/$$link} $${libdir//exports/.build-exports}; \
done;
$(INSTALL_DIR) $(DESTDIR)$(NXLIBDIR)/X11
- $(INSTALL_FILE) nx-X11/.build-exports/lib/*.so $(DESTDIR)$(NXLIBDIR)/X11/
- $(COPY_SYMLINK) nx-X11/.build-exports/lib/*.so.* $(DESTDIR)$(NXLIBDIR)/X11/
+ $(COPY_SYMLINK) nx-X11/.build-exports/lib/*.so* $(DESTDIR)$(NXLIBDIR)/X11/
find nx-X11/.build-exports/include/ -type d | grep -v "include/X11/bitmaps" | \
while read dirname; do \