[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / databases / sqsh

Annotation of pkgsrc/databases/sqsh/Makefile, Revision 1.21

1.21    ! grant       1: # $NetBSD: Makefile,v 1.20 2004/03/29 01:52:11 grant Exp $
1.1       tsarna      2:
                      3: DISTNAME=      sqsh-1.7-src
                      4: PKGNAME=       sqsh-1.7
1.20      grant       5: PKGREVISION=   3
1.1       tsarna      6: CATEGORIES=    databases
1.17      grant       7: MASTER_SITES=  ${HOMEPAGE}
1.1       tsarna      8:
1.16      grant       9: MAINTAINER=    tsarna@NetBSD.org
1.17      grant      10: HOMEPAGE=      http://www.sqsh.org/
1.3       wiz        11: COMMENT=       Sybase SQL shell
1.1       tsarna     12:
1.9       jlam       13: ALL_TARGET=            sqsh
                     14: INSTALL_TARGET=                install install.man
1.1       tsarna     15:
1.18      agc        16: WRKSRC=                        ${WRKDIR}/${PKGNAME_NOREV}
1.11      wiz        17: USE_BUILDLINK2=                yes
1.1       tsarna     18: GNU_CONFIGURE=         yes
                     19: CONFIGURE_ARGS+=       --with-readline
1.5       jlam       20:
1.19      grant      21: # support for the native Sybase Open Client
                     22: BUILD_DEFS+=           USE_SYBASE_OPENCLIENT
                     23: BUILD_DEFS+=           SYBASE
                     24: .if defined(USE_SYBASE_OPENCLIENT) && empty(USE_SYBASE_OPENCLIENT:M[Nn][Oo])
                     25: .  if defined(SYBASE) && exists(${SYBASE}/lib/libct.so)
                     26: BUILDLINK_PASSTHRU_DIRS=${SYBASE}
                     27: _SYBASE=               ${SYBASE}
                     28: .  else
                     29: PKG_FAIL_REASON+=      "You must define SYBASE to the base directory of Open Client."
                     30: .  endif
                     31: .else
                     32: _SYBASE=               ${BUILDLINK_PREFIX.freetds}/freetds
                     33: MAKE_FLAGS+=           SYBASE_LIBS=-lct
                     34: .endif
1.1       tsarna     35:
1.19      grant      36: LDFLAGS+=              -Wl,${RPATH_FLAG}${_SYBASE}/lib
                     37:
                     38: CONFIGURE_ENV+=                SYBASE="${_SYBASE}"
1.11      wiz        39: CONFIGURE_ENV+=                INCDIRS="${BUILDLINK_PREFIX.readline}/include"
                     40: CONFIGURE_ENV+=                LIBDIRS="${BUILDLINK_PREFIX.readline}/lib"
1.10      wiz        41:
                     42: do-install:
                     43:        ${INSTALL_PROGRAM} ${WRKSRC}/sqsh ${PREFIX}/bin
                     44:        ${INSTALL_MAN} ${WRKSRC}/doc/sqsh.1 ${PREFIX}/man/man1/sqsh.1
1.20      grant      45:        ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/sqsh
                     46:        ${INSTALL_DATA} ${WRKSRC}/doc/sample.sqshrc ${PREFIX}/share/examples/sqsh
1.1       tsarna     47:
1.21    ! grant      48: .include "../../mk/bsd.prefs.mk"
        !            49:
        !            50: .if ${OPSYS} == "Darwin"
        !            51: .  include "../../devel/dlcompat/buildlink2.mk"
        !            52: .endif
        !            53:
1.19      grant      54: .if !defined(USE_SYBASE_OPENCLIENT)
                     55: .  include "../../databases/freetds/buildlink2.mk"
                     56: .endif
                     57:
1.11      wiz        58: .include "../../devel/readline/buildlink2.mk"
1.1       tsarna     59: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>