Changeset 3937 for trunk/base
- Timestamp:
- Nov 13, 2003, 3:17:55 PM (20 years ago)
- Location:
- trunk/base
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/aclocal.m4
r3640 r3937 6 6 # OD_PATH_DPORTSDIR(DEFAULT_DPORTSDIR) 7 7 #--------------------------------------- 8 # AC_DEFUN([OD_PATH_DPORTSDIR],[ 9 # dnl For ease of reading, run after gcc has been found/configured 10 # AC_REQUIRE([AC_PROG_CC]) 11 12 # AC_ARG_WITH(dports-dir, [AC_HELP_STRING([--with-dports-dir=DIR], [Specify alternate dports directory])], [ dportsdir="$withval" ] ) 13 14 15 # AC_MSG_CHECKING([for dports tree]) 16 17 # if test "x$dportsdir" != "x" ; then 18 # if test -d "$dportsdir" -a -e "$dportsdir/PortIndex" ; then 19 # : 20 # else 21 # AC_MSG_ERROR([$dportsdir not a valid dports tree]) 22 # fi 23 # else 24 # dnl If the user didn't give a path, look for default 25 # if test "x$1" != "x" ; then 26 # if test -d "$1" -a -e "$1/PortIndex" ; then 27 # dportsdir=$1 28 # fi 29 # fi 30 # fi 31 32 # if test "x$dportsdir" != "x" ; then 33 # AC_MSG_RESULT($dportsdir) 34 # DPORTSDIR="$dportsdir" 35 # AC_SUBST(DPORTSDIR) 36 # else 37 # AC_MSG_WARN([No dports tree found]) 38 # fi 39 40 # ]) 8 AC_DEFUN([OD_PATH_DPORTSDIR],[ 9 dnl For ease of reading, run after gcc has been found/configured 10 AC_REQUIRE([AC_PROG_CC]) 11 12 AC_ARG_WITH(dports-dir, [AC_HELP_STRING([--with-dports-dir=DIR], [Specify alternate dports directory])], [ dportsdir="$withval" ] ) 13 14 15 AC_MSG_CHECKING([for dports tree]) 16 if test "x$dportsdir" != "x" ; then 17 if test -d "$dportsdir" -a -e "$dportsdir/PortIndex" ; then 18 : 19 else 20 AC_MSG_ERROR([$dportsdir not a valid dports tree]) 21 fi 22 else 23 dnl If the user didn't give a path, look for default 24 if test "x$1" != "x" ; then 25 if test -d "$1" -a -e "$1/PortIndex" ; then 26 dportsdir=$1 27 fi 28 fi 29 fi 30 31 if test "x$dportsdir" != "x" ; then 32 AC_MSG_RESULT($dportsdir) 33 DPORTSDIR="$dportsdir" 34 AC_SUBST(DPORTSDIR) 35 else 36 AC_MSG_WARN([No dports tree found]) 37 fi 38 39 ]) 41 40 42 41 -
trunk/base/configure.ac
r3676 r3937 18 18 OD_LIB_MD5 19 19 20 # set default dports-directory 21 DPORTS_DIR_DEFAULT=`pwd | sed -e "s/base/dports/"` 22 20 23 # Check for paths 21 24 AC_PREFIX_DEFAULT(/opt/local) 25 OD_PATH_DPORTSDIR([$DPORTS_DIR_DEFAULT]) 22 26 OD_PATH_PORTCONFIGDIR([/etc/ports], [$prefix]) 23 27 -
trunk/base/doc/Makefile
r3751 r3937 21 21 $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 644 ports.conf ${DESTDIR}${portconfigdir}; \ 22 22 fi 23 23 24 24 $(SILENT)if test ! -e ${DESTDIR}${portconfigdir}/sources.conf ; then \ 25 25 set -x; \ 26 26 $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 644 sources.conf ${DESTDIR}${portconfigdir}; \ 27 echo "file://${dportsdir}" >> ${DESTDIR}${portconfigdir}/sources.conf; \ 27 28 fi 28 29 $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 644 prefix.mtree ${DESTDIR}${portconfigdir}
Note: See TracChangeset
for help on using the changeset viewer.