Annotation of pkgsrc/lang/python/files/Setup, revision 1.3

1.1       tron        1: # -*- makefile -*-
                      2: # The file Setup is used by the makesetup script to construct the files
                      3: # Makefile and config.c, from Makefile.pre and config.c.in,
                      4: # respectively.  The file Setup itself is initially copied from
                      5: # Setup.in; once it exists it will not be overwritten, so you can edit
                      6: # Setup to your heart's content.  Note that Makefile.pre is created
                      7: # from Makefile.pre.in by the toplevel configure script.
                      8: 
                      9: # (VPATH notes: Setup and Makefile.pre are in the build directory, as
                     10: # are Makefile and config.c; the *.in files are in the source
                     11: # directory.)
                     12: 
                     13: # Each line in this file describes one or more optional modules.
                     14: # Comment out lines to suppress modules.
                     15: # Lines have the following structure:
                     16: #
                     17: # <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
                     18: #
                     19: # <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
                     20: # <cpparg> is anything starting with -I, -D, -U or -C
                     21: # <library> is anything ending in .a or beginning with -l or -L
                     22: # <module> is anything else but should be a valid Python
                     23: # identifier (letters, digits, underscores, beginning with non-digit)
                     24: #
                     25: # (As the makesetup script changes, it may recognize some other
                     26: # arguments as well, e.g. *.so and *.sl as libraries.  See the big
                     27: # case statement in the makesetup script.)
                     28: #
                     29: # Lines can also have the form
                     30: #
                     31: # <name> = <value>
                     32: #
                     33: # which defines a Make variable definition inserted into Makefile.in
                     34: #
                     35: # Finally, if a line contains just the word "*shared*" (without the
                     36: # quotes but with the stars), then the following modules will not be
                     37: # included in the config.c file, nor in the list of objects to be
                     38: # added to the library archive, and their linker options won't be
                     39: # added to the linker options, but rules to create their .o files and
                     40: # their shared libraries will still be added to the Makefile, and
                     41: # their names will be collected in the Make variable SHAREDMODS.  This
                     42: # is used to build modules as shared libraries.  (They must be
                     43: # installed using "make sharedinstall".)  (For compatibility,
                     44: # *noconfig* has the same effect as *shared*.)
                     45: 
                     46: # NOTE: As a standard policy, as many modules as can be supported by a
                     47: # platform should be present.  The distribution comes with all modules
                     48: # enabled that are supported by most platforms and don't require you
                     49: # to ftp sources from elsewhere.
                     50: 
                     51: 
                     52: # Some special rules to define PYTHONPATH.
                     53: # Edit the definitions below to indicate which options you are using.
                     54: # Don't add any whitespace or comments!
                     55: 
                     56: # Directories where library files get installed.
                     57: # DESTLIB is for Python modules; MACHDESTLIB for shared libraries.
                     58: DESTLIB=$(LIBDEST)
                     59: MACHDESTLIB=$(BINLIBDEST)
                     60: 
                     61: # NOTE: all the paths are now relative to the prefix that is computed
                     62: # at run time!
                     63: 
                     64: # Standard path -- don't edit.
                     65: # No leading colon since this is the first entry.
                     66: # Empty since this is now just the runtime prefix.
                     67: DESTPATH=
                     68: 
                     69: # Site specific path components -- should begin with : if non-empty
                     70: SITEPATH=
                     71: 
                     72: # Standard path components for test modules
                     73: TESTPATH=:test
                     74: 
                     75: # Path components for machine- or system-dependent modules and shared libraries
                     76: MACHDEPPATH=:plat-$(MACHDEP)
                     77: 
                     78: COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH)
                     79: PYTHONPATH=$(COREPYTHONPATH)
                     80: 
                     81: 
                     82: # The modules listed here can't be built as shared libraries for
                     83: # various reasons; therefore they are listed here instead of in the
                     84: # normal order.
                     85: 
                     86: # Some modules that are normally always on:
                     87: 
                     88: regex regexmodule.c regexpr.c  # Regular expressions, GNU Emacs style
                     89: pcre pcremodule.c pypcre.c     # Regular expressions, Perl style (for re.py)
                     90: posix posixmodule.c            # posix (UNIX) system calls
                     91: signal signalmodule.c          # signal(2)
                     92: 
                     93: # The SGI specific GL module:
                     94: 
                     95: #gl glmodule.c cgensupport.c -I$(srcdir) -lgl -lX11
                     96: 
                     97: # The thread module is now automatically enabled, see Setup.thread.
                     98: 
                     99: # Pure module.  Cannot be linked dynamically.
                    100: # -DWITH_QUANTIFY, -DWITH_PURIFY, or -DWITH_ALL_PURE
                    101: #WHICH_PURE_PRODUCTS=-DWITH_ALL_PURE
                    102: #PURE_INCLS=-I/usr/local/include
                    103: #PURE_STUBLIBS=-L/usr/local/lib -lpurify_stubs -lquantify_stubs
                    104: #pure puremodule.c $(WHICH_PURE_PRODUCTS) $(PURE_INCLS) $(PURE_STUBLIBS)
                    105: 
                    106: # Uncommenting the following line tells makesetup that all following
                    107: # modules are to be built as shared libraries (see above for more
                    108: # detail):
                    109: 
                    110: @NOSHARED@*shared*
                    111: 
                    112: # GNU readline.  Unlike previous Python incarnations, GNU readline is
                    113: # now incorporated in an optional module, configured in the Setup file
                    114: # instead of by a configure script switch.  You may have to insert a
                    115: # -L option pointing to the directory where libreadline.* lives,
                    116: # and you may have to change -ltermcap to -ltermlib or perhaps remove
                    117: # it, depending on your system -- see the GNU readline instructions.
                    118: # It's okay for this to be a shared library, too.
                    119: 
                    120: #readline readline.c -lreadline -ltermcap
                    121: 
                    122: 
                    123: # Modules that should always be present (non UNIX dependent):
                    124: 
                    125: array arraymodule.c    # array objects
                    126: cmath cmathmodule.c # -lm # complex math library functions
                    127: math mathmodule.c # -lm # math library functions, e.g. sin()
                    128: strop stropmodule.c    # fast string operations implemented in C
                    129: struct structmodule.c  # binary structure packing/unpacking
                    130: time timemodule.c # -lm # time operations and variables
                    131: operator operator.c    # operator.add() and similar goodies
                    132: 
                    133: #_locale _localemodule.c  # access to ISO C locale support
                    134: 
                    135: 
                    136: # Modules with some UNIX dependencies -- on by default:
                    137: # (If you have a really backward UNIX, select and socket may not be
                    138: # supported...)
                    139: 
                    140: fcntl fcntlmodule.c    # fcntl(2) and ioctl(2)
                    141: pwd pwdmodule.c                # pwd(3) 
                    142: grp grpmodule.c                # grp(3)
                    143: select selectmodule.c  # select(2); not on ancient System V
                    144: socket socketmodule.c  # socket(2); not on ancient System V
                    145: errno errnomodule.c    # posix (UNIX) errno values
                    146: 
                    147: # The crypt module is now disabled by default because it breaks builds
                    148: # on many systems (where -lcrypt is needed), e.g. Linux (I believe).
