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

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

CVSweb <webmaster@jp.NetBSD.org>