File: Makefile

package info (click to toggle)
pike8.0 8.0.702-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 79,608 kB
  • sloc: ansic: 266,508; xml: 186,324; makefile: 3,537; sh: 1,731; cpp: 1,328; lisp: 655; awk: 441; asm: 242; objc: 240; pascal: 157; perl: 34; sed: 34
file content (83 lines) | stat: -rw-r--r-- 2,412 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83

BUILD=../../build/winpkg

GIMP_HOME = http://www.gimp.org/~tml/gimp/win32
GLIB_ARCH = glib-2.0.4-20020703.zip
GLIB_URL  = $(GIMP_HOME)/$(GLIB_ARCH)
ICONV_ARCH = libiconv-1.7.zip
ICONV_URL  = $(GIMP_HOME)/$(ICONV_ARCH)
INTL_ARCH = libintl-0.10.40-20020310.zip
INTL_URL  = $(GIMP_HOME)/$(INTL_ARCH)
GTK_ARCH  = gtk+-1.3.0-20020801.zip
GTK_URL   = $(GIMP_HOME)/$(GTK_ARCH)
Z_ARCH    = zlib-1.1.3.zip
Z_URL     = $(GIMP_HOME)/$(Z_ARCH)
PNG_ARCH  = libpng-1.2.0.zip
PNG_URL   = $(GIMP_HOME)/$(PNG_ARCH)
JPEG_ARCH = libjpeg-6b.zip
JPEG_URL  = $(GIMP_HOME)/$(JPEG_ARCH)
TIFF_ARCH = libtiff-3.5.7.zip
TIFF_URL  = $(GIMP_HOME)/$(TIFF_ARCH)
FREETYPE_ARCH = freetype-2.0.5-20020112.zip
FREETYPE_URL  = $(GIMP_HOME)/$(FREETYPE_ARCH)

dlls: glib gtk zlib libpng libjpeg libtiff freetype

glib: libiconv libintl $(BUILD)
	(cd $(BUILD) && wget $(GLIB_URL))
	mkdir $(BUILD)/tmp
	(cd $(BUILD)/tmp && unzip ../$(GLIB_ARCH) && mv lib/libglib-2.0-0.dll ..)
	(cd $(BUILD)/tmp && mv lib/libgmodule-2.0-0.dll ..)
	(cd $(BUILD)/tmp && mv lib/libgobject-2.0-0.dll ..)
	(cd $(BUILD)/tmp && mv lib/libgthread-2.0-0.dll ..)
	rm -r $(BUILD)/tmp
	rm $(BUILD)/$(GLIB_ARCH)

libiconv: $(BUILD)
	(cd $(BUILD) && wget $(ICONV_URL))
	(make extract ARCHIVE=$(ICONV_ARCH) FILE=lib/iconv.dll)

libintl: $(BUILD)
	(cd $(BUILD) && wget $(INTL_URL))
	(make extract ARCHIVE=$(INTL_ARCH) FILE=lib/libintl-1.dll)

gtk: $(BUILD)
	(cd $(BUILD) && wget $(GTK_URL))
	mkdir $(BUILD)/tmp
	(cd $(BUILD)/tmp && unzip ../$(GTK_ARCH) && mv lib/libgtk-0.dll ..)
	(cd $(BUILD)/tmp && mv lib/libgdk-0.dll ..)
	rm -r $(BUILD)/tmp
	rm $(BUILD)/$(GTK_ARCH)

zlib: $(BUILD)
	(cd $(BUILD) && wget $(Z_URL))
	(make extract ARCHIVE=$(Z_ARCH) FILE=lib/libz.dll)

libpng: $(BUILD)
	(cd $(BUILD) && wget $(PNG_URL))
	(make extract ARCHIVE=$(PNG_ARCH) FILE=lib/libpng-3.dll)

libjpeg: $(BUILD)
	(cd $(BUILD) && wget $(JPEG_URL))
	(make extract ARCHIVE=$(JPEG_ARCH) FILE=lib/libjpeg6b.dll)

libtiff: $(BUILD)
	(cd $(BUILD) && wget $(TIFF_URL))
	(make extract ARCHIVE=$(TIFF_ARCH) FILE=lib/libtiff.dll)

freetype: $(BUILD)
	(cd $(BUILD) && wget $(FREETYPE_URL))
	(make extract ARCHIVE=$(FREETYPE_ARCH) FILE=lib/libfreetype-6.dll)

extract:
	mkdir $(BUILD)/tmp
	(cd $(BUILD)/tmp && unzip ../$(ARCHIVE) && mv $(FILE) ..)
	rm -r $(BUILD)/tmp
	rm $(BUILD)/$(ARCHIVE)


$(BUILD): ../../build
	@test -d $(BUILD) || mkdir $(BUILD)

../../build:
	@test -d ../../build || mkdir ../../build