1.3     ! frueauf   149: crypt cryptmodule.c -lcrypt    # crypt(3); needs -lcrypt on some systems
1.1       tron      150: 
                    151: 
                    152: # Some more UNIX dependent modules -- off by default, since these
                    153: # are not supported by all UNIX systems:
                    154: 
                    155: nis nismodule.c        # Sun yellow pages -- not everywhere
                    156: termios termios.c      # Steen Lumholt's termios module
                    157: resource resource.c    # Jeremy Hylton's rlimit interface
                    158: 
                    159: 
                    160: # Multimedia modules -- off by default.
                    161: # These don't work for 64-bit platforms!!!
                    162: # These represent audio samples or images as strings:
                    163: 
                    164: @NO64BIT@audioop audioop.c     # Operations on audio samples
                    165: @NO64BIT@imageop imageop.c     # Operations on images
                    166: @NO64BIT@rgbimg rgbimgmodule.c   # Read SGI RGB image files (but coded portably)
                    167: 
1.2       tron      168: 
1.1       tron      169: # The stdwin module provides a simple, portable (between X11 and Mac)
                    170: # windowing interface.  You need to ftp the STDWIN library, e.g. from
                    171: # ftp://ftp.cwi.nl/pub/stdwin.  (If you get it elsewhere, be sure to
                    172: # get version 1.0 or higher!)  The STDWIN variable must point to the
                    173: # STDWIN toplevel directory.
                    174: 
                    175: # Uncomment and edit as needed:
                    176: #STDWIN=/ufs/guido/src/stdwin
                    177: 
                    178: # Uncomment these lines:
                    179: #STDWINPATH=:lib-stdwin
                    180: #LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a
                    181: #LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a
                    182: #stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11
                    183: 
                    184: # Use this instead of the last two lines above for alphanumeric stdwin:
                    185: #LIBALFASTDWIN=$(STDWIN)/$(MACHDEP)/Ports/alfa/libstdwin.a
                    186: #stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBALFASTDWIN) -ltermcap
                    187: 
                    188: 
                    189: # The md5 module implements the RSA Data Security, Inc. MD5
                    190: # Message-Digest Algorithm, described in RFC 1321.  The necessary files
                    191: # md5c.c and md5.h are included here.
                    192: 
                    193: md5 md5module.c md5c.c
                    194: 
                    195: 
                    196: # The mpz module interfaces to the GNU Multiple Precision library.
                    197: # You need to ftp the GNU MP library.  
                    198: # The GMP variable must point to the GMP source directory.
                    199: # This was originally written and tested against GMP 1.2 and 1.3.2.
                    200: # It has been modified by Rob Hooft to work with 2.0.2 as well, but I
                    201: # haven't tested it recently.
                    202: 
                    203: # A compatible MP library unencombered by the GPL also exists.  It was
                    204: # posted to comp.sources.misc in volume 40 and is widely available from
                    205: # FTP archive sites. One URL for it is:
                    206: # ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
                    207: 
                    208: #GMP=/ufs/guido/src/gmp
                    209: #mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a
                    210: 
                    211: 
                    212: # SGI IRIX specific modules -- off by default.
                    213: 
                    214: # These module work on any SGI machine:
                    215: 
                    216: # *** gl must be enabled higher up in this file ***
                    217: #fm fmmodule.c -lfm -lgl               # Font Manager
                    218: #sgi sgimodule.c                       # sgi.nap() and a few more
                    219: 
                    220: # This module requires the header file
                    221: # /usr/people/4Dgifts/iristools/include/izoom.h:
                    222: #imgfile imgfile.c -limage -lgutil -lgl -lm    # Image Processing Utilities
                    223: 
                    224: 
                    225: # These modules require the Multimedia Development Option (I think):
                    226: 
                    227: #al almodule.c -laudio                 # Audio Library
                    228: #cd cdmodule.c -lcdaudio -lds -lmediad # CD Audio Library
                    229: #cl clmodule.c -lcl -lawareaudio       # Compression Library
                    230: #sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11      # Starter Video
                    231: 
                    232: 
                    233: # The FORMS library, by Mark Overmars, implements user interface
                    234: # components such as dialogs and buttons using SGI's GL and FM
                    235: # libraries.  You must ftp the FORMS library separately from
                    236: # ftp://ftp.cs.ruu.nl/pub/SGI/FORMS.  It was tested with FORMS 2.2a.
                    237: # The FORMS variable must point to the FORMS subdirectory of the forms
                    238: # toplevel directory:
                    239: 
                    240: #FORMS=/ufs/guido/src/forms/FORMS
                    241: #fl flmodule.c -I$(FORMS) $(FORMS)/libforms.a -lfm -lgl
                    242: 
                    243: 
                    244: # SunOS specific modules -- off by default:
                    245: 
                    246: #sunaudiodev sunaudiodev.c
                    247: 
                    248: 
                    249: # George Neville-Neil's timing module:
                    250: 
                    251: timing timingmodule.c
                    252: 
                    253: 
                    254: # The _tkinter module.
                    255: #
                    256: # The TKPATH variable is always enabled, to save you the effort.
                    257: TKPATH=:lib-tk
                    258: 
                    259: # The command for _tkinter is long and site specific.  Please
                    260: # uncomment and/or edit those parts as indicated.  If you don't have a
                    261: # specific extension (e.g. Tix or BLT), leave the corresponding line
                    262: # commented out.  (Leave the trailing backslashes in!  If you
                    263: # experience strange errors, you may want to join all uncommented
                    264: # lines and remove the backslashes -- the backslash interpretation is
                    265: # done by the shell's "read" command and it may not be implemented on
                    266: # every system.
                    267: 
                    268: # *** Always uncomment this (leave the leading underscore in!):
                    269: # _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
                    270: # *** Uncomment and edit to reflect where your X11 header files are:
                    271: #      -I/usr/X11R6/include \
                    272: # *** Or uncomment this for Solaris:
                    273: #      -I/usr/openwin/include \
                    274: # *** Uncomment and edit to reflect where your Tcl/Tk headers are:
                    275: #      -I/usr/local/include \
                    276: # *** Uncomment and edit for Tix extension only:
                    277: #      -DWITH_TIX -ltix4.1.8.0 \
                    278: # *** Uncomment and edit for BLT extension only:
                    279: #      -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
                    280: # *** Uncomment and edit for PIL (TkImaging) extension only:
                    281: #      -DWITH_PIL -I../Extensions/Imaging/libImaging  tkImaging.c \
                    282: # *** Uncomment and edit for TOGL extension only:
                    283: #      -DWITH_TOGL togl.c \
                    284: # *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
                    285: #      -L/usr/local/lib \
                    286: # *** Uncomment and edit to reflect your Tcl/Tk versions:
                    287: #      -ltk8.0 -ltcl8.0 \
                    288: # *** Uncomment and edit to reflect where your X11 libraries are:
                    289: #      -L/usr/X11R6/lib \
                    290: # *** Or uncomment this for Solaris:
                    291: #      -L/usr/openwin/lib \
                    292: # *** Uncomment these for TOGL extension only:
                    293: #      -lGL -lGLU -lXext -lXmu \
