[BACK]Return to Makefile.common CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / shells / zsh

Annotation of pkgsrc/shells/zsh/Makefile.common, Revision 1.64

1.64    ! ryoon       1: # $NetBSD: Makefile.common,v 1.63 2011/09/20 13:58:01 ryoon Exp $
1.61      ryoon       2: # used by shells/zsh/Makefile
                      3: # used by shells/zsh-current/Makefile
1.1       uebayasi    4:
1.37      wiz         5: DISTNAME=      zsh-${ZSH_VERSION}
1.1       uebayasi    6: CATEGORIES=    shells
1.46      uebayasi    7: MASTER_SITES=  ftp://mirrors.dotsrc.org/zsh/ \
1.1       uebayasi    8:                ftp://ftp.fu-berlin.de/pub/unix/shells/zsh/ \
                      9:                http://www.math.technion.ac.il/pub/zsh/ \
                     10:                ftp://ftp.zsh.org/zsh/
                     11: EXTRACT_SUFX=  .tar.bz2
                     12:
                     13: MAINTAINER=    ${ZSH_MAINTAINER}
1.55      obache     14: HOMEPAGE=      http://zsh.sourceforge.net/
1.1       uebayasi   15: COMMENT=       The Z shell
                     16:
1.36      joerg      17: PKG_DESTDIR_SUPPORT=   user-destdir
                     18:
1.22      adam       19: GNU_CONFIGURE=         yes
1.2       grant      20:
1.31      rillig     21: CONFIGURE_ARGS+=       --enable-etcdir=${PKG_SYSCONFDIR:Q}
1.30      uebayasi   22:
1.33      jlam       23: USE_TOOLS+=            makeinfo
1.34      jlam       24: INFO_FILES=            # PLIST
1.18      taca       25: TEXINFO_REQD=          4.0
1.1       uebayasi   26:
1.11      cube       27: PKG_INSTALLATION_TYPES=        overwrite pkgviews
                     28:
1.1       uebayasi   29: .include "../../mk/bsd.prefs.mk"
                     30:
1.62      ryoon      31: .if ${OPSYS} == "Darwin"
1.64    ! ryoon      32: #CONFIGURE_ENV+=               INSTALL_PROGRAM=${INSTALL_LIB:Q}
        !            33: INSTALL_UNSTRIPPED=    yes
1.62      ryoon      34: .endif
                     35:
1.40      jlam       36: # Handle any PKG_OPTIONS that this package might have.
                     37: .sinclude "options.mk"
                     38:
1.12      salo       39: BUILD_DEFS+=   ZSH_STATIC
1.44      agc        40: MAKE_JOBS_SAFE=        no
1.49      uebayasi   41: INSTALL_TARGET=        install install.info
                     42: PKG_SHELL=     bin/zsh
1.59      ryoon      43: PLIST_VARS=    dynamic terminfo curses
1.49      uebayasi   44:
                     45: ################################################################################
                     46:
1.56      roy        47: _ZSH_OPSYS.OpenBSD=            ldflags tcsetpgrp
                     48: _ZSH_OPSYS.Linux=              ldflags tcsetpgrp
                     49: _ZSH_OPSYS.IRIX=               ldflags tcsetpgrp
                     50: _ZSH_OPSYS.Interix=            ldflags notcsetpgrp
                     51: _ZSH_OPSYS.DragonFly=          ldflags tcsetpgrp
                     52: _ZSH_OPSYS.FreeBSD=            ldflags tcsetpgrp
                     53: _ZSH_OPSYS.SunOS=              -       tcsetpgrp
1.49      uebayasi   54:
1.56      roy        55: _ZSH_OPSYS.${OPSYS}?=          ldflags tcsetpgrp
1.49      uebayasi   56:
                     57: ################################################################################
                     58:
                     59: ### static
                     60:
                     61: _ZSH_LINKAGE.static.CONFIGURE_ARGS=    --disable-dynamic
1.51      uebayasi   62: _ZSH_LINKAGE.static.BUILDLINK_PASSTHRU_RPATHDIRS?=
                     63: _ZSH_LINKAGE.static.LDFLAGS?=          -static
1.49      uebayasi   64:
                     65: ### dynamic
1.12      salo       66:
1.49      uebayasi   67: _ZSH_DYNAMIC_VARS.ldflags=     ${COMPILER_RPATH_FLAG}${PREFIX}/lib/zsh
1.14      tron       68:
1.49      uebayasi   69: _ZSH_LINKAGE.dynamic.CONFIGURE_ARGS=
                     70: _ZSH_LINKAGE.dynamic.BUILDLINK_PASSTHRU_RPATHDIRS=
1.51      uebayasi   71: # XXXUEBAYASI old make(1) has problems to handle :?true_str:false_str
                     72: #_ZSH_LINKAGE.dynamic.LDFLAGS= \
                     73: #      ${_ZSH_OPSYS.${OPSYS}:Mldflags:?${_ZSH_DYNAMIC_VARS.ldflags}:}
                     74: .if !empty(_ZSH_OPSYS.${OPSYS}:Mldflags)
                     75: _ZSH_LINKAGE.dynamic.LDFLAGS=  ${_ZSH_DYNAMIC_VARS.ldflags}
                     76: .endif
