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}
|
2004-08-30 22:02:37 +02:00
|
|
|
PORTREVISION= 1
|
2001-07-06 12:24:50 +02:00
|
|
|
CATEGORIES= databases perl5
|
|
|
|
MASTER_SITES= # none
|
|
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
DISTFILES= # none
|
|
|
|
|
2004-06-09 06:48:04 +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
|
|
|
|
2003-03-11 10:04:52 +01:00
|
|
|
EXTRACT_DEPENDS= ${NONEXISTENT}:${SQLRELAY_PORTDIR}:patch
|
2001-07-06 12:24:50 +02:00
|
|
|
LIB_DEPENDS= sqlrclient.0:${SQLRELAY_PORTDIR}
|
|
|
|
|
|
|
|
USE_PERL5= yes
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= ${SQLRELAY_CONFIGURE_ARGS} \
|
|
|
|
--with-perl-prefix="/usr"
|
2004-08-30 12:22:03 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
PTHREADINCLUDES="${PTHREAD_CFLAGS}" \
|
|
|
|
PTHREADLIBS="${PTHREAD_LIBS}"
|
2001-07-06 12:24:50 +02:00
|
|
|
|
|
|
|
.include "${.CURDIR}/../sqlrelay/Makefile.common"
|
|
|
|
|
|
|
|
do-extract:
|
|
|
|
${MKDIR} ${WRKDIR}
|
|
|
|
${LN} -fs `${SQLRELAY_WRKSRC_CMD}` ${WRKSRC}
|
2002-02-23 20:56:02 +01:00
|
|
|
${RM} -f ${WRKSRC}/config.cache
|
2004-08-21 14:25:42 +02:00
|
|
|
${CP} ${TEMPLATES}/config.sub ${WRKSRC}
|
|
|
|
${CP} ${TEMPLATES}/config.guess ${WRKSRC}
|
2004-08-30 08:12:52 +02:00
|
|
|
${RM} -rf ${WRKSRC}/src/api/perl/CVS
|
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.pre.mk>
|
|
|
|
|
|
|
|
.if ${PERL_LEVEL} < 500600
|
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|