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

File: [cvs.NetBSD.org] / pkgsrc / databases / p5-sybperl / Makefile (download)

Revision 1.49, Wed Oct 26 10:31:18 2022 UTC (3 months, 1 week ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, HEAD
Changes since 1.48: +2 -2 lines

*: bump PKGREVISION for libunistring shlib major bump

# $NetBSD: Makefile,v 1.49 2022/10/26 10:31:18 wiz Exp $

DISTNAME=	sybperl-2.19
PKGNAME=	p5-${DISTNAME}
PKGREVISION=	14
CATEGORIES=	databases perl5
MASTER_SITES=	http://www.peppler.org/downloads/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.peppler.org/freeware/sybperl.html
COMMENT=	Perl modules for using Sybase/MS-SQL databases

PERL5_PACKLIST=		auto/Sybase/.packlist

BUILD_DEFS+=		USE_SYBASE_OPENCLIENT
BUILD_DEFS+=		SYBASE

.if defined(USE_SYBASE_OPENCLIENT) && empty(USE_SYBASE_OPENCLIENT:M[Nn][Oo])
.  if defined(SYBASE) || exists(${SYBASE}/lib/libct.so)
BUILDLINK_PASSTHRU_DIRS=	${SYBASE}
_SYBASE=			${SYBASE}
.  else
PKG_FAIL_REASON+=		"You must define SYBASE to the base directory of your Open Client."
.  endif
.else
_SYBASE=			${BUILDLINK_PREFIX.freetds}
.endif

PERL5_LDFLAGS+=		${COMPILER_RPATH_FLAG}${_SYBASE}/lib
MAKE_ENV+=		SYBASE=${_SYBASE:Q}

.if !defined(USE_SYBASE_OPENCLIENT)
.  include "../../databases/freetds/buildlink3.mk"
.endif

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"