[BACK]Return to bsd.port.mk CVS log [TXT][DIR] Up to [local] / src / share / mk

Diff for /src/share/mk/bsd.port.mk between version 1.90 and 1.91

version 1.90, 1999/05/10 21:35:25 version 1.91, 1999/05/14 04:38:36
Line 180 
Line 180 
 # NOCLEANDEPENDS - Don't nuke dependent dirs on make clean (Default: yes)  # NOCLEANDEPENDS - Don't nuke dependent dirs on make clean (Default: yes)
 # BROKEN                - Port is broken.  Set this string to the reason why.  # BROKEN                - Port is broken.  Set this string to the reason why.
 # RESTRICTED    - Port is restricted.  Set this string to the reason why.  # RESTRICTED    - Port is restricted.  Set this string to the reason why.
 # USE_GMAKE             - Says that the port uses gmake.  # USE_BZIP2             - Port distfiles use bzip2 instead of gzip for compression.
 # USE_LIBTOOL   - Says that the port uses libtool.  # USE_ZIP               - Port distfiles use zip instead of tar for packaging.
   # USE_GMAKE             - Port uses gmake.
   # USE_LIBTOOL   - Port uses libtool.
 #  #
 # XXX: cygnus products do NOT use autoconf for making its main  # XXX: cygnus products do NOT use autoconf for making its main
 #      configure from configure.in  #      configure from configure.in
 # USE_AUTOCONF  - Says that the port uses autoconf (implies GNU_CONFIGURE).  # USE_AUTOCONF  - Port uses autoconf (implies GNU_CONFIGURE).
 # AUTOCONF_DIR  - Where to apply autoconf (default: ${WRKSRC}).  # AUTOCONF_DIR  - Where to apply autoconf (default: ${WRKSRC}).
 # USE_PERL5             - Says that the port uses perl5 for building and running.  # USE_PERL5             - Port uses perl5 for building and running.
 # USE_IMAKE             - Says that the port uses imake.  # USE_IMAKE             - Port uses imake.
 # USE_X11               - Says that the port uses X11 (i.e., installs in ${X11BASE}).  # USE_X11               - Port uses X11 and installs in ${X11BASE}
 # USE_EGCC              - Says that the port needs the egcs C compiler  # USE_EGCC              - Port needs the egcs C compiler
 # USE_EGXX              - Says that the port needs the egcs C++ compiler  # USE_EGXX              - Port needs the egcs C++ compiler
 # NO_INSTALL_MANPAGES - For imake ports that don't like the install.man  # NO_INSTALL_MANPAGES - For imake ports that don't like the install.man
 #                                               target.  #                                               target.
 # HAS_CONFIGURE - Says that the port has its own configure script.  # HAS_CONFIGURE - Says that the port has its own configure script.
Line 246 
Line 248 
 # DEPENDS               - A list of other ports this package depends on being  # DEPENDS               - A list of other ports this package depends on being
 #                                 made first.  Use this for things that don't fall into  #                                 made first.  Use this for things that don't fall into
 #                                 the above two categories.  #                                 the above two categories.
 # EXTRACT_CMD   - Command for extracting archive (default: tar).  
 # EXTRACT_SUFX  - Suffix for archive names (default: .tar.gz).  
 # EXTRACT_BEFORE_ARGS -  
 #                                 Arguments to ${EXTRACT_CMD} before filename  
 #                                 (default: -xzf).  
 # EXTRACT_AFTER_ARGS -  
 #                                 Arguments to ${EXTRACT_CMD} following filename  
 #                                 (default: none).  
 #  #
   # EXTRACT_CMD   - Command for extracting archives (default: "gzip",
   #                                 "bzip2" if USE_BZIP2, "unzip" if USE_ZIP).
   # EXTRACT_SUFX  - Suffix for archive files (default: ".tar.gz",
   #                                 ".tar.bz2" if USE_BZIP2, ".zip" if USE_ZIP).
   # EXTRACT_BEFORE_ARGS
   #                               - Arguments to ${EXTRACT_CMD} before filename
   #                                 (default: "-dc" for gzip or bzip2, "-q" for unzip)
   # EXTRACT_AFTER_ARGS
   #                               - Arguments to ${EXTRACT_CMD} following filename
   #                                 (default: "| ${TAR} -xf -", or "-d ${WKRDIR}" if USE_ZIP).
   #
 # FETCH_CMD               - Full path to ftp/http fetch command if not in $PORTPATH  # FETCH_CMD               - Full path to ftp/http fetch command if not in $PORTPATH
 #                                 (default: /usr/bin/ftp).  #                                 (default: /usr/bin/ftp).
 # FETCH_BEFORE_ARGS -  # FETCH_BEFORE_ARGS -
Line 623 
Line 628 
 .endif  .endif
   
 .if exists(/bin/tar)  .if exists(/bin/tar)
 EXTRACT_CMD?=   /bin/tar  TAR?=   /bin/tar
 .else  .else
 EXTRACT_CMD?=   /usr/bin/tar  TAR?=   /usr/bin/tar
 .endif  .endif
 # Backwards compatability.  UNZIP?= unzip
   BZIP2?= bzip2
   
   .if defined(USE_ZIP)
   BUILD_DEPENDS+=         ${UNZIP}:${PORTSDIR}/archivers/unzip
   EXTRACT_CMD?=           ${UNZIP}
   EXTRACT_SUFX?=          .zip
   EXTRACT_BEFORE_ARGS?=  -q
   EXTRACT_AFTER_ARGS?=   -d ${WRKDIR}
   .else
   # common tar case
   
   # Backwards compatibility.
 .if defined(EXTRACT_ARGS)  .if defined(EXTRACT_ARGS)
 EXTRACT_BEFORE_ARGS?=   ${EXTRACT_ARGS}  EXTRACT_AFTER_ARGS?=    | ${TAR} ${EXTRACT_ARGS} -
 .else  .else
 EXTRACT_BEFORE_ARGS?=   -xzf  EXTRACT_AFTER_ARGS?=    | ${TAR} -xf -
 .endif  .endif
 EXTRACT_SUFX?=  .tar.gz  EXTRACT_BEFORE_ARGS?=   -dc
   
   .if defined(USE_BZIP2)
   BUILD_DEPENDS+=         ${BZIP2}:${PORTSDIR}/archivers/bzip2
   EXTRACT_CMD?=           ${BZIP2}
   EXTRACT_SUFX?=          .tar.bz2
   .else
   EXTRACT_CMD?=           ${GZIP_CMD}
   EXTRACT_SUFX?=          .tar.gz
   .endif
   
   .endif
   
 # Figure out where the local mtree file is  # Figure out where the local mtree file is
 .if !defined(MTREE_FILE)  .if !defined(MTREE_FILE)
 .if defined(USE_IMAKE) || defined(USE_X11)  .if defined(USE_IMAKE) || defined(USE_X11)
Line 1364 
Line 1392 
         @${MKDIR} ${WRKDIR}          @${MKDIR} ${WRKDIR}
 .endif  .endif
 .endif  .endif
         @for file in ${EXTRACT_ONLY}; do \          @PATH=${PORTPATH}; \
           for file in ${EXTRACT_ONLY}; do \
                 if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\                  if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\
                 then \                  then \
                         exit 1; \                          exit 1; \

Legend:
Removed from v.1.90  
changed lines
  Added in v.1.91