forked from pool/libXbgi
104 lines
3.4 KiB
Diff
104 lines
3.4 KiB
Diff
|
From: Jan Engelhardt <jengelh@inai.de>
|
||
|
Date: 2013-04-30 16:20:06.862768841 +0200
|
||
|
|
||
|
build: use automake as build system
|
||
|
|
||
|
---
|
||
|
Makefile.am | 4 ++++
|
||
|
Using.txt | 2 +-
|
||
|
configure.ac | 9 +++++++++
|
||
|
m4/.gitignore | 2 ++
|
||
|
src/Makefile.am | 42 ++++++++++++++++++++++++++++++++++++++++++
|
||
|
5 files changed, 58 insertions(+), 1 deletion(-)
|
||
|
|
||
|
Index: xbgi/Makefile.am
|
||
|
===================================================================
|
||
|
--- /dev/null
|
||
|
+++ xbgi/Makefile.am
|
||
|
@@ -0,0 +1,4 @@
|
||
|
+# -*- Makefile -*-
|
||
|
+
|
||
|
+ACLOCAL_AMFLAGS = -I m4
|
||
|
+SUBDIRS = src
|
||
|
Index: xbgi/Using.txt
|
||
|
===================================================================
|
||
|
--- xbgi.orig/Using.txt
|
||
|
+++ xbgi/Using.txt
|
||
|
@@ -11,7 +11,7 @@ Nearly all programs can be compiled with
|
||
|
|
||
|
To compile a program against libXbgi:
|
||
|
|
||
|
- gcc -o program program.c /usr/lib/libXbgi.a -lX11 -lm
|
||
|
+ gcc -o program program.c -lXbgi
|
||
|
|
||
|
Most old programs that use the original BGI library should compile
|
||
|
with no modification. For instance,
|
||
|
Index: xbgi/configure.ac
|
||
|
===================================================================
|
||
|
--- /dev/null
|
||
|
+++ xbgi/configure.ac
|
||
|
@@ -0,0 +1,9 @@
|
||
|
+AC_INIT([xbgi], [362])
|
||
|
+AC_CONFIG_AUX_DIR([build-aux])
|
||
|
+AC_CONFIG_MACRO_DIR([m4])
|
||
|
+AC_PROG_CC
|
||
|
+AM_INIT_AUTOMAKE([foreign subdir-objects tar-pax])
|
||
|
+LT_INIT
|
||
|
+PKG_CHECK_MODULES([x11], [x11])
|
||
|
+AC_CONFIG_FILES([Makefile src/Makefile])
|
||
|
+AC_OUTPUT
|
||
|
Index: xbgi/m4/.gitignore
|
||
|
===================================================================
|
||
|
--- /dev/null
|
||
|
+++ xbgi/m4/.gitignore
|
||
|
@@ -0,0 +1,2 @@
|
||
|
+/libtool.m4
|
||
|
+/lt*.m4
|
||
|
Index: xbgi/src/Makefile.am
|
||
|
===================================================================
|
||
|
--- /dev/null
|
||
|
+++ xbgi/src/Makefile.am
|
||
|
@@ -0,0 +1,42 @@
|
||
|
+# -*- Makefile -*-
|
||
|
+
|
||
|
+AM_CPPFLAGS = ${x11_CFLAGS}
|
||
|
+AM_CFLAGS = -Wall
|
||
|
+
|
||
|
+lib_LTLIBRARIES = libXbgi.la
|
||
|
+
|
||
|
+libXbgi_la_SOURCES = \
|
||
|
+ _graphfreemem.c _graphgetmem.c arc.c bar.c bar3d.c circle.c\
|
||
|
+ cleardevice.c clearviewport.c closegraph.c detectgraph.c drawpoly.c\
|
||
|
+ ellipse.c fillellipse.c fillpoly.c floodfill.c\
|
||
|
+ getarccoords.c getaspectratio.c getbkcolor.c getch.c getcolor.c\
|
||
|
+ getdate.c getdefaultpalette.c getdrivername.c getfillpattern.c\
|
||
|
+ getfillsettings.c getgraphmode.c getimage.c getlinesettings.c\
|
||
|
+ getmaxcolor.c getmaxmode.c getmaxx.c getmaxy.c getmodename.c\
|
||
|
+ getmoderange.c getpalette.c getpalettesize.c getpixel.c\
|
||
|
+ gettextsettings.c getviewsettings.c getx.c gety.c graphdefaults.c\
|
||
|
+ grapherrormsg.c graphresult.c imagesize.c initgraph.c\
|
||
|
+ installuserdriver.c installuserfont.c kbhit.c line.c linerel.c lineto.c\
|
||
|
+ moverel.c moveto.c outtext.c outtextxy.c pieslice.c putimage.c\
|
||
|
+ putpixel.c rectangle.c registerbgidriver.c registerbgifont.c\
|
||
|
+ restorecrtmode.c rotated.c sector.c setactivepage.c setallpalette.c\
|
||
|
+ setaspectratio.c setbkcolor.c setcolor.c setfillpattern.c\
|
||
|
+ setfillstyle.c setgraphbufsize.c setgraphmode.c setlinestyle.c\
|
||
|
+ setpalette.c setrgbpalette.c settextjustify.c settextstyle.c\
|
||
|
+ setusercharsize.c setviewport.c setvisualpage.c setwritemode.c\
|
||
|
+ textheight.c textwidth.c delay.c\
|
||
|
+ COLOR.c getmaxheight.c getmaxwidth.c getmouseclick.c\
|
||
|
+ initwindow.c mouseclick.c mousex.c mousey.c _putpixel.c\
|
||
|
+ IS_BGI_COLOR.c IS_RGB_COLOR.c setrgbcolor.c setbkrgbcolor.c\
|
||
|
+ getevent.c converttorgb.c
|
||
|
+libXbgi_la_LDFLAGS = -Wl,-z,defs
|
||
|
+libXbgi_la_LIBADD = -lm ${x11_LIBS}
|
||
|
+
|
||
|
+EXTRA_DIST = xkbhit.c
|
||
|
+
|
||
|
+include_HEADERS = graphics.h
|
||
|
+
|
||
|
+noinst_PROGRAMS = demo
|
||
|
+
|
||
|
+demo_SOURCES = demo.c
|
||
|
+demo_LDADD = libXbgi.la
|