mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
f6d56007b9
While there, cleanup, and sort depends. When build and run dependencies are the same, there are three ways to avoid duplicating the list while not adding the framework added BUILD_DEPENDS to the RUN_DEPENDS. In order of preference, they are: 1) use RUN_DEPENDS to set BUILD_DEPENDS: BUILD_DEPENDS= ${RUN_DEPENDS} RUN_DEPENDS= foo:bar/baz 2) create another variable and use it: MY_DEPENDS= foo:bar/baz BUILD_DEPENDS= ${MY_DEPENDS} RUN_DEPENDS= ${MY_DEPENDS} 3) use BUILD_DEPENDS to set RUN_DEPENDS and force evaluation: BUILD_DEPENDS= foo:bar/baz RUN_DEPENDS:= ${BUILD_DEPENDS} Sponsored by: Absolight
36 lines
899 B
Makefile
36 lines
899 B
Makefile
# Created by: mat
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= Class-DBI-Loader
|
|
PORTVERSION= 0.34
|
|
PORTREVISION= 2
|
|
CATEGORIES= databases perl5
|
|
MASTER_SITES= CPAN
|
|
MASTER_SITE_SUBDIR= CPAN:DMAKI
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= perl@FreeBSD.org
|
|
COMMENT= Dynamic definition of Class::DBI sub classes
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
RUN_DEPENDS= p5-Class-DBI>=0.89:databases/p5-Class-DBI \
|
|
p5-DBI>=1.3:databases/p5-DBI \
|
|
p5-Lingua-EN-Inflect>=0:textproc/p5-Lingua-EN-Inflect
|
|
|
|
USES= perl5
|
|
USE_PERL5= configure
|
|
|
|
OPTIONS_DEFINE= PGSQL MYSQL SQLITE DOCS
|
|
|
|
MYSQL_RUN_DEPENDS= p5-Class-DBI-mysql>=0:databases/p5-Class-DBI-mysql
|
|
PGSQL_RUN_DEPENDS= p5-Class-DBI-Pg>=0:databases/p5-Class-DBI-Pg
|
|
SQLITE_RUN_DEPENDS= p5-Class-DBI-SQLite>=0:databases/p5-Class-DBI-SQLite
|
|
|
|
PORTDOCS= Changes README
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|