2b8a41e2ed
due to freetds installation changes and may also depend on gettext-lib.) Include buildlink for gettext-lib, because CTlib.so uses libintl.so (noticed on build failure on DragonFly and then saw on NetBSD 2.1 too). Remove freetds subdirectory from the buildlink directory used during build. (This is because of recent installation changes for freetds.)
39 lines
1 KiB
Makefile
39 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.10 2006/01/04 19:39:33 reed Exp $
|
|
#
|
|
|
|
DISTNAME= sybperl-2.16
|
|
PKGNAME= p5-${DISTNAME}
|
|
PKGREVISION= 4
|
|
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
|
|
|
|
PERL5_PACKLIST= 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}
|
|
.endif
|
|
|
|
PERL5_LDFLAGS+= ${COMPILER_RPATH_FLAG}${_SYBASE}/lib
|
|
MAKE_ENV+= SYBASE=${_SYBASE:Q}
|
|
|
|
.if !defined(USE_SYBASE_OPENCLIENT)
|
|
. include "../../databases/freetds/buildlink3.mk"
|
|
.endif
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../lang/perl5/module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|