New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 81252


Ignore:
Timestamp:
07/28/11 01:32:37 (4 years ago)
Author:
cal@…
Message:

rev-upgrade: src/machista1.0 needs SWIG, these changes locate it
However, Lion does no longer ship SWIG, so we have to expect users without it
Also, Swig 2.x available from MacPorts generates code that doesn't compile warnings-free, which is why this Makefile suggests using Swig 1.x

Location:
branches/gsoc11-rev-upgrade/base
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/gsoc11-rev-upgrade/base/configure.ac

    r80186 r81252  
    125125AC_PATH_PROG(XAR, [xar], []) 
    126126AC_PATH_PROG(OPEN, [open], []) 
     127AC_PATH_PROG(SWIG, [swig], [$PATH:/usr/local/bin]) 
    127128 
    128129# Define some precious variables allowing user to override PATH for some programs 
     
    141142AC_ARG_VAR(XAR, [path to xar command]) 
    142143AC_ARG_VAR(OPEN, [path to open command]) 
     144AC_ARG_VAR(SWIG, [path to swig command]) 
    143145 
    144146MP_SED_EXTENDED_REGEXP 
     
    363365        portmgr/freebsd/Makefile 
    364366        src/Makefile 
     367        src/machista1.0/Makefile 
    365368        src/macports1.0/macports_autoconf.tcl 
    366369        src/port1.0/port_autoconf.tcl 
  • branches/gsoc11-rev-upgrade/base/src/machista1.0/Makefile.in

    r81176 r81252  
    33INSTALLDIR=     ${DESTDIR}${datadir}/macports/Tcl/machista1.0 
    44 
    5 # TODO: Find SWIG via configure 
    6 SWIG         = /usr/bin/swig 
    7 SWIG_FLAGS   = -tcl -pkgversion 1.0 -namespace 
     5SWIG         = @SWIG@ 
     6SWIG_FLAGS   = -tcl8 -pkgversion 1.0 -namespace 
    87SWIG_LDFLAGS = -ltcl 
    98 
     
    1716include ../../Mk/macports.tea.mk 
    1817 
    19 CFLAGS+= -fPIC -std=c99 -pedantic -Werror 
     18CFLAGS+= -fPIC -std=c99 -pedantic 
    2019 
    2120${SWIG_SRCS}:: ${SWIG_IFACE} 
     21ifdef SWIG 
    2222        ${SWIG} ${SWIG_FLAGS} $< 
     23else 
     24        @echo "Building ${SWIG_SRCS} requires swig, which you apparently did not have installed when configuring MacPorts." >&2 
     25        @echo "Please install swig and re-run configure" >&2 
     26        @echo "I recommend installing SWIG 1.x in /usr/local, because as of this writing SWIG 2.x-generated code does not compile warning-free" >&2 
     27        @echo "If you checked out from svn you can also run svn revert in base/src/machista1.0 to get rid of this error" >&2 
     28        @exit 1 
     29endif 
    2330 
    2431${SWIG_OBJS}:: ${SWIG_SRCS} 
     
    2835 
    2936clean:: 
    30         rm -f ${SWIG_SRCS} ${SWIG_OBJS} ${PKG_INDEX} 
     37        rm -f ${SWIG_OBJS} ${PKG_INDEX} 
     38ifdef SWIG 
     39        rm -f ${SWIG_SRCS} 
     40else 
     41        @echo "Not cleaning SWIG-generated sources, because you have configured MacPorts without SWIG." >&2 
     42endif 
    3143        rm -f ${TESTS} 
    3244        rm -rf ${TESTS:%=%.dSYM} 
  • branches/gsoc11-rev-upgrade/base/src/port1.0/port_autoconf.tcl.in

    r80186 r81252  
    6767        variable tar_q "@TAR_Q@" 
    6868        variable hdiutil_path "@HDIUTIL@" 
     69        variable swig_path "@SIWG@" 
    6970        variable have_launchd "@HAVE_LAUNCHD@" 
    7071        variable launchctl_path "@LAUNCHCTL@" 
Note: See TracChangeset for help on using the changeset viewer.