Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / databases / p5-DBD-Sybase / Makefile
blobaa298dd4a293686f2c0df85d08badb67b33e1954
1 # $NetBSD: Makefile,v 1.36 2012/10/03 21:54:16 wiz Exp $
4 DISTNAME= DBD-Sybase-1.13
5 PKGNAME= p5-${DISTNAME}
6 PKGREVISION= 2
7 SVR4_PKGNAME= p5dsy
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
19 BUILD_DEFS+= SYBASE
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}
24 _SYBASE= ${SYBASE}
25 . else
26 PKG_FAIL_REASON+= "You must define SYBASE to the base directory of your Open Client."
27 . endif
28 .else
29 _SYBASE= ${BUILDLINK_PREFIX.freetds}
30 .endif
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"
39 .endif
41 .include "../../lang/perl5/module.mk"
43 .if !empty(PKG_BUILD_OPTIONS.perl:Mthreads)
44 MAKE_PARAMS+= --threaded_libs Y
45 .else
46 MAKE_PARAMS+= --threaded_libs N
47 .endif
49 .include "../../databases/p5-DBI/buildlink3.mk"
50 .include "../../devel/gettext-lib/buildlink3.mk"
51 .include "../../mk/bsd.pkg.mk"