1 # $NetBSD: Makefile,v 1.36 2012/10/03 21:54:16 wiz Exp $
4 DISTNAME
= DBD-Sybase-1.13
5 PKGNAME
= p5-
${DISTNAME}
8 CATEGORIES
= databases perl5
9 MASTER_SITES
= ${MASTER_SITE_PERL_CPAN
:=DBD
/}
11 MAINTAINER
= rh@NetBSD.org
12 HOMEPAGE
= http
://www.peppler.org
/freeware
/dbd-sybase.html
13 COMMENT
= Perl DBI
/DBD driver for Sybase
/MS-SQL databases
14 LICENSE
= ${PERL5_LICENSE}
16 PERL5_PACKLIST
= auto
/DBD
/Sybase
/.packlist
18 BUILD_DEFS
+= USE_SYBASE_OPENCLIENT
21 .if defined
(USE_SYBASE_OPENCLIENT
) && empty
(USE_SYBASE_OPENCLIENT
:M
[Nn
][Oo
])
22 . if defined
(SYBASE
) || exists
(${SYBASE}/lib
/libct.so
)
23 BUILDLINK_PASSTHRU_DIRS
=${SYBASE}
26 PKG_FAIL_REASON
+= "You must define SYBASE to the base directory of your Open Client."
29 _SYBASE
= ${BUILDLINK_PREFIX.freetds
}
32 PERL5_LDFLAGS
+= ${COMPILER_RPATH_FLAG}${_SYBASE}/lib
33 MAKE_ENV
+= SYBASE
=${_SYBASE
:Q
}
34 MAKE_PARAMS
+= --accept_test_defaults
35 MAKE_PARAMS
+= --chained Y
37 .if
!defined
(USE_SYBASE_OPENCLIENT
)
38 .
include "../../databases/freetds/buildlink3.mk"
41 .
include "../../lang/perl5/module.mk"
43 .if
!empty
(PKG_BUILD_OPTIONS.perl
:Mthreads
)
44 MAKE_PARAMS
+= --threaded_libs Y
46 MAKE_PARAMS
+= --threaded_libs N
49 .
include "../../databases/p5-DBI/buildlink3.mk"
50 .
include "../../devel/gettext-lib/buildlink3.mk"
51 .
include "../../mk/bsd.pkg.mk"