summaryrefslogtreecommitdiff
path: root/homebrew/raine/.make.sh-auto
blob: 6f4f3087e48a3c90b46f6f6ca9ecd32c4a39a922 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pkg:setup
ENV.m32
ENV.prepend_create_path "PATH", buildpath/"bin"
ENV.append_to_cflags "-I#{buildpath}/include"
ENV.append "LDFLAGS", "-L#{buildpath}/lib"
ENV.prepend_path "PKG_CONFIG_PATH", buildpath/"lib/pkgconfig"
resources.each do |r|
r.stage do
if r.name == "sdl"
inreplace "src/video/quartz/SDL_QuartzVideo.h", /(CGDirectPaletteRef.+)$/, "#if (MAC_OS_X_VERSION_MIN_REQUIRED < 1070)\n\\1\n#endif"
elsif r.name == "sdl_ttf"
inreplace "SDL_ttf.c", "for ( row = 0; row < glyph->bitmap.rows; ++row ) {", "for ( row = 0; row < glyph->pixmap.rows; ++row ) {"
elsif r.name == "sdl_sound"
touch ["AUTHORS", "NEWS"]
File.rename "CHANGELOG", "ChangeLog"
autoreconf -ivf
end
args = configure_args(r.name)
args << "--prefix=#{buildpath}"
pkg:configure *args
make
make DESTDIR=${PKG_DEST} install