blob: 61e3ea448f302782b2d2457f6773497e18dd905d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# $NetBSD: Makefile,v 1.2 2004/05/08 05:25:12 snj Exp $
#
DISTNAME= sybperl-2.16
PKGNAME= p5-${DISTNAME}
CATEGORIES= databases perl5
MASTER_SITES= http://www.peppler.org/downloads/
MAINTAINER= grant@NetBSD.org
HOMEPAGE= http://www.mbay.net/~mpeppler/
COMMENT= Perl modules for using Sybase/MS-SQL databases
USE_BUILDLINK3= YES
PERL5_PACKLIST= ${PERL5_SITEARCH}/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}/freetds
.endif
PERL5_LDFLAGS+= -Wl,${RPATH_FLAG}${_SYBASE}/lib
MAKE_ENV+= SYBASE=${_SYBASE}
.if !defined(USE_SYBASE_OPENCLIENT)
. include "../../databases/freetds/buildlink3.mk"
.endif
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"
|