~ubuntu-branches/ubuntu/wily/sgt-puzzles/wily

« back to all changes in this revision

Viewing changes to Recipe

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-10-01 22:10:50 UTC
  • mfrom: (1.2.14)
  • Revision ID: package-import@ubuntu.com-20141001221050-a83g6j14c9dal6ek
Tags: 20140928.r10274-1
* New upstream version
  - Version scheme is now date-based
  - Fix a failure to warn about non-unique rows/columns in non-square Unruly
    grids (Closes: #718354)
* Add Debian menu entries for Range and Signpost
* debian/watch: Delete, as new versions are date-based and there is
  currently no obvious way to find the last date changed
* Disable 304_combine-binaries.diff which no longer applies
* Build using autotools
  - Drop patches 301_fix-install-dirs.diff, 305_no-werror.diff
* Exclude puzzles.chm from orig tarball because it requires non-free tools
  to regenerate from source
* Update policy version to 3.9.6; no changes required

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
!name puzzles
10
10
 
11
 
!makefile gtk Makefile
 
11
!makefile gtk Makefile.gtk
 
12
!makefile am Makefile.am
12
13
!makefile vc Makefile.vc
13
14
!makefile wce Makefile.wce
14
15
!makefile cygwin Makefile.cyg
23
24
         + user32.lib gdi32.lib comctl32.lib comdlg32.lib winspool.lib
24
25
WINDOWS  = windows WINDOWS_COMMON
25
26
COMMON   = midend drawing misc malloc random version
26
 
GTK      = gtk[COMBINED] printing ps
 
27
GTK      = gtk printing ps
27
28
# Objects needed for auxiliary command-line programs.
28
29
STANDALONE = nullfe random misc malloc
29
30
 
39
40
 * it directly, or the changes will be lost next time mkfiles.pl runs.
40
41
 * Instead, edit Recipe and/or its *.R subfiles.
41
42
 */
42
 
#define COMBINED
43
43
#include "puzzles.h"
44
44
#define GAMELIST(A) \
45
45
!end
50
50
# Then we finish up list.c as follows:
51
51
!begin >list.c
52
52
 
53
 
#define DECL(x)                                         \
54
 
extern const game x;                                    \
55
 
extern const char *const *const x##_xpm_icons[];        \
56
 
extern const int x##_n_xpm_icons;
57
 
#define REF(x) { #x, &x, x##_xpm_icons, &x##_n_xpm_icons },
 
53
#define DECL(x) extern const game x;
 
54
#define REF(x) &x,
58
55
GAMELIST(DECL)
59
 
const gameindex gamelist[] = { GAMELIST(REF) };
 
56
const game *gamelist[] = { GAMELIST(REF) };
60
57
const int gamecount = lenof(gamelist);
61
58
!end
62
59
 
96
93
        rm -f raw.dmg devicename
97
94
!end
98
95
 
99
 
# Gtk unified application containing all the puzzles.
100
 
puzzles  : [X] GTK COMMON ALL ALL_ICONS
101
 
!begin gtk
102
 
%-icon.o : override CFLAGS += -Dxpm_icons=$(@:%-icon.o=%)_xpm_icons -Dn_xpm_icons=$(@:%-icon.o=%)_n_xpm_icons
103
 
!end
104
 
 
105
 
# Version management.
106
 
!begin vc
107
 
version.obj: *.c *.h
108
 
        cl $(VER) $(CFLAGS) /c version.c
109
 
!end
110
 
!specialobj vc version
111
 
!begin wce
112
 
version.obj: *.c *.h
113
 
        $(CC) $(VER) $(CFLAGS) /c version.c
114
 
!end
115
 
!specialobj wce version
116
 
!begin cygwin
117
 
version.o: FORCE;
118
 
FORCE:
119
 
        $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c version.c
120
 
!end
121
 
!specialobj cygwin version
122
 
# For Unix, we also need the gross MD5 hack that causes automatic
123
 
# version number selection in release source archives.
124
 
!begin gtk
125
 
version.o: version.c version2.def
126
 
        $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version2.def` -c version.c
127
 
version2.def: FORCE
128
 
        if test -z "$(VER)" && test -f manifest && md5sum -c manifest; then \
129
 
                cat version.def > version2.def.new; \
130
 
        elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \
131
 
                echo "-DREVISION=`svnversion .`" >version2.def.new; \
132
 
        else \
133
 
                echo "$(VER)" >version2.def.new; \
134
 
        fi && \
135
 
        if diff -q version2.def.new version2.def; then \
136
 
                rm version2.def.new; \
137
 
        else \
138
 
                mv version2.def.new version2.def; \
139
 
        fi
140
 
.PHONY: FORCE
141
 
!end
142
 
!specialobj gtk version
143
 
!begin nestedvm
144
 
version.o: version.c version2.def
145
 
        $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version2.def` -c version.c
146
 
version2.def: FORCE
147
 
        if test -z "$(VER)" && test -f manifest && md5sum -c manifest; then \
148
 
                cat version.def > version2.def.new; \
149
 
        elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \
150
 
                echo "-DREVISION=`svnversion .`" >version2.def.new; \
151
 
        else \
152
 
                echo "$(VER)" >version2.def.new; \
153
 
        fi && \
154
 
        if diff -q version2.def.new version2.def; then \
155
 
                rm version2.def.new; \
156
 
        else \
157
 
                mv version2.def.new version2.def; \
158
 
        fi
159
 
.PHONY: FORCE
160
 
!end
161
 
!specialobj nestedvm version
162
 
# For OS X, this is made more fiddly by the fact that we don't have
163
 
# md5sum readily available. We do, however, have `md5 -r' which
164
 
# generates _nearly_ the same output, but it has no check function.
165
 
!begin osx
166
 
version.ppc.o: version.c version2.def
167
 
        $(CC) -arch ppc $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version2.def` -c version.c -o $@
168
 
version.i386.o: version.c version2.def
169
 
        $(CC) -arch i386 $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version2.def` -c version.c -o $@
170
 
version2.def: FORCE
171
 
        if test -z "$(VER)" && test -f manifest && (md5 -r `awk '{print $$2}' manifest` | diff -w manifest -); then \
172
 
                cat version.def > version2.def.new; \
173
 
        elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \
174
 
                echo "-DREVISION=`svnversion .`" >version2.def.new; \
175
 
        else \
176
 
                echo "$(VER)" >version2.def.new; \
177
 
        fi && \
178
 
        if diff -q version2.def.new version2.def; then \
179
 
                rm version2.def.new; \
180
 
        else \
181
 
                mv version2.def.new version2.def; \
182
 
        fi
183
 
.PHONY: FORCE
184
 
!end
185
 
!specialobj osx version
 
96
!begin am
 
97
bin_PROGRAMS = $(GAMES)
 
98
GTK_CFLAGS += -DSHAREDIR="\"$(datarootdir)\""
 
99
!end
 
100
!begin am_begin
 
101
GAMES =
 
102
!end
186
103
 
187
104
# make install for Unix.
188
105
!begin gtk
189
106
install:
190
 
        mkdir -p $(DESTDIR)$(libdir)/sgt-puzzles
191
 
        $(INSTALL_PROGRAM) -m 755 puzzles \
192
 
                $(DESTDIR)$(libdir)/sgt-puzzles/puzzles
193
107
        for i in $(GAMES); do \
194
 
                ln -s $(libdir)/sgt-puzzles/puzzles $(DESTDIR)$(gamesdir)/$(BINPREFIX)$$i \
 
108
                $(INSTALL_PROGRAM) -m 755 $(BINPREFIX)$$i $(DESTDIR)$(gamesdir)/$(BINPREFIX)$$i \
195
109
                || exit 1; \
196
110
        done
197
111
!end