Changeset 53743


Ignore:
Timestamp:
Jul 13, 2009, 5:51:53 AM (10 years ago)
Author:
blb@…
Message:

Move proxy-querying C code to macports1.0

Location:
trunk/base/src
Files:
4 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/base/src/macports1.0/Makefile

    r51386 r53743  
    11SRCS=           macports.tcl macports_dlist.tcl macports_util.tcl \
    22                macports_autoconf.tcl macports_index.tcl macports_fastload.tcl
    3 OBJS=           macports.o
     3OBJS=           macports.o get_systemconfiguration_proxies.o
    44SHLIB_NAME=     MacPorts${SHLIB_SUFFIX}
    55
     
    88include ../../Mk/macports.autoconf.mk
    99include ../../Mk/macports.tea.mk
     10
     11ifeq ($(OBJC_RUNTIME), APPLE_RUNTIME)
     12        LIBS+= -framework CoreFoundation -framework SystemConfiguration
     13endif
    1014
    1115test::
  • trunk/base/src/macports1.0/macports.c

    r51121 r53743  
    3838#include <tcl.h>
    3939
     40#include "get_systemconfiguration_proxies.h"
     41
    4042static int
    4143macports__version(ClientData clientData UNUSED, Tcl_Interp *interp, int objc, Tcl_Obj * CONST objv[])
     
    5557                return TCL_ERROR;
    5658        Tcl_CreateObjCommand(interp, "macports::version", macports__version, NULL, NULL);
     59        Tcl_CreateObjCommand(interp, "get_systemconfiguration_proxies", GetSystemConfigurationProxiesCmd, NULL, NULL);
    5760        if (Tcl_PkgProvide(interp, "macports", "1.0") != TCL_OK)
    5861                return TCL_ERROR;
  • trunk/base/src/pextlib1.0/Makefile

    r53205 r53743  
    22                fs-traverse.o strcasecmp.o vercomp.o filemap.o \
    33                sha1cmd.o curl.o rmd160cmd.o readline.o uid.o\
    4                 tracelib.o tty.o get_systemconfiguration_proxies.o\
    5                 sysctl.o readdir.o pipe.o
     4                tracelib.o tty.o sysctl.o readdir.o pipe.o
    65SHLIB_NAME=     Pextlib${SHLIB_SUFFIX}
    76INSTALLDIR= ${DESTDIR}${datadir}/macports/Tcl/pextlib1.0
     
    1211CFLAGS+= ${CURL_CFLAGS} ${MD5_CFLAGS} ${READLINE_CFLAGS}
    1312LIBS+= ${CURL_LIBS} ${MD5_LIBS} ${READLINE_LIBS}
    14 ifeq ($(OBJC_RUNTIME), APPLE_RUNTIME)
    15    LIBS+= -framework CoreFoundation -framework SystemConfiguration
    16 endif
    1713
    1814.PHONY: test
  • trunk/base/src/pextlib1.0/Pextlib.c

    r53210 r53743  
    105105#include "tracelib.h"
    106106#include "tty.h"
    107 #include "get_systemconfiguration_proxies.h"
    108107#include "sysctl.h"
    109108#include "strsed.h"
     
    949948        Tcl_CreateObjCommand(interp, "isatty", IsattyCmd, NULL, NULL);
    950949        Tcl_CreateObjCommand(interp, "term_get_size", TermGetSizeCmd, NULL, NULL);
    951         Tcl_CreateObjCommand(interp, "get_systemconfiguration_proxies", GetSystemConfigurationProxiesCmd, NULL, NULL);
    952950
    953951        if (Tcl_PkgProvide(interp, "Pextlib", "1.0") != TCL_OK)
Note: See TracChangeset for help on using the changeset viewer.