• Jan Engelhardt's avatar
    Unique Library Names Patch (600_nx-X11+nxcompext+nxcompshad_unique-libnames.full.patch). · c4a8556c
    Jan Engelhardt authored
      We really want to make use of rpm's automatic dependency finding.
      Binaries are scanned for DT_NEEDED entries, the latter of which are
      then used for populating the "Requires"-type deps. The "nxagent"
      binary for example would require libX11.so.6. That incurs problems:
    
      1. A package manager told to install nxagent could select xorg-x11
      rather than nx-libs, even though nxagent depends on the NX version.
    
      2. A package manager told to install $some_program could select nx-libs
      rather than xorg-x11 (since both provide libX11.so.6), but, since
      the NX library is in an obscure directory, running $some_program
      would fail as libX11.so.6 is not found.
    
      To solve this, give the NX libraries unique names different from the
      Xorg ones.
    c4a8556c
Imakefile 1.38 KB
XCOMM $XdotOrg: xc/lib/Xfixes/Imakefile,v 1.1 2004/07/31 05:50:39 anholt Exp $

#ifndef NormalLibXfixes
#define NormalLibXfixes YES
SOXFIXESREV=3.0.0
#endif

#ifndef SharedLibXfixes
#define SharedLibXfixes YES
#endif

#define DoNormalLib NormalLibXfixes
#define DoSharedLib SharedLibXfixes
#define DoDebugLib DebugLibXfixes
#define DoProfileLib ProfileLibXfixes

#define LibName NX_Xfixes
#define SoRev SOXFIXESREV
#define IncSubdir X11
#define IncSubSubdir extensions

#include <Threads.tmpl>

#ifdef SharedXfixesReqs
REQUIREDLIBS = SharedXfixesReqs
#endif

XFIXES_VERSION=3.0.0

X_LIBS=-L$(SHLIBDIR) $(XONLYLIB)
X_CFLAGS=-I$(INCROOT) $(THREADS_DEFINES)

RPATH_CFLAG = HardCodeLibdirFlag

SRCS =	Cursor.c	\
	Region.c	\
	SaveSet.c	\
	Selection.c	\
	Xfixes.c

OBJS =	Cursor.o	\
	Region.o	\
	SaveSet.o	\
	Selection.o	\
	Xfixes.o

HEADERS = Xfixes.h

SUBSTVARS=prefix="$(PROJECTROOT)" \
	  exec_prefix="$(BINDIR)" \
	  libdir="$(USRLIBDIR)" \
	  hardcode_libdir_flag_spec="$(RPATH_CFLAG)" \
	  includedir="$(INCROOT)" \
	  X_LIBS="$(X_LIBS)" \
	  X_CFLAGS="$(X_CFLAGS)" \
	  VERSION="$(XFIXES_VERSION)"

#include <Library.tmpl>

MANSUFFIX=$(LIBMANSUFFIX)
InstallManPage(Xfixes,$(LIBMANDIR))

DependTarget()

all:: xfixes.pc

xfixes.pc: xfixes.pc.in
	RemoveFile($@)
	sh ../Xcursor/config-subst $(SUBSTVARS) < xfixes.pc.in > $@

InstallNonExecFile(xfixes.pc,$(USRLIBDIR)/pkgconfig)

clean::
	RemoveFile(xfixes.pc)