~ubuntu-branches/ubuntu/quantal/openmotif/quantal

« back to all changes in this revision

Viewing changes to config/cf/darwinLib.rules

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Bauer
  • Date: 2010-06-23 12:12:31 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100623121231-u89gxdp51sg9wjj2
Tags: 2.3.0-1
* New Maintainer (Closes: #379258) 
* Acknowledge NMU changes
* New upstream release (Closes: #494375)
* Get rid of security patches as they are already part of new upstream
  release (00-xpmvuln.openmotif.patch, 342092-CVE-2005-3964.patch)
* Bump Standards to 3.8.4
* Added {misc:Depends} to make the package lintian cleaner
* Fix weak-library-dev-dependency by adding ${binary:Version}) for the
  -dev Package of openmotif
* Let package depend on autotools-dev to use newer autotools-helper-files
* Work around an autoconf-bug (Gentoo-Bug #1475)
* Added Client-side anti-aliased fonts support via XFT
* Added UTF-8 and UTF8_STRING atom support
* Ability to show text and pixmaps in Label, LabelGadget and all
  derived widgets
* Support of PNG/JPEG image formats in the same way as XPM is supported
* Increase FILE_OFFSET_BITS to 64 to show files >2GB in file-selector
  Idea taken from Magne Oestlyngen (Closes: #288537)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
XCOMM $XFree86: xc/config/cf/darwinLib.rules,v 1.3 2001/09/13 01:28:57 torrey Exp $
 
2
/*
 
3
 * Darwin/Mac OS X shared library rules
 
4
 */
 
5
 
 
6
#ifndef UseElfFormat
 
7
#define UseElfFormat NO
 
8
#endif
 
9
#ifndef HasSharedLibraries
 
10
#define HasSharedLibraries YES
 
11
#endif
 
12
#ifndef ForceNormalLib
 
13
#define ForceNormalLib YES
 
14
#endif
 
15
 
 
16
#ifndef SharedDataSeparation
 
17
#define SharedDataSeparation NO
 
18
#endif
 
19
#ifndef SharedCodeDef
 
20
#define SharedCodeDef /**/
 
21
#endif
 
22
#ifndef SharedLibraryDef
 
23
#define SharedLibraryDef /**/
 
24
#endif
 
25
#ifndef ShLibIncludeFile
 
26
#define ShLibIncludeFile <darwinLib.tmpl>
 
27
#endif
 
28
#ifndef SharedLibraryLoadFlags
 
29
#define SharedLibraryLoadFlags -dynamiclib
 
30
#endif
 
31
#ifndef PositionIndependentCFlags
 
32
#define PositionIndependentCFlags -dynamic
 
33
#endif
 
34
#ifndef ExtraLoadFlags
 
35
#define ExtraLoadFlags /**/
 
36
#endif
 
37
 
 
38
/*
 
39
 * InstallSharedLibrary - generate rules to install the shared library.
 
40
 */
 
41
#ifndef InstallSharedLibrary
 
42
#define InstallSharedLibrary(libname,rev,dest)                          @@\
 
43
install:: Concat(lib,libname.rev.dylib)                                 @@\
 
44
        MakeDir($(DESTDIR)dest)                                         @@\
 
45
        $(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) Concat(lib,libname.rev.dylib) $(DESTDIR)dest @@\
 
46
        @MAJREV=`expr rev : '\(.*\)\.'`; \                              @@\
 
47
          set -x; $(RM) Concat($(DESTDIR)dest/lib,libname.$$MAJREV.dylib) && \ @@\
 
48
          $(LN) Concat(lib,libname.rev.dylib) Concat($(DESTDIR)dest/lib,libname.$$MAJREV.dylib) @@\
 
49
        @if $(SOSYMLINK); then (set -x; \                               @@\
 
50
          $(RM) Concat($(DESTDIR)dest/lib,libname.dylib); \             @@\
 
51
          $(LN) Concat(lib,libname.rev.dylib) Concat($(DESTDIR)dest/lib,libname.dylib)); fi
 
52
#endif /* InstallSharedLibrary */
 
53
 
 
54
/*
 
55
 * SharedLibraryTarget - generate rules to create a shared library;
 
56
 * build it into a different name so that we do not hose people by having
 
57
 * the library gone for long periods.
 
58
 */
 
59
#ifndef SharedLibraryTarget
 
60
#ifdef UseInstalled
 
61
#define LinkBuildSonameLibrary(lib) true
 
62
#else
 
63
#define LinkBuildSonameLibrary(lib) (RemoveFile($(BUILDLIBDIR)/lib); \
 
64
        cd $(BUILDLIBDIR); $(LN) $(BUILDINCTOP)/$(CURRENT_DIR)/lib .)
 
65
#endif
 
66
 
 
67
#define SharedLibraryTarget(libname,rev,solist,down,up)                 @@\
 
68
AllTarget(Concat(lib,libname.rev.dylib))                                @@\
 
69
                                                                        @@\
 
70
Concat(lib,libname.rev.dylib):  solist $(EXTRALIBRARYDEPS)              @@\
 
71
        $(RM) $@~                                                       @@\
 
72
        @MAJREV=`expr rev : '\(.*\)\.'`; \                              @@\
 
73
          INSTALLNAME=Concat(lib,libname.$$MAJREV.dylib); \             @@\
 
74
          set -x; (cd down; $(CC) -o up/$@~ $(SHLIBLDFLAGS) -install_name $(USRLIBDIR)/$$INSTALLNAME -current_version rev -compatibility_version rev solist $(REQUIREDLIBS)); \ @@\
 
75
          $(RM) $$INSTALLNAME; $(LN) $@ $$INSTALLNAME; \                @@\
 
76
          LinkBuildSonameLibrary($$INSTALLNAME)                         @@\
 
77
        $(RM) $@                                                        @@\
 
78
        $(MV) $@~ $@                                                    @@\
 
79
        @if $(SOSYMLINK); then (set -x; \                               @@\
 
80
          $(RM) Concat(lib,libname.dylib); \                            @@\
 
81
          $(LN) $@ Concat(lib,libname.dylib)); fi                       @@\
 
82
        LinkBuildLibrary($@)                                            @@\
 
83
                                                                        @@\
 
84
clean::                                                                 @@\
 
85
        @MAJREV=`expr rev : '\(.*\)\.'`; \                              @@\
 
86
        set -x; $(RM) Concat(lib,libname.$$MAJREV.dylib)                @@\
 
87
        $(RM) Concat(lib,libname.rev.dylib) Concat(lib,libname.dylib)
 
88
 
 
89
#endif /* SharedLibraryTarget */
 
90
 
 
91
/*
 
92
 * SharedDepLibraryTarget - generate rules to create a shared library.
 
93
 */
 
94
#ifndef SharedDepLibraryTarget
 
95
#ifdef UseInstalled
 
96
#ifndef LinkBuildSonameLibrary
 
97
#define LinkBuildSonameLibrary(lib) true
 
98
#endif
 
99
#else
 
100
#ifndef LinkBuildSonameLibrary
 
101
#define LinkBuildSonameLibrary(lib) (RemoveFile($(BUILDLIBDIR)/lib); \
 
102
        cd $(BUILDLIBDIR); $(LN) $(BUILDINCTOP)/$(CURRENT_DIR)/lib .)
 
103
#endif
 
104
#endif
 
105
 
 
106
#define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up)      @@\
 
107
AllTarget(Concat(lib,libname.rev.dylib))                                @@\
 
108
                                                                        @@\
 
109
Concat(lib,libname.rev.dylib):  deplist $(EXTRALIBRARYDEPS)             @@\
 
110
        $(RM) $@~                                                       @@\
 
111
        @MAJREV=`expr rev : '\(.*\)\.'`; \                              @@\
 
112
          INSTALLNAME=Concat(lib,libname.$$MAJREV.dylib); \             @@\
 
113
          set -x; (cd down; $(CC) -o up/$@~ $(SHLIBLDFLAGS) -install_name $(USRLIBDIR)/$$INSTALLNAME -current_version rev -compatibility_version rev solist $(REQUIREDLIBS)); \ @@\
 
114
          $(RM) $$INSTALLNAME; $(LN) $@ $$INSTALLNAME; \                @@\
 
115
          LinkBuildSonameLibrary($$INSTALLNAME)                         @@\
 
116
        $(RM) $@                                                        @@\
 
117
        $(MV) $@~ $@                                                    @@\
 
118
        @if $(SOSYMLINK); then (set -x; \                               @@\
 
119
          $(RM) Concat(lib,libname.dylib); \                            @@\
 
120
          $(LN) $@ Concat(lib,libname.dylib)); fi                       @@\
 
121
        LinkBuildLibrary($@)                                            @@\
 
122
                                                                        @@\
 
123
clean::                                                                 @@\
 
124
        @MAJREV=`expr rev : '\(.*\)\.'`; \                              @@\
 
125
        set -x; $(RM) Concat(lib,libname.$$MAJREV.dylib)                @@\
 
126
        $(RM) Concat(lib,libname.rev.dylib) Concat(lib,libname.dylib)
 
127
 
 
128
#endif /* SharedDepLibraryTarget */
 
129
 
 
130
#ifndef SharedDepModuleTarget
 
131
#define SharedDepModuleTarget(name,deps,solist)                         @@\
 
132
AllTarget(name)                                                         @@\
 
133
                                                                        @@\
 
134
name: deps                                                              @@\
 
135
        $(RM) $@~                                                       @@\
 
136
        $(CC) -o $@~ $(SHLIBLDFLAGS) solist $(REQUIREDLIBS)             @@\
 
137
        $(RM) $@                                                        @@\
 
138
        $(MV) $@~ $@                                                    @@\
 
139
                                                                        @@\
 
140
clean::                                                                 @@\
 
141
        $(RM) name
 
142
 
 
143
#endif /* SharedDepModuleTarget */
 
144
 
 
145
/*
 
146
 * SharedLibraryDataTarget - generate rules to create shlib data file;
 
147
 */
 
148
#ifndef SharedLibraryDataTarget
 
149
#define SharedLibraryDataTarget(libname,rev,salist)
 
150
#endif /* SharedLibraryDataTarget */
 
151
 
 
152
#ifndef InstallSharedLibraryData
 
153
#define InstallSharedLibraryData(libname,rev,dest)
 
154
#endif /* InstallSharedLibraryData */