1.2       tron      294: # *** Uncomment for AIX:
                    295: #      -lld \
1.1       tron      296: # *** Always uncomment this; X11 libraries to link with:
                    297: #      -lX11
                    298: 
                    299: # Lance Ellinghaus's modules:
                    300: 
                    301: rotor rotormodule.c            # enigma-inspired encryption
                    302: syslog syslogmodule.c          # syslog daemon interface
                    303: 
                    304: 
                    305: # Lance's curses module.  This requires the System V version of
                    306: # curses, sometimes known as ncurses (e.g. on Linux, link with
                    307: # -lncurses instead of -lcurses; on SunOS 4.1.3, insert -I/usr/5include
                    308: # -L/usr/5lib before -lcurses).
                    309: 
                    310: #curses cursesmodule.c -lcurses -ltermcap
                    311: 
                    312: 
                    313: 
                    314: # Tommy Burnette's 'new' module (creates new empty objects of certain kinds):
                    315: 
                    316: new newmodule.c
                    317: 
                    318: 
                    319: # Generic (SunOS / SVR4) dynamic loading module.
                    320: # This is not needed for dynamic loading of Python modules --
                    321: # it is a highly experimental and dangerous device for calling
                    322: # *arbitrary* C functions in *arbitrary* shared libraries:
                    323: 
                    324: #dl dlmodule.c
                    325: 
                    326: 
                    327: # Modules that provide persistent dictionary-like semantics.  You will
                    328: # probably want to arrange for at least one of them to be available on
                    329: # your machine, though none are defined by default because of library
                    330: # dependencies.  The Python module anydbm.py provides an
                    331: # implementation independent wrapper for these; dumbdbm.py provides
                    332: # similar functionality (but slower of course) implemented in Python.
                    333: 
                    334: # The standard Unix dbm module:
                    335: 
                    336: dbm dbmmodule.c        # dbm(3) may require -lndbm or similar
                    337: 
                    338: # Anthony Baxter's gdbm module.  GNU dbm(3) will require -lgdbm:
                    339: 
                    340: #gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
                    341: 
                    342: 
                    343: # Berkeley DB interface.
                    344: #
                    345: # This requires the Berkeley DB code, see
                    346: # ftp://ftp.cs.berkeley.edu/pub/4bsd/db.1.85.tar.gz
                    347: #
                    348: # Edit the variables DB and DBPORT to point to the db top directory
                    349: # and the subdirectory of PORT where you built it.
                    350: #
                    351: # (See http://www.jenkon-dev.com/~rd/python/ for an interface to
                    352: # BSD DB 2.1.0.)
                    353: 
                    354: #DB=/depot/sundry/src/berkeley-db/db.1.85
                    355: #DBPORT=$(DB)/PORT/irix.5.3
                    356: bsddb bsddbmodule.c # -I$(DBPORT)/include -I$(DBPORT) $(DBPORT)/libdb.a
                    357: 
                    358: 
                    359: 
