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