diff options
author | pgollucci <pgollucci@FreeBSD.org> | 2010-06-10 09:40:31 +0800 |
---|---|---|
committer | pgollucci <pgollucci@FreeBSD.org> | 2010-06-10 09:40:31 +0800 |
commit | a1e70ee999f6fb5b9f1dcb3f0999dae6753de491 (patch) | |
tree | e16fb7cbfccbf713855f13dcfe8c2442fe8cd966 /databases/p5-DBIx-Class-Schema-Loader | |
parent | 975a0db4d318a92b21d9cb7558b238d8b5833949 (diff) | |
download | freebsd-ports-gnome-a1e70ee999f6fb5b9f1dcb3f0999dae6753de491.tar.gz freebsd-ports-gnome-a1e70ee999f6fb5b9f1dcb3f0999dae6753de491.tar.zst freebsd-ports-gnome-a1e70ee999f6fb5b9f1dcb3f0999dae6753de491.zip |
- Use bsd.port.options.mk
- Fix depends
- Fix Makefile order
Diffstat (limited to 'databases/p5-DBIx-Class-Schema-Loader')
-rw-r--r-- | databases/p5-DBIx-Class-Schema-Loader/Makefile | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/databases/p5-DBIx-Class-Schema-Loader/Makefile b/databases/p5-DBIx-Class-Schema-Loader/Makefile index b6558d2d6777..319ad0bfed0b 100644 --- a/databases/p5-DBIx-Class-Schema-Loader/Makefile +++ b/databases/p5-DBIx-Class-Schema-Loader/Makefile @@ -27,7 +27,30 @@ RUN_DEPENDS= p5-Carp-Clan>=0:${PORTSDIR}/devel/p5-Carp-Clan \ p5-Lingua-EN-Inflect-Phrase>=0.02:${PORTSDIR}/textproc/p5-Lingua-EN-Inflect-Phrase \ p5-namespace-autoclean>=0:${PORTSDIR}/devel/p5-namespace-autoclean \ p5-List-MoreUtils>=0:${PORTSDIR}/lang/p5-List-MoreUtils -BUILD_DEPENDS= ${RUN_DEPENDS} + +OPTIONS= SQLITE "SQLite Support" Off \ + MYSQL "MySQL Support" Off \ + PG "PostgreSQL Support" Off \ + ORACLE "Oracle Support (experimental)" Off + +.include <bsd.port.options.mk> + +.if defined(WITH_SQLITE) +RUN_DEPENDS+= p5-DBD-SQLite>=1.12:${PORTSDIR}/databases/p5-DBD-SQLite \ + p5-DBI>=1.56:${PORTSDIR}/databases/p5-DBI +.endif +.if defined(WITH_MYSQL) +RUN_DEPENDS+= p5-DBD-mysql>=4.004:${PORTSDIR}/databases/p5-DBD-mysql \ + p5-DBI>=1.56:${PORTSDIR}/databases/p5-DBI +.endif +.if defined(WITH_PG) +RUN_DEPENDS+= p5-DBD-Pg>=1.49:${PORTSDIR}/databases/p5-DBD-Pg \ + p5-DBI>=1.56:${PORTSDIR}/databases/p5-DBI +.endif +.if defined(WITH_ORACLE) +RUN_DEPENDS+= p5-DBD-Oracle>=0.19:${PORTSDIR}/databases/p5-DBD-Oracle \ + p5-DBI>=1.56:${PORTSDIR}/databases/p5-DBI +.endif PERL_CONFIGURE= 5.8.0+ @@ -65,28 +88,4 @@ post-extract: post-patch: ${FIND} ${WRKSRC} -name '*.orig' -print0 | ${XARGS} -0 ${RM} -OPTIONS= SQLITE "SQLite Support" Off \ - MYSQL "MySQL Support" Off \ - PG "PostgreSQL Support" Off \ - ORACLE "Oracle Support (experimental)" Off - -.include <bsd.port.pre.mk> - -.if defined(WITH_SQLITE) -RUN_DEPENDS+= p5-DBD-SQLite>=1.12:${PORTSDIR}/databases/p5-DBD-SQLite \ - p5-DBI>=1.56:${PORTSDIR}/databases/p5-DBI -.endif -.if defined(WITH_MYSQL) -RUN_DEPENDS+= p5-DBD-mysql>=4.004:${PORTSDIR}/databases/p5-DBD-mysql \ - p5-DBI>=1.56:${PORTSDIR}/databases/p5-DBI -.endif -.if defined(WITH_PG) -RUN_DEPENDS+= p5-DBD-Pg>=1.49:${PORTSDIR}/databases/p5-DBD-Pg \ - p5-DBI>=1.56:${PORTSDIR}/databases/p5-DBI -.endif -.if defined(WITH_ORACLE) -RUN_DEPENDS+= p5-DBD-Oracle>=0.19:${PORTSDIR}/databases/p5-DBD-Oracle \ - p5-DBI>=1.56:${PORTSDIR}/databases/p5-DBI -.endif - -.include <bsd.port.post.mk> +.include <bsd.port.mk> |