@@ -31,43 +31,37 @@ VERSION=2.0.33r3
31
31
# Command used to run Lua code
32
32
LUABIN =lua5.1
33
33
34
- # Path to the utility 'gdlib-config'. This may be changed to compile the
35
- # module with development versions of libgd.
36
- GDLIBCONFIG =gdlib-config
37
-
38
34
# Optimization for the brave of heart ;)
39
35
OMITFP =-fomit-frame-pointer
40
36
41
37
42
38
# ---------------------------------------------------------------------------
43
- # Automatic configuration using pkgconfig, gd-config and sed. These
44
- # lines should work on most Linux/Unix systems. If your system does not
45
- # have these programs you must comment out these lines and uncomment and
46
- # change the next ones.
39
+ # Automatic configuration using pkgconfig. These lines should work on most
40
+ # Linux/Unix systems. If your system does not have these programs you must
41
+ # comment out these lines and uncomment and change the next ones.
47
42
48
43
# Name of .pc file. "lua5.1" on Debian/Ubuntu
49
44
LUAPKG =lua5.1
50
45
OUTFILE =gd.so
51
46
52
47
CFLAGS =-O3 -Wall -fPIC $(OMITFP )
53
- CFLAGS+ =` $( GDLIBCONFIG ) --cflags ` ` pkg-config $( LUAPKG) --cflags `
48
+ CFLAGS+ =` pkg-config $( LUAPKG) --cflags `
54
49
CFLAGS+=-DVERSION =\"$(VERSION ) \"
55
50
56
- GDFEATURES =` $( GDLIBCONFIG) --features | sed -e " s/GD_/-DGD_/g" `
57
- LFLAGS =-shared ` $( GDLIBCONFIG) --ldflags` ` $( GDLIBCONFIG) --libs` -lgd
58
-
59
- INSTALL_PATH := ` $( LUABIN) -e' \
60
- for dir in package.cpath:gmatch("(/[^?;]+)?") do \
61
- io.write(dir) \
62
- os.exit(0) \
63
- end \
64
- os.exit(1) \
65
- ' `
51
+ GDFEATURES =-DGD_XPM -DGD_JPEG -DGD_FONTCONFIG -DGD_FREETYPE -DGD_PNG -DGD_GIF
52
+ LFLAGS =-shared ` pkg-config $( LUAPKG) --libs ` -lgd
66
53
54
+ INSTALL_PATH := ` pkg-config $( LUAPKG) --variable=INSTALL_CMOD `
67
55
68
56
69
57
# ---------------------------------------------------------------------------
70
58
# Manual configuration for systems without pkgconfig.
59
+ # WARNING: These instructions will only work on older versions of GD, since
60
+ # gdlib-config has been removed in favor of pkg-config.
61
+
62
+ # Path to the utility 'gdlib-config'. This may be changed to compile the
63
+ # module with development versions of libgd.
64
+ # GDLIBCONFIG=gdlib-config
71
65
72
66
# OUTFILE=gd.so
73
67
# CFLAGS=-O3 -Wall -fPIC $(OMITFP)
0 commit comments