2006-02-06 00:08:03 +01:00
|
|
|
# $NetBSD: Makefile,v 1.26 2006/02/05 23:08:32 joerg Exp $
|
2000-10-15 20:47:59 +02:00
|
|
|
#
|
|
|
|
|
2002-07-03 01:57:21 +02:00
|
|
|
DISTNAME= DBD-Sybase-0.94
|
2000-10-15 20:47:59 +02:00
|
|
|
PKGNAME= p5-${DISTNAME}
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 8
|
2001-10-18 17:20:01 +02:00
|
|
|
SVR4_PKGNAME= p5dsy
|
2000-10-15 20:47:59 +02:00
|
|
|
CATEGORIES= databases perl5
|
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=DBD/}
|
|
|
|
|
2003-07-17 23:21:03 +02:00
|
|
|
MAINTAINER= rh@NetBSD.org
|
2005-03-10 15:13:37 +01:00
|
|
|
HOMEPAGE= http://www.peppler.org/freeware/dbd-sybase.html
|
2003-07-21 18:35:12 +02:00
|
|
|
COMMENT= Perl DBI/DBD driver for Sybase/MS-SQL databases
|
2000-10-15 20:47:59 +02:00
|
|
|
|
2005-07-13 20:01:18 +02:00
|
|
|
PERL5_PACKLIST= auto/DBD/Sybase/.packlist
|
2000-10-15 20:47:59 +02:00
|
|
|
|
2004-03-29 11:58:28 +02:00
|
|
|
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
|
2006-01-04 19:36:50 +01:00
|
|
|
_SYBASE= ${BUILDLINK_PREFIX.freetds}
|
2004-03-29 11:58:28 +02:00
|
|
|
.endif
|
|
|
|
|
2004-08-27 08:29:06 +02:00
|
|
|
PERL5_LDFLAGS+= ${COMPILER_RPATH_FLAG}${_SYBASE}/lib
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= SYBASE=${_SYBASE:Q}
|
2004-03-29 11:58:28 +02:00
|
|
|
|
|
|
|
.if !defined(USE_SYBASE_OPENCLIENT)
|
2004-05-14 20:49:52 +02:00
|
|
|
. include "../../databases/freetds/buildlink3.mk"
|
2004-03-29 11:58:28 +02:00
|
|
|
.endif
|
2002-09-20 03:06:22 +02:00
|
|
|
|
2004-05-14 20:49:52 +02:00
|
|
|
.include "../../databases/p5-DBI/buildlink3.mk"
|
2004-07-19 23:07:39 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
2002-10-27 20:41:53 +01:00
|
|
|
.include "../../lang/perl5/module.mk"
|
2000-10-15 20:47:59 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|