Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
libkate0
> libkate-makefile.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File libkate-makefile.patch of Package libkate0
--- Makefile.orig 2008-07-23 14:11:44.000000000 +0200 +++ Makefile 2008-07-23 14:29:39.000000000 +0200 @@ -7,6 +7,7 @@ OBJDIR=obj LIBDIR=lib OGGDIR=built-streams +TLIB=lib SPAMMY_WARNINGS=0 @@ -36,11 +37,12 @@ STRIP=/bin/true else CWARNFLAGS_LIGHT+=-Winline -Wdisabled-optimization -CFLAGS+=-O2 -LDFLAGS+=-Wl,-x -Wl,-S -Wl,-O2 -STRIPFLAGS=-X -d -x -X --strip-unneeded +LDFLAGS+=-Wl,-x -Wl,-S +STRIPFLAGS= endif +CFLAGS+=$(OPTFLAGS) + ifeq ($(PROFILE),1) CFLAGS+=-pg -g LDFLAGS+=-pg @@ -107,11 +109,11 @@ endif STATICLIBS:=$(LIBDIR)/libkate.a -SHAREDLIBS:=$(LIBDIR)/libkate.$(VERSION).so +SHAREDLIBS:=$(LIBDIR)/libkate.so.$(VERSION) ifeq ($(OGGERR),) STATICLIBS+=$(LIBDIR)/liboggkate.a -SHAREDLIBS+=$(LIBDIR)/liboggkate.$(VERSION).so +SHAREDLIBS+=$(LIBDIR)/liboggkate.so.$(VERSION) endif staticlib: $(STATICLIBS) @@ -166,20 +168,18 @@ @$(RANLIB) $@ @$(STRIP) $(STRIPFLAGS) $@ -$(LIBDIR)/libkate.$(VERSION).so: $(OBJS_SHARED) +$(LIBDIR)/libkate.so.$(VERSION): $(OBJS_SHARED) @echo " LD $@" @mkdir -p $(dir $@) @$(LD) -shared -o $@ -Wl,-soname -Wl,libkate.so.$(SONAME_MAJOR) $^ @$(STRIP) $(STRIPFLAGS) $@ - @/sbin/ldconfig -n $(LIBDIR) @ln -fs libkate.so.$(SONAME_MAJOR) lib/libkate.so -$(LIBDIR)/liboggkate.$(VERSION).so: $(LIBOGGKATE_OBJS_SHARED) +$(LIBDIR)/liboggkate.so.$(VERSION): $(LIBOGGKATE_OBJS_SHARED) @echo " LD $@" @mkdir -p $(dir $@) @$(LD) -shared -o $@ -Wl,-soname -Wl,liboggkate.so.$(SONAME_MAJOR) $^ @$(STRIP) $(STRIPFLAGS) $@ - @/sbin/ldconfig -n $(LIBDIR) @ln -fs liboggkate.so.$(SONAME_MAJOR) lib/liboggkate.so .PHONY: clean @@ -201,27 +201,22 @@ .PHONY: install install: staticlib sharedlib mkdir -p $(PREFIX)/include/kate - mkdir -p $(PREFIX)/lib + mkdir -p $(PREFIX)/$(TLIB) cp include/kate/kate.h $(PREFIX)/include/kate/ - cp $(LIBDIR)/libkate.a $(PREFIX)/lib/ - cp $(LIBDIR)/libkate.$(VERSION).so $(PREFIX)/lib/ - cp -P $(LIBDIR)/libkate.so $(PREFIX)/lib/ - -cp -P $(LIBDIR)/libkate.so.$(SONAME_MAJOR) $(PREFIX)/lib/ - mkdir -p $(PREFIX)/lib/pkgconfig - cat misc/pkgconfig/kate.pc\ - | awk -v px="$(PREFIX)" '/^prefix=/ {print "prefix="px; next} {print}' \ - > $(PREFIX)/lib/pkgconfig/kate.pc + cp $(LIBDIR)/libkate.a $(PREFIX)/$(TLIB)/ + cp $(LIBDIR)/libkate.so.$(VERSION) $(PREFIX)/$(TLIB)/ + ln -fs libkate.so.$(VERSION) $(PREFIX)/$(TLIB)/libkate.so.$(SONAME_MAJOR) + ln -fs libkate.so.$(SONAME_MAJOR) $(PREFIX)/$(TLIB)/libkate.so + mkdir -p $(PREFIX)/$(TLIB)/pkgconfig + cp misc/pkgconfig/kate.pc $(PREFIX)/$(TLIB)/pkgconfig/kate.pc ifeq ($(OGGERR),) cp include/kate/oggkate.h $(PREFIX)/include/kate/ - cp $(LIBDIR)/liboggkate.a $(PREFIX)/lib/ - cp $(LIBDIR)/liboggkate.$(VERSION).so $(PREFIX)/lib/ - cp -P $(LIBDIR)/liboggkate.so $(PREFIX)/lib/ - -cp -P $(LIBDIR)/liboggkate.so.$(SONAME_MAJOR) $(PREFIX)/lib/ - cat misc/pkgconfig/oggkate.pc | \ - awk -v px="$(PREFIX)" '/^prefix=/ {print "prefix="px; next} {print}' \ - > $(PREFIX)/lib/pkgconfig/oggkate.pc + cp $(LIBDIR)/liboggkate.a $(PREFIX)/$(TLIB)/ + cp $(LIBDIR)/liboggkate.so.$(VERSION) $(PREFIX)/$(TLIB)/ + ln -fs liboggkate.so.$(VERSION) $(PREFIX)/$(TLIB)/liboggkate.so.$(SONAME_MAJOR) + ln -fs liboggkate.so.$(SONAME_MAJOR) $(PREFIX)/$(TLIB)/liboggkate.so + cp misc/pkgconfig/oggkate.pc $(PREFIX)/$(TLIB)/pkgconfig/oggkate.pc endif - -/sbin/ldconfig -n $(PREFIX)/lib/ .PHONY: uninstall uninstall: