diff options
author | Bruce M Simpson <bms@FreeBSD.org> | 2010-01-14 19:11:45 +0000 |
---|---|---|
committer | Bruce M Simpson <bms@FreeBSD.org> | 2010-01-14 19:11:45 +0000 |
commit | 351b7b50fe2297e131af61783e6b72c9374c5f70 (patch) | |
tree | 623e89986976e70b75d710526d63bb3c6aa39ac2 /graphics/seom/files | |
parent | 1d924da9fe462c8ed5dc4d90d01a9ced86fdf81b (diff) |
seom is a library to allow OpenGL application output to be captured.
Notes
Notes:
svn path=/head/; revision=247876
Diffstat (limited to 'graphics/seom/files')
-rw-r--r-- | graphics/seom/files/patch-Makefile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/graphics/seom/files/patch-Makefile b/graphics/seom/files/patch-Makefile new file mode 100644 index 000000000000..ed0f0ea945fc --- /dev/null +++ b/graphics/seom/files/patch-Makefile @@ -0,0 +1,53 @@ +Index: Makefile +=================================================================== +--- Makefile (revision 196) ++++ Makefile (working copy) +@@ -2,8 +2,11 @@ + MAJOR = 0 + LIBRARY = libseom.so + +-DESTDIR = ++DESTDIR ?= ++ ++# XXX override passed in + LIBDIR = lib ++LIBDATADIR = libdata + + CC = gcc + ASM = yasm +@@ -11,8 +14,11 @@ + CFLAGS = -Iinclude -std=c99 + LDFLAGS = -Wl,--as-needed + +-include config.make ++###include config.make + ++ARCH = C ++CFLAGS += -I${LOCALBASE}/include -L${LOCALBASE}/lib ++ + OBJS = src/buffer.o src/client.o src/codec.o src/frame.o src/opengl.o \ + src/server.o src/stream.o src/arch/$(ARCH)/frame.o + +@@ -29,7 +35,7 @@ + $(CC) $(CFLAGS) -fPIC -c -o $@ $< + + $(LIBRARY): $(OBJS) +- $(CC) -shared $(LDFLAGS) -Wl,-soname,$@.$(MAJOR) -o $@ $(OBJS) -ldl -lpthread ++ $(CC) -shared $(LDFLAGS) -Wl,-soname,$@.$(MAJOR) -o $@ $(OBJS) -lpthread + + $(APPS): $(LIBRARY) + $(CC) $(CFLAGS) $(LDFLAGS) -L. -o $@ src/$@/main.c -lseom $($@LIBS) +@@ -39,11 +45,11 @@ + + inst = install -m 755 -d $(DESTDIR)$(3); install -m $(1) $(2) $(DESTDIR)$(3)$(if $(4),/$(4)); + install: $(LIBRARY) $(APPS) seom.pc +- $(call inst,644,seom.pc,$(PREFIX)/$(LIBDIR)/pkgconfig) ++ $(call inst,644,seom.pc,$(PREFIX)/$(LIBDATADIR)/pkgconfig) + $(call inst,755,$(LIBRARY),$(PREFIX)/$(LIBDIR),$(LIBRARY).$(MAJOR)) + ln -sf $(LIBRARY).$(MAJOR) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(LIBRARY) + +- $(call inst,644,art/seom.svg,$(PREFIX)/share/seom,seom.svg) ++ $(call inst,644,art/seom.svg,$(DATADIR),seom.svg) + $(call inst,644,include/seom/*,$(PREFIX)/include/seom) + $(call inst,755,src/scripts/backup,$(PREFIX)/bin,seom-backup) + $(foreach app,$(APPS),$(call inst,755,$(app),$(PREFIX)/bin,seom-$(app))) |