Changeset 2620


Ignore:
Timestamp:
May 15, 2003, 4:12:39 AM (17 years ago)
Author:
landonf (Landon Fuller)
Message:

Switch to autoconf. This change is far reaching through the build architecture.
Detailed ChangeLog:

  • Added the following files:

base/Makefile.in: Renamed Makefile to Makefile.in
base/aclocal.m4: Local m4 macros. Currently only includes tcl.m4
base/tcl.m4: TEA && Tcl distribution macros with some local modifications
base/configure: configure script, generated from configure.ac
base/configure.ac: m4 used to generate base/configure
base/install.sh: install(1) replacement to appease autoconf
base/Mk/dports.autoconf.mk.in: Contains all autoconf AC_SUBST variables used.
base/Mk/dports.tea.mk: Standardized C extension building

  • Removed the following files:

base/Makefile: Renamed to Makefile.in
base/scripts/config.sh: Entirely replaced by autoconf

  • Modified the following files:

Makefile: Updated to execute configure script in base/, providing backwards compatibility. (Users expext to type "make").
base/src/cflib1.0/Makefile: Updated to use dports.tea.mk and use ${datadir} from dports.autoconf.mk
base/src/pextlib1.0/Makefile: Updated to use dports.tea.mk and use ${datadir} from dports.autoconf.mk
base/src/darwinports1.0/Makefile: Updated to use ${TCL_PACKAGE_DIR} from dports.autoconf.mk
base/src/port1.0/Makefile: Updated to use ${datadir} from dports.autoconf.mk
base/src/port1.0/resources/Makefile: Updated use ${datadir} from dports.autoconf.mk
base/src/port1.0/resources/package/Makefile: Updated to use ${datadir} from dports.autoconf.mk

Location:
trunk
Files:
8 added
2 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r1501 r2620  
    11SUBDIR= base
    22
     3all:: base/Makefile
     4
     5base/Makefile:
     6        @cd base && ./configure
     7
    38include base/Mk/dports.subdir.mk
  • trunk/base/src/cflib1.0/Makefile

    r2426 r2620  
     1include ../../Mk/dports.mk
     2include ../../Mk/dports.autoconf.mk
     3
    14OBJS=           CFLib.o
    2 SHLIB_NAME=     CFLib
    3 LDADD+=         -ltcl
    4 INSTALLDIR= ${DESTDIR}${PREFIX}/share/darwinports/Tcl/cflib1.0
    5 LINK=           ../../scripts/config.sh link
    6 COMPILE=        ../../scripts/config.sh compile
    7 SHLIB_SO=       `../../scripts/config.sh shlibname ${SHLIB_NAME}`
     5SHLIB_NAME=     CFLib${SHLIB_SUFFIX}
     6LIBS+=          -framework CoreFoundation
     7INSTALLDIR= ${DESTDIR}${datadir}/darwinports/Tcl/cflib1.0
    88
    9 .c.o:
    10         ${COMPILE} ${CFLAGS} $< -o $@
    11 
    12 CFLib.dylib: ${OBJS}
    13         ${LINK} ${SHLIB_NAME} ${OBJS} -framework CoreFoundation
    14 
    15 all: CFLib.dylib
    16 
    17 clean:
    18         rm -f ${OBJS} ${SHLIB_SO}
    19 
    20 install: all
    21         mkdir -p ${INSTALLDIR}
    22         install -c -o "${DSTUSR}" -g "${DSTGRP}" -m 444 ${SHLIB_SO} ${INSTALLDIR}
    23         ../pkg_mkindex.tcl ${INSTALLDIR}
    24 
    25 include ../../Mk/dports.mk
     9include ../../Mk/dports.tea.mk
  • trunk/base/src/darwinports1.0/Makefile

    r2426 r2620  
    11SRCS=           darwinports.tcl darwinports_dlist.tcl
    2 INSTALLDIR=     ${DESTDIR}`../../scripts/config.sh installdir`
     2INSTALLDIR=     ${TCL_PACKAGE_DIR}/darwinports1.0
    33
    44all:
     
    1414
    1515include ../../Mk/dports.mk
     16include ../../Mk/dports.autoconf.mk
  • trunk/base/src/pextlib1.0/Makefile

    r2426 r2620  
    11OBJS=           Pextlib.o strsed.o
    2 SHLIB_NAME=     Pextlib
    3 INSTALLDIR= ${DESTDIR}${PREFIX}/share/darwinports/Tcl/pextlib1.0
    4 COMPILE=        ../../scripts/config.sh compile
    5 LINK=           ../../scripts/config.sh link
    6 SHLIB_SO=       `../../scripts/config.sh shlibname ${SHLIB_NAME}`
    7 
    8 .c.o:
    9         ${COMPILE} ${CFLAGS} $< -o $@
    10 
    11 Pextlib.dylib: ${OBJS}
    12         ${LINK} ${SHLIB_NAME} ${OBJS}
    13 
    14 all: Pextlib.dylib
    15 
    16 clean:
    17         rm -f ${OBJS} ${SHLIB_SO}
    18 
    19 install: all
    20         mkdir -p ${INSTALLDIR}
    21         install -c -o "${DSTUSR}" -g "${DSTGRP}" -m 444 ${SHLIB_SO} ${INSTALLDIR}
    22         ../pkg_mkindex.tcl ${INSTALLDIR}
     2SHLIB_NAME=     Pextlib${SHLIB_SUFFIX}
     3INSTALLDIR= ${DESTDIR}${datadir}/darwinports/Tcl/pextlib1.0
    234
    245include ../../Mk/dports.mk
     6include ../../Mk/dports.autoconf.mk
     7include ../../Mk/dports.tea.mk
  • trunk/base/src/port1.0/Makefile

    r2249 r2620  
    1 INSTALLDIR=     ${DESTDIR}${PREFIX}/share/darwinports/Tcl/port1.0
     1INSTALLDIR=     ${DESTDIR}${datadir}/darwinports/Tcl/port1.0
    22
    33SRCS=           port.tcl portchecksum.tcl portconfigure.tcl portextract.tcl portfetch.tcl portmain.tcl portbuild.tcl portpatch.tcl portutil.tcl portinstall.tcl portdepends.tcl portinstall.tcl portuninstall.tcl portdepends.tcl portclean.tcl portpackage.tcl portcontents.tcl portmpkg.tcl
     
    1717
    1818include ../../Mk/dports.subdir.mk
     19include ../../Mk/dports.autoconf.mk
    1920include ../../Mk/dports.mk
  • trunk/base/src/port1.0/resources/Makefile

    r2239 r2620  
    11SUBDIR=         package
    22
    3 INSTALLDIR=     ${DESTDIR}${PREFIX}/share/darwinports/resources/port1.0/
     3INSTALLDIR=     ${DESTDIR}${datadir}/darwinports/resources/port1.0/
    44
    55RSRCS=
     
    1212
    1313include ../../../Mk/dports.subdir.mk
     14include ../../../Mk/dports.autoconf.mk
    1415include ../../../Mk/dports.mk
  • trunk/base/src/port1.0/resources/package/Makefile

    r2239 r2620  
    1 INSTALLDIR=     ${DESTDIR}${PREFIX}/share/darwinports/resources/port1.0/package
     1INSTALLDIR=     ${DESTDIR}${datadir}/darwinports/resources/port1.0/package
    22
    33RSRCS=          background.tiff
     
    1414
    1515include ../../../../Mk/dports.mk
     16include ../../../../Mk/dports.autoconf.mk
Note: See TracChangeset for help on using the changeset viewer.