1.49      uebayasi   77:
1.51      uebayasi   78: ### tcsetpgrp
1.49      uebayasi   79:
                     80: _ZSH_OPSYS_VARS.tcsetpgrp=     --with-tcsetpgrp
                     81: _ZSH_OPSYS_VARS.notcsetpgrp=   --without-tcsetpgrp
                     82:
1.56      roy        83: ### terminfo
                     84: CHECK_BUILTIN.terminfo=        yes
                     85: .include "../../mk/terminfo.builtin.mk"
1.57      roy        86: .if !empty(USE_BUILTIN.terminfo:M[Yy][Ee][Ss])
1.53      uebayasi   87: PLIST.terminfo=        yes
                     88: .endif
                     89:
1.59      ryoon      90: ### curses
1.60      ryoon      91: .if empty(MACHINE_PLATFORM:MNetBSD-[0-9]*)
1.59      ryoon      92: CHECK_BUILTIN.curses=  yes
                     93: .include "../../mk/curses.builtin.mk"
                     94: .if !empty(USE_BUILTIN.curses:M[Yy][Ee][Ss])
                     95: PLIST.curses=  yes
                     96: .endif
1.60      ryoon      97: .endif
1.59      ryoon      98:
1.49      uebayasi   99: ################################################################################
1.16      tron      100:
1.51      uebayasi  101: # XXXUEBAYASI old make(1) has problems to handle :?true_str:false_str
                    102: #_ZSH_LINKAGE= ${ZSH_STATIC:M[Yy][Ee][Ss]:?static:dynamic}     # static / dynamic
                    103: ZSH_STATIC?=   no
                    104: .if !empty(ZSH_STATIC:M[Yy][Ee][Ss])
                    105: _ZSH_LINKAGE=  static
                    106: .else
                    107: _ZSH_LINKAGE=  dynamic
                    108: .endif
1.19      uebayasi  109:
1.49      uebayasi  110: CONFIGURE_ARGS+=               ${_ZSH_LINKAGE.${_ZSH_LINKAGE}.CONFIGURE_ARGS} \
                    111:                                ${_ZSH_OPSYS_VARS.${_ZSH_OPSYS.${OPSYS}:Mtcsetpgrp}} \
                    112:                                ${_ZSH_OPSYS_VARS.${_ZSH_OPSYS.${OPSYS}:Mnotcsetpgrp}}
                    113: BUILDLINK_PASSTHRU_RPATHDIRS+= ${_ZSH_LINKAGE.${_ZSH_LINKAGE}.BUILDLINK_PASSTHRU_RPATHDIRS}
                    114: LDFLAGS+=                      ${_ZSH_LINKAGE.${_ZSH_LINKAGE}.LDFLAGS}
1.52      uebayasi  115: .if ${_ZSH_LINKAGE} == dynamic
                    116: PLIST.dynamic= yes
                    117: .endif
1.1       uebayasi  118:
1.49      uebayasi  119: ################################################################################
1.1       uebayasi  120:
1.49      uebayasi  121: .undef MANZ
1.3       seb       122:
1.27      joerg     123: pre-install:
1.28      rillig    124:        @cd ${WRKSRC}/Completion; ${FIND} . -name \*.orig -exec ${RM} \{\} \;
1.27      joerg     125:
1.1       uebayasi  126: post-install:
1.36      joerg     127:        ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/zsh
                    128:        cd ${WRKSRC}/Etc && ${INSTALL_DATA} BUGS FAQ    \
                    129:                ${DESTDIR}${PREFIX}/share/doc/zsh
                    130:        cd ${WRKSRC} && ${INSTALL_DATA} FEATURES NEWS   \
                    131:                ${DESTDIR}${PREFIX}/share/doc/zsh
1.1       uebayasi  132:
                    133: # Utilize Zsh's test framework.
1.8       recht     134: # Testing of dynamic shell only works after install has been done
1.1       uebayasi  135: #
                    136: .PHONY: do-test do-su-test real-su-test
                    137:
                    138: do-test: do-su-test
                    139:
                    140: do-su-test:
                    141:        @${_PKG_SILENT}${_PKG_DEBUG}                                    \
                    142:        ${ECHO_MSG} "*** Warning: This test needs to be run as root"
                    143:        @${_PKG_SILENT}${_PKG_DEBUG}                                    \
                    144:        realtarget="real-su-test";                                      \
                    145:        action="install";                                               \
                    146:        ${_SU_TARGET}
                    147:
                    148: real-su-test:
                    149:        @${_PKG_SILENT}${_PKG_DEBUG}                                    \
                    150:        ${ECHO_MSG} "${_PKGSRC_IN}> Testing for ${PKGNAME}"
                    151:        @cd ${WRKSRC} && ${MAKE} check
                    152:        @cd ${WRKSRC}/Test && ${MAKE} clean

CVSweb <webmaster@jp.NetBSD.org>