1.2       tron      360: # David Wayne Williams' soundex module (obsolete -- this will disappear!)
1.1       tron      361: soundex soundex.c
                    362: 
                    363: # Helper module for various ascii-encoders
                    364: binascii binascii.c
                    365: 
                    366: # Fred Drake's interface to the Python parser
                    367: parser parsermodule.c
                    368: 
                    369: # Digital Creations' cStringIO and cPickle
                    370: cStringIO cStringIO.c
                    371: cPickle cPickle.c
                    372: 
                    373: 
                    374: # Lee Busby's SIGFPE modules.
                    375: # The library to link fpectl with is platform specific.
                    376: # Choose *one* of the options below for fpectl:
                    377: 
                    378: # For SGI IRIX (tested on 5.3):
                    379: #fpectl fpectlmodule.c -lfpe
                    380: 
                    381: # For Solaris with SunPro compiler (tested on Solaris 2.5 with SunPro C 4.2):
                    382: # (Without the compiler you don't have -lsunmath.)
                    383: #fpectl fpectlmodule.c -R/opt/SUNWspro/lib -lsunmath -lm
                    384: 
                    385: # For other systems: see instructions in fpectlmodule.c.
                    386: #fpectl fpectlmodule.c ...
                    387: 
                    388: # Test module for fpectl.  No extra libraries needed.
                    389: #fpetest fpetestmodule.c
                    390: 
                    391: # Andrew Kuchling's zlib module.
                    392: # This require zlib 1.0.4 (or later).  See http://quest.jpl.nasa.gov/zlib/
1.2       tron      393: # See http://www.cdrom.com/pub/infozip/zlib/
                    394: zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
1.1       tron      395: 
                    396: 
                    397: # Example -- included for reference only:
                    398: # xx xxmodule.c

CVSweb <webmaster@jp.NetBSD.org>