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