908e765695
module directory has changed (eg. "darwin-2level" vs. "darwin-thread-multi-2level"). binary packages of perl modules need to be distinguishable between being built against threaded perl and unthreaded perl, so bump the PKGREVISION of all perl module packages and introduce BUILDLINK_RECOMMENDED for perl as perl>=5.8.5nb5 so the correct dependencies are registered and the binary packages are distinct. addresses PR pkg/28619 from H. Todd Fujinaka.
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.19 2004/12/20 11:30:57 grant Exp $
|
|
#
|
|
|
|
DISTNAME= DBD-Sybase-0.94
|
|
PKGNAME= p5-${DISTNAME}
|
|
PKGREVISION= 5
|
|
SVR4_PKGNAME= p5dsy
|
|
CATEGORIES= databases perl5
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=DBD/}
|
|
|
|
MAINTAINER= rh@NetBSD.org
|
|
HOMEPAGE= http://www.mbay.net/~mpeppler/
|
|
COMMENT= Perl DBI/DBD driver for Sybase/MS-SQL databases
|
|
|
|
USE_BUILDLINK3= YES
|
|
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/DBD/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}/freetds
|
|
.endif
|
|
|
|
PERL5_LDFLAGS+= ${COMPILER_RPATH_FLAG}${_SYBASE}/lib
|
|
MAKE_ENV+= SYBASE=${_SYBASE}
|
|
|
|
.if !defined(USE_SYBASE_OPENCLIENT)
|
|
. include "../../databases/freetds/buildlink3.mk"
|
|
.endif
|
|
|
|
.include "../../databases/p5-DBI/buildlink3.mk"
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../lang/perl5/module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|