Add libglade2 needed for virt-viewer
[fedora-mingw.git] / pdcurses / mingw32-pdcurses-3.4-build.patch
1 --- PDCurses-3.4/win32/mingwin32.mak.orig       2008-09-25 15:30:14.000000000 +0100
2 +++ PDCurses-3.4/win32/mingwin32.mak    2008-09-25 15:43:50.000000000 +0100
3 @@ -30,8 +30,8 @@
4  
5  CFLAGS += -I$(PDCURSES_SRCDIR)
6  
7 -BASEDEF                = $(PDCURSES_SRCDIR)\exp-base.def
8 -WIDEDEF                = $(PDCURSES_SRCDIR)\exp-wide.def
9 +BASEDEF                = $(PDCURSES_SRCDIR)/exp-base.def
10 +WIDEDEF                = $(PDCURSES_SRCDIR)/exp-wide.def
11  
12  DEFDEPS                = $(BASEDEF)
13  
14 @@ -50,7 +50,7 @@
15  
16  ifeq ($(DLL),Y)
17         CFLAGS += -DPDC_DLL_BUILD
18 -       LIBEXE = gcc $(DEFFILE)
19 +       LIBEXE = i686-pc-mingw32-gcc $(DEFFILE)
20         LIBFLAGS = -Wl,--out-implib,pdcurses.a -shared -o
21         LIBCURSES = pdcurses.dll
22         LIBDEPS = $(LIBOBJS) $(PDCOBJS) $(DEFFILE)
23 @@ -70,24 +70,24 @@
24  libs:  $(LIBCURSES)
25  
26  clean:
27 -       -del *.o
28 -       -del *.exe
29 -       -del $(CLEAN)
30 +       -rm *.o
31 +       -rm *.exe
32 +       -rm $(CLEAN)
33  
34  demos: $(DEMOS)
35 -       strip *.exe
36 +       i686-pc-mingw32-strip *.exe
37  
38  $(DEFFILE): $(DEFDEPS)
39         echo LIBRARY pdcurses > $@
40         echo EXPORTS >> $@
41 -       type $(BASEDEF) >> $@
42 +       cat $(BASEDEF) >> $@
43  ifeq ($(WIDE),Y)
44 -       type $(WIDEDEF) >> $@
45 +       cat $(WIDEDEF) >> $@
46  endif
47  
48  $(LIBCURSES) : $(LIBDEPS)
49         $(LIBEXE) $(LIBFLAGS) $@ $?
50 -       -copy pdcurses.a panel.a
51 +       -cp pdcurses.a panel.a
52  
53  $(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS)
54  $(PDCOBJS) : $(PDCURSES_WIN_H)