Blame SOURCES/SDL-1.2.15-add_sdl_config_man.patch

dcf52f
diff -r 91ad7b43317a Makefile.in
dcf52f
--- a/Makefile.in	Sun Jun 02 20:48:53 2013 +0600
dcf52f
+++ b/Makefile.in	Wed Jun 19 10:34:27 2013 +0200
dcf52f
@@ -98,6 +98,11 @@
dcf52f
 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)/pkgconfig
dcf52f
 	$(INSTALL) -m 644 sdl.pc $(DESTDIR)$(libdir)/pkgconfig
dcf52f
 install-man:
dcf52f
+	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(mandir)/man1
dcf52f
+	for src in $(srcdir)/docs/man1/*.1; do \
dcf52f
+	    file=`echo $$src | sed -e 's|^.*/||'`; \
dcf52f
+	    $(INSTALL) -m 644 $$src $(DESTDIR)$(mandir)/man1/$$file; \
dcf52f
+	done
dcf52f
 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(mandir)/man3
dcf52f
 	for src in $(srcdir)/docs/man3/*.3; do \
dcf52f
 	    file=`echo $$src | sed -e 's|^.*/||'`; \
dcf52f
@@ -120,6 +125,10 @@
dcf52f
 	rm -f $(DESTDIR)$(datadir)/aclocal/sdl.m4
dcf52f
 	rm -f $(DESTDIR)$(libdir)/pkgconfig/sdl.pc
dcf52f
 uninstall-man:
dcf52f
+	for src in $(srcdir)/docs/man1/*.1; do \
dcf52f
+	    file=`echo $$src | sed -e 's|^.*/||'`; \
dcf52f
+	    rm -f $(DESTDIR)$(mandir)/man1/$$file; \
dcf52f
+	done
dcf52f
 	for src in $(srcdir)/docs/man3/*.3; do \
dcf52f
 	    file=`echo $$src | sed -e 's|^.*/||'`; \
dcf52f
 	    rm -f $(DESTDIR)$(mandir)/man3/$$file; \
dcf52f
diff -r 91ad7b43317a docs/man1/sdl-config.1
dcf52f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
dcf52f
+++ b/docs/man1/sdl-config.1	Wed Jun 19 10:34:27 2013 +0200
dcf52f
@@ -0,0 +1,60 @@
dcf52f
+.TH sdl-config 1 "2013-06-19" "SDL 1.2"
dcf52f
+.SH NAME
dcf52f
+sdl-config \- script to get information about the installed version of SDL
dcf52f
+.SH SYNOPSIS
dcf52f
+\fBsdl-config
dcf52f
+[\~--prefix[=\fIDIR\fP]\~]
dcf52f
+[\~--exec-prefix[=\fIDIR\fP]\~]
dcf52f
+[\~--version\~] [\~--cflags\~] [\~--libs\~] [\~--static-libs\~]\fR
dcf52f
+.SH DESCRIPTION
dcf52f
+.B sdl-config
dcf52f
+is a tool that is used to configure and determine the compiler and linker
dcf52f
+flags that should be used to compile and link programs, and libraries, and
dcf52f
+plugins that use SDL.  It is also used internally by the m4 macros that are
dcf52f
+included with SDL.
dcf52f
+.SH OPTIONS
dcf52f
+.TP
dcf52f
+.B --cflags
dcf52f
+Print the compiler flags that are necessary to compile a program or library
dcf52f
+that uses SDL.
dcf52f
+.TP
dcf52f
+.BI --exec-prefix= DIR
dcf52f
+If specified, use
dcf52f
+.I DIR
dcf52f
+instead of the installation exec prefix that SDL was build with when computing
dcf52f
+the output for the --exec-prefix option. This option must be specified before
dcf52f
+any of the --cflags, and --libs options.
dcf52f
+.TP
dcf52f
+.B --libs
dcf52f
+Print the linker flags that are necessary to link a program that uses SDL.
dcf52f
+.TP
dcf52f
+.BI --prefix= DIR
dcf52f
+If specified, use DIR instead of the installation prefix that SDL was built
dcf52f
+with when computing the output for the --prefix, and --exec-prefix options.
dcf52f
+This option is also used for the exec prefix if --exec-prefix was not
dcf52f
+specified. This option must be specified before any of the --cflags, and
dcf52f
+--libs options.
dcf52f
+.TP
dcf52f
+.B --static-libs
dcf52f
+Print the linker flags that are necessary to statically link a program that uses SDL.
dcf52f
+.TP
dcf52f
+.B --version
dcf52f
+Prints the currently installed version of SDL on standard output.
dcf52f
+.SH EXAMPLES
dcf52f
+.TP
dcf52f
+gcc -o main.o $(sdl-config --cflags) main.c
dcf52f
+is how you might use
dcf52f
+.B sdl-config
dcf52f
+to compile a C source file for an executable program.
dcf52f
+.TP
dcf52f
+gcc -o my_app $(sdl-config --libs) main.o util.o
dcf52f
+is how you might use
dcf52f
+.B sdl-config
dcf52f
+to link compiled objects into an executable program.
dcf52f
+.SH AUTHOR
dcf52f
+The Simple DirectMedia Layer (SDL) library was written by Sam Lantinga.
dcf52f
+.PP
dcf52f
+This manual page was written by Branden Robinson, originally for Progeny
dcf52f
+Linux Systems, Inc., and the Debian Project.
dcf52f
+.PP
dcf52f
+This manual page was modified by Petr Pisar to match original SDL distribution.