forwarding fix compiling ZunePaint on 64bit (and with certain compilers where cmp_nod...
[AROS-Ports.git] / text / polyglotman / mmakefile.src
blob0d9ec0ef3f535f5b0c58d1212417eb989dc9642e
1 # $Id$
3 include $(SRCDIR)/config/aros-contrib.cfg
5 #MM- ports-text : ports-text-polyglotman
7 #MM  ports-text-polyglotman : includes linklibs ports-text-polyglotman-fetch \
8 #MM  ports-text-polyglotman-contrib ports-text-polyglotman-cpy
10 #MM  ports-text-polyglotman-contrib : ports-text-polyglotman-fetch
12 #MM  ports-text-polyglotman-cpy : ports-text-polyglotman-fetch
14 #MM  ports-text-polyglotman-quick : ports-text-polyglotman-fetch
16 REPOSITORIES := sf://polyglotman
17 ARCHBASE     := rman-3.2
18 TARGETDIR    := $(AROS_CONTRIB)/Utilities/Text/PolyglotMan
20 # list of valid volume numbers and letters
21 # you can also set these at runtime with -V
22 VOLLIST := '1:2:3:4:5:6:7:8:9:o:l:n:p'
23 # SCO Unix has expanded set of volume letters
24 #VOLLIST = '1:2:3:4:5:6:7:8:9:o:l:n:p:C:X:S:L:M:F:G:A:H'
25 # SGI and UnixWare 2.0
26 #VOLLIST = '1:2:3:4:5:6:7:8:9:o:l:n:p:D'
28 # the printf strings used to set the HTML <TITLE> and
29 # to set URL hyperlinks to referenced manual pages
30 # can be defined at runtime.  The defaults are defined below.
31 # The first %s parameter is the manual page name,
32 # the second the volume/section number.
33 # you can set these at runtime with -l and -r, respectively
34 MANTITLEPRINTF := '%s(%s) manual page'
36 # relative link to pregenerated file in same directory
37 MANREFPRINTF := '%s.%s'
39 NOWARN_FLAGS := -Wno-comment $(NOWARN_UNUSED_VARIABLE) \
40     $(NOWARN_UNUSED_BUT_SET_VARIABLE) $(NOWARN_NONNULL_COMPARE) \
41     $(NOWARN_INCOMPAT_POINTER_TYPES) $(NOWARN_DISCARDED_QUALIFIERS) $(NOWARN_MISLEADING_INDENTATION)
42 USER_CFLAGS  := $(NOWARN_FLAGS) -DVOLLIST=\"$(VOLLIST)\" -DMANTITLEPRINTF=\"$(MANTITLEPRINTF)\" -DMANREFPRINTF=\"$(MANREFPRINTF)\" -DPOLYGLOTMANVERSION=\"3.2\"
44 ifneq ("","$(strip $(WARN_ERROR))")
45 CONFIG_CFLAGS := $(subst $(WARN_ERROR),,$(CONFIG_CFLAGS))
46 endif
48 FILES := $(PORTSDIR)/polyglotman/$(ARCHBASE)/rman
50 %build_prog mmake=ports-text-polyglotman progname=rman \
51     files=$(FILES) targetdir=$(TARGETDIR)
53 %fetch mmake=ports-text-polyglotman-fetch archive=$(ARCHBASE) destination=$(PORTSDIR)/polyglotman \
54     location=$(PORTSSOURCEDIR) archive_origins=$(REPOSITORIES) suffixes="tar.gz" \
55     patches_specs=$(ARCHBASE)-aros.diff:$(ARCHBASE):-p1
57 %copy_dir_recursive mmake=ports-text-polyglotman-contrib src=$(PORTSDIR)/polyglotman/$(ARCHBASE)/contrib \
58     dst=$(TARGETDIR)/Contrib
60 CPYFILES := CHANGES MANIFEST README-rman.txt rman.1 rman.html
61 %copy_files_q mmake=ports-text-polyglotman-cpy files=$(CPYFILES) src=$(PORTSDIR)/polyglotman/$(ARCHBASE) dst=$(TARGETDIR)
63 %common