home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / ImageMagick-4.0.6.tar.gz / ImageMagick-4.0.6.tar / ImageMagick-4.0.6 / Magick.tmpl < prev    next >
Text File  |  1998-05-04  |  6KB  |  199 lines

  1. #ifndef XCOMM
  2. #define XCOMM #
  3. #endif
  4.  
  5. XCOMM ImageMagick Imakefile info.  This contains any special redefinitions.
  6. XCOMM
  7. XCOMM Copyright 1998 E. I. du Pont de Nemours and Company
  8. XCOMM
  9. XCOMM Permission is hereby granted, free of charge, to any person obtaining a
  10. XCOMM copy of this software and associated documentation files ("ImageMagick"),
  11. XCOMM to deal in ImageMagick without restriction, including without limitation
  12. XCOMM the rights to use, copy, modify, merge, publish, distribute, sublicense,
  13. XCOMM and/or sell copies of ImageMagick, and to permit persons to whom the
  14. XCOMM ImageMagick is furnished to do so, subject to the following conditions:
  15. XCOMM
  16. XCOMM The above copyright notice and this permission notice shall be included in
  17. XCOMM all copies or substantial portions of ImageMagick.
  18. XCOMM
  19. XCOMM The software is provided "as is", without warranty of any kind, express or
  20. XCOMM implied, including but not limited to the warranties of merchantability,
  21. XCOMM fitness for a particular purpose and noninfringement.  In no event shall
  22. XCOMM E. I. du Pont de Nemours and Company be liable for any claim, damages or
  23. XCOMM other liability, whether in an action of contract, tort or otherwise,
  24. XCOMM arising from, out of or in connection with ImageMagick or the use or other
  25. XCOMM dealings in ImageMagick.
  26. XCOMM
  27. XCOMM Except as contained in this notice, the name of the E. I. du Pont de
  28. XCOMM Nemours and Company shall not be used in advertising or otherwise to
  29. XCOMM promote the sale, use or other dealings in ImageMagick without prior
  30. XCOMM written authorization from the E. I. du Pont de Nemours and Company.
  31. XCOMM
  32.  
  33. XCOMM Define HasLZW to enable LZW compression within ImageMagick.  Define
  34. XCOMM HasShape if your X server supports the Shape Extension and
  35. XCOMM HasSharedMemory for the Shared Memory Extension.
  36. XCOMM
  37. #ifdef RsArchitecture
  38. XCOMM EXTENSIONS_DEFINES= -DHasLZW -DHasShape
  39. #else
  40. XCOMM EXTENSIONS_DEFINES= -DHasLZW -DHasShape -DHasSharedMemory
  41. #endif
  42.  
  43. XCOMM Set DoSharedLib to HasSharedLibraries to build ImageMagick with shared
  44. XCOMM libraries.
  45. XCOMM
  46. XCOMM #define DoSharedLib  HasSharedLibraries
  47.  
  48. XCOMM Define the location of the X11 RGB color database.
  49. XCOMM
  50. XCOMM DATABASE_DEFINES= -DRGBColorDatabase=\"/usr/openwin/lib/X11/rgb.txt\"
  51.  
  52. XCOMM By default, the maximum color value is 255.  To increase the maximum to
  53. XCOMM 65535 define:
  54. XCOMM
  55. XCOMM QUANTUM_DEFINES= -DQuantumLeap
  56.  
  57. XCOMM If your system does not have /usr/include/dirent.h, define:
  58. XCOMM
  59. XCOMM DIRENT_DEFINES= -DHAVE_SYS_DIR_H
  60.  
  61. XCOMM Define HasDPS if your X server supports the Display Postscript
  62. XCOMM extension (and you don't have Ghostscript installed).  If you have one
  63. XCOMM of these option plug-ins, uncomment the respective define.  Make sure
  64. XCOMM the path names are correct.  See README for more details.
  65. XCOMM
  66. XCOMM #define HasDPS
  67. XCOMM #define HasFPX
  68. XCOMM #define HasHDF
  69. XCOMM #define HasJBIG
  70. XCOMM #define HasJPEG
  71. XCOMM #define HasMPEG
  72. XCOMM #define HasPNG
  73. XCOMM #define HasTIFF
  74. XCOMM #define HasTTF
  75. XCOMM #define HasZLIB
  76.  
  77. #ifdef HasDPS
  78. DPS_DEFINES= -DHasDPS
  79. DPS_INCLUDES= -I/usr/openwin/include/X11
  80. DPS_FLAGS= -L/usr/openwin/lib
  81. DPS_LIBRARIES= -ldpstk -ldps
  82. #endif
  83.  
  84. #ifdef HasFPX
  85. FPX_DEFINES= -DHasFPX
  86. FPX_INCLUDES= -I$(TOP)/fpx
  87. FPX_FLAGS= -L$(TOP)/fpx
  88. FPX_LIBRARIES= -lfpx
  89. #endif
  90.  
  91. #ifdef HasHDF
  92. HDF_DEFINES= -DHasHDF
  93. HDF_INCLUDES= -I$(TOP)/hdf/hdf/src
  94. HDF_FLAGS= -L$(TOP)/hdf/hdf/src
  95. HDF_LIBRARIES= -ldf
  96. #endif
  97.  
  98. #ifdef HasJBIG
  99. JBIG_DEFINES= -DHasJBIG
  100. JBIG_INCLUDES= -I$(TOP)/jbig/libjbig
  101. JBIG_FLAGS= -L$(TOP)/jbig/libjbig
  102. JBIG_LIBRARIES= -ljbig
  103. #endif
  104.  
  105. #ifdef HasJPEG
  106. JPEG_DEFINES= -DHasJPEG
  107. JPEG_INCLUDES= -I$(TOP)/jpeg
  108. JPEG_FLAGS= -L$(TOP)/jpeg
  109. JPEG_LIBRARIES= -ljpeg
  110. #endif
  111.  
  112. #ifdef HasMPEG
  113. MPEG_DEFINES= -DHasMPEG
  114. MPEG_INCLUDES= -I$(TOP)/mpeg
  115. MPEG_FLAGS= -L$(TOP)/mpeg
  116. MPEG_LIBRARIES= -lmpeg
  117. #endif
  118.  
  119. #ifdef HasPNG
  120. PNG_DEFINES= -DHasPNG
  121. PNG_INCLUDES= -I$(TOP)/png
  122. PNG_FLAGS= -L$(TOP)/png
  123. PNG_LIBRARIES= -lpng
  124. #endif
  125.  
  126. #ifdef HasTIFF
  127. TIFF_DEFINES= -DHasTIFF
  128. TIFF_INCLUDES= -I$(TOP)/tiff/libtiff
  129. TIFF_FLAGS= -L$(TOP)/tiff/libtiff
  130. TIFF_LIBRARIES= -ltiff
  131. #endif
  132.  
  133. #ifdef HasTTF
  134. TTF_DEFINES= -DHasTTF
  135. TTF_INCLUDES= -I$(TOP)/ttf -I$(TOP)/ttf/lib/
  136. TTF_FLAGS= -L$(TOP)/ttf/lib/.libs
  137. TTF_LIBRARIES= -lttf
  138. #endif
  139.  
  140. #ifdef HasZLIB
  141. ZLIB_DEFINES= -DHasZLIB
  142. ZLIB_INCLUDES= -I$(TOP)/zlib
  143. ZLIB_FLAGS= -L$(TOP)/zlib
  144. ZLIB_LIBRARIES= -lz
  145. #endif
  146.  
  147. XCOMM Might need extra libraries for xtp to link correctly.
  148. XCOMM
  149. XCOMM  EXTRA_LOAD_FLAGS= -lnsl
  150.  
  151. #ifdef HPArchitecture
  152. CCOPTIONS= -Aa -Dhpux
  153. CDEBUGFLAGS= -O +Onolimit
  154. #endif
  155.  
  156. XCOMM ImageMagick has an include file named X.h.  Do not set LOCALINC to
  157. XCOMM the top level X11 include directory or X11/X.h will be overwritten.
  158.  
  159. #ifndef PREFIX
  160. PREFIX=/usr/local
  161. #endif
  162.  
  163. LOCALDIR= $(PREFIX)/bin
  164. LOCALINC= $(PREFIX)/include/magick
  165. LOCALLIB= $(PREFIX)/lib
  166. LOCALMAN1= $(PREFIX)/man/man1
  167. LOCALMAN4= $(PREFIX)/man/man4
  168. LOCALMAN5= $(PREFIX)/man/man5
  169.  
  170. MAGICKDIR= $(TOP)/magick
  171. MAGICK_INCLUDES= -I$(TOP)/magick
  172. MAGICK_FLAGS= -L$(MAGICKDIR)
  173. MAGICK_LIBRARIES= -lMagick
  174.  
  175. INCLUDES= $(MAGICK_INCLUDES) $(DIRENT_DEFINES) $(EXTENSIONS_DEFINES) \
  176.   $(DATABASE_DEFINES) $(QUANTUM_DEFINES) $(DPS_INCLUDES) $(FPX_DEFINES) \
  177.   $(FPX_INCLUDES) $(HDF_DEFINES) $(HDF_INCLUDES) $(JBIG_DEFINES) \
  178.   $(JBIG_INCLUDES) $(JPEG_DEFINES) $(JPEG_INCLUDES) $(MPEG_DEFINES) \
  179.   $(MPEG_INCLUDES) $(PNG_DEFINES) $(PNG_INCLUDES) $(TIFF_DEFINES) \
  180.   $(TIFF_INCLUDES) $(TTF_DEFINES) $(TTF_INCLUDES) $(ZLIB_DEFINES) \
  181.   $(ZLIB_INCLUDES) $(DPS_DEFINES)
  182. LOCAL_LDFLAGS= $(MAGICK_FLAGS) $(JBIG_FLAGS) $(HDF_FLAGS) $(MPEG_FLAGS) \
  183.   $(PNG_FLAGS) $(TIFF_FLAGS) $(TTF_FLAGS) $(JPEG_FLAGS) $(ZLIB_FLAGS) \
  184.   $(FPX_FLAGS) $(DPS_FLAGS)
  185. LOCAL_LIBRARIES= $(MAGICK_LIBRARIES) $(JBIG_LIBRARIES) $(HDF_LIBRARIES) \
  186.   $(MPEG_LIBRARIES) $(TIFF_LIBRARIES) $(TTF_LIBRARIES) $(JPEG_LIBRARIES) \
  187.   $(PNG_LIBRARIES) $(ZLIB_LIBRARIES) $(FPX_LIBRARIES) $(DPS_LIBRARIES)
  188. REQUIRED_LIBRARIES= $(LOCAL_LDFLAGS) $(JBIG_LIBRARIES) $(HDF_LIBRARIES) \
  189.   $(MPEG_LIBRARIES) $(TIFF_LIBRARIES) $(TTF_LIBRARIES) $(JPEG_LIBRARIES) \
  190.   $(PNG_LIBRARIES) $(ZLIB_LIBRARIES) $(FPX_LIBRARIES) $(DPS_LIBRARIES)
  191.  
  192. #ifdef uxpArchitecture
  193. #define ForceSubdirs(dirs)                                              @@\
  194. dirs::                                                                  @@\
  195.         @cd $@ ; $(MAKE) $(MFLAGS) PassCDebugFlags all
  196.  
  197. INSTALL=/usr/ucb/install -g sys
  198. #endif
  199.