2001-07-06 12:24:50 +02:00
|
|
|
# New ports collection makefile for: Perl5 modules for SQL Relay
|
|
|
|
# Date created: 2 July 2001
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ${SQLRELAY_PORTNAME}
|
|
|
|
PORTVERSION= ${SQLRELAY_PORTVERSION}
|
2005-02-16 10:29:15 +01:00
|
|
|
PORTREVISION= 2
|
2001-07-06 12:24:50 +02:00
|
|
|
CATEGORIES= databases perl5
|
|
|
|
MASTER_SITES= # none
|
|
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
DISTFILES= # none
|
|
|
|
|
2007-07-04 09:19:58 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-18 06:52:56 +01:00
|
|
|
COMMENT= Perl5 modules to access to SQL Relay, including a DBD interface
|
2001-07-06 12:24:50 +02:00
|
|
|
|
2007-07-03 19:09:26 +02:00
|
|
|
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
|
|
|
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
2003-03-11 10:04:52 +01:00
|
|
|
EXTRACT_DEPENDS= ${NONEXISTENT}:${SQLRELAY_PORTDIR}:patch
|
2004-10-16 21:03:26 +02:00
|
|
|
LIB_DEPENDS= sqlrclient.0:${SQLRELAY_PORTDIR}
|
2001-07-06 12:24:50 +02:00
|
|
|
|
2010-01-02 13:11:29 +01:00
|
|
|
BROKEN= does not build
|
|
|
|
|
2001-07-06 12:24:50 +02:00
|
|
|
USE_PERL5= yes
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= ${SQLRELAY_CONFIGURE_ARGS} \
|
2005-02-21 15:15:59 +01:00
|
|
|
--with-pod2man=`which pod2man` \
|
2001-07-06 12:24:50 +02:00
|
|
|
--with-perl-prefix="/usr"
|
2004-08-30 12:22:03 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2004-10-16 21:03:26 +02:00
|
|
|
${SQLRELAY_CONFIGURE_ENV}
|
2001-07-06 12:24:50 +02:00
|
|
|
|
2007-08-04 13:41:30 +02:00
|
|
|
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
2005-02-16 10:29:15 +01:00
|
|
|
MAN3= DBD::SQLRelay.3 SQLRelay::Connection.3 SQLRelay::Cursor.3
|
|
|
|
|
2001-07-06 12:24:50 +02:00
|
|
|
.include "${.CURDIR}/../sqlrelay/Makefile.common"
|
2005-02-21 15:15:59 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2001-07-06 12:24:50 +02:00
|
|
|
|
|
|
|
do-extract:
|
|
|
|
${MKDIR} ${WRKDIR}
|
|
|
|
${LN} -fs `${SQLRELAY_WRKSRC_CMD}` ${WRKSRC}
|
2004-08-30 08:12:52 +02:00
|
|
|
${RM} -rf ${WRKSRC}/src/api/perl/CVS
|
2001-07-06 12:24:50 +02:00
|
|
|
|
2005-02-16 10:29:15 +01:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's/installman3dir/siteman3dir/g' \
|
|
|
|
${WRKSRC}/src/api/perl/*/Makefile
|
|
|
|
|
2001-07-06 12:24:50 +02:00
|
|
|
do-build:
|
|
|
|
for dir in ${WRKSRC}/src/api/perl/*; do \
|
|
|
|
cd $$dir && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} \
|
|
|
|
${MAKE_ARGS} ${ALL_TARGET}; \
|
|
|
|
done
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
for dir in ${WRKSRC}/src/api/perl/*; do \
|
|
|
|
cd $$dir && \
|
2004-08-30 12:22:03 +02:00
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} \
|
2001-07-06 12:24:50 +02:00
|
|
|
${MAKE_ARGS} ${INSTALL_TARGET}; \
|
|
|
|
done
|
|
|
|
|
2003-09-16 07:43:52 +02:00
|
|
|
.include <bsd.port.post.mk>
|