2008-10-19 21:17:40 +02:00
|
|
|
# $NetBSD: Makefile,v 1.14 2008/10/19 19:17:46 he Exp $
|
2004-03-29 12:01:33 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= sybperl-2.16
|
|
|
|
PKGNAME= p5-${DISTNAME}
|
2008-10-19 21:17:40 +02:00
|
|
|
PKGREVISION= 6
|
2004-03-29 12:01:33 +02:00
|
|
|
CATEGORIES= databases perl5
|
|
|
|
MASTER_SITES= http://www.peppler.org/downloads/
|
|
|
|
|
|
|
|
MAINTAINER= grant@NetBSD.org
|
2006-10-04 22:46:42 +02:00
|
|
|
HOMEPAGE= http://www.peppler.org/freeware/sybperl.html
|
2004-03-29 12:01:33 +02:00
|
|
|
COMMENT= Perl modules for using Sybase/MS-SQL databases
|
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2005-07-13 20:01:18 +02:00
|
|
|
PERL5_PACKLIST= auto/Sybase/.packlist
|
2004-03-29 12:01:33 +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 20:39:33 +01:00
|
|
|
_SYBASE= ${BUILDLINK_PREFIX.freetds}
|
2004-03-29 12:01:33 +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 12:01:33 +02:00
|
|
|
|
|
|
|
.if !defined(USE_SYBASE_OPENCLIENT)
|
2004-05-08 06:50:50 +02:00
|
|
|
. include "../../databases/freetds/buildlink3.mk"
|
2004-03-29 12:01:33 +02:00
|
|
|
.endif
|
|
|
|
|
2006-01-04 20:39:33 +01:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
2004-03-29 12:01:33 +02:00
|
|
|
.include "../../lang/perl5/module.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|