Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:15.0:Ports
tolua
tolua-5.2.0-shared.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tolua-5.2.0-shared.patch of Package tolua
Index: tolua-5.2.4/config =================================================================== --- tolua-5.2.4.orig/config +++ tolua-5.2.4/config @@ -32,5 +32,5 @@ LIB= -L$(TOLUA)/lib -L$(LUALIB) #CFLAGS= -O2 $(WARN) $(INC) #CPPFLAGS= -O2 $(WARN) $(INC) -CFLAGS= -g $(WARN) $(INC) -CPPFLAGS= -g $(WARN) $(INC) +CFLAGS= -fPIC -DLUA_C89_NUMBERS $(WARN) $(INC) +CPPFLAGS= -fPIC -DLUA_C89_NUMBERS $(WARN) $(INC) Index: tolua-5.2.4/src/bin/Makefile =================================================================== --- tolua-5.2.4.orig/src/bin/Makefile +++ tolua-5.2.4/src/bin/Makefile @@ -17,7 +17,7 @@ T_D = $(TOLUA)/bin/tolua_lua all: $(T) $(T): $(OBJS) - $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIB) -ltolua -llua -lm + $(CC) $(CFLAGS) -shared -o $@ $(OBJS) $(LIB) -ltolua -llua -lm toluabind.c: $(T_D) $(T_D) -o toluabind.c tolua.pkg Index: tolua-5.2.4/src/lib/Makefile =================================================================== --- tolua-5.2.4.orig/src/lib/Makefile +++ tolua-5.2.4/src/lib/Makefile @@ -11,14 +11,23 @@ OBJS= \ tolua_push.o \ tolua_to.o +MAJOR = 5 +MINOR = 2 +REL = 4 +VERSION = $(MAJOR).$(MINOR).$(REL) + T= $(TOLUA)/lib/libtolua.a +T_S = $(TOLUA)/lib/libtolua.so.$(VERSION) -all: $T +all: $T $(T_S) $T: $(OBJS) $(AR) $@ $(OBJS) $(RANLIB) $@ +$(T_S): $(OBJS) + $(CC) -shared -Wl,-soname,libtolua.so.$(MAJOR) $^ -o $@ + clean: rm -f $(OBJS) Index: tolua-5.2.4/Makefile =================================================================== --- tolua-5.2.4.orig/Makefile +++ tolua-5.2.4/Makefile @@ -1,5 +1,16 @@ # makefile for tolua hierarchy +MAJOR = 5 +MINOR = 2 +REL = 4 +VERSION = $(MAJOR).$(MINOR).$(REL) + +PREFIX = /usr +BINDIR = $(DESTDIR)$(PREFIX)/bin +LIB = lib +LIBDIR = $(DESTDIR)$(PREFIX)/$(LIB) +INCLUDEDIR = $(DESTDIR)$(PREFIX)/include + tolua: cd src/lib; make all cd src/bin; make all @@ -7,6 +18,17 @@ tolua: tests: cd src/tests; make all +install: + mkdir -p $(BINDIR) + mkdir -p $(INCLUDEDIR) + mkdir -p $(LIBDIR) + install -m 0755 bin/tolua $(BINDIR) + install -m 0644 include/tolua.h $(INCLUDEDIR) + install -m 0644 lib/libtolua.so.$(VERSION) $(LIBDIR) + ln -sf $(PREFIX)/$(LIB)/libtolua.so.$(VERSION) $(LIBDIR)/libtolua.so.$(MAJOR).$(MINOR) + ln -sf $(PREFIX)/$(LIB)/libtolua.so.$(VERSION) $(LIBDIR)/libtolua.so.$(MAJOR) + ln -sf $(PREFIX)/$(LIB)/libtolua.so.$(VERSION) $(LIBDIR)/libtolua.so + all clean klean: cd src/lib; make $@ cd src/bin; make $@
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor