[Midnightbsd-cvs] CVS Commit: Makefile: Updated to work with both the built in sqlite in
ctriv at midnightbsd.org
ctriv at midnightbsd.org
Tue Aug 7 16:56:10 EDT 2007
Log Message:
-----------
Updated to work with both the built in sqlite in -CURRENT, and the sqlite
port in 0.1-RELEASE.
Added LICENSE.
Modified Files:
--------------
mports/databases/p5-DBD-SQLite:
Makefile (r1.1 -> r1.2)
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/databases/p5-DBD-SQLite/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -Ldatabases/p5-DBD-SQLite/Makefile -Ldatabases/p5-DBD-SQLite/Makefile -u -r1.1 -r1.2
--- databases/p5-DBD-SQLite/Makefile
+++ databases/p5-DBD-SQLite/Makefile
@@ -15,29 +15,27 @@
MAINTAINER= ctriv at midnightbsd.org
COMMENT= Provides access to SQLite3 databases through the DBI
+LICENSE= perl
-# We use sqlite3's own library & headers since it is more recent
-# than the bundled version and has an incompatible DB file format.
-# In this way we can be sure DBD::SQLite can interoperate with
-# databases/sqlite3.
-BUILD_DEPENDS= sqlite>=3.3.3:${PORTSDIR}/databases/sqlite3
-RUN_DEPENDS= ${BUILD_DEPENDS}
+.if exists(/usr/lib/libsqlite3.a)
+SQLITE_LOCATION= /usr
+CONFIGURE_ARGS+= LIBS="-lpthread -lsqlite3"
+.else
+BUILD_DEPENDS= sqlite>=3.3.3:${PORTSDIR}/databases/sqlite3
+RUN_DEPENDS= ${BUILD_DEPENDS}
+SQLITE_LOCATION= ${LOCALBASE}
+.endif
PERL_CONFIGURE= yes
-CONFIGURE_ARGS+= USE_LOCAL_SQLITE=0
-CONFIGURE_ARGS+= SQLITE_LOCATION=${LOCALBASE}
+CONFIGURE_ARGS+= USE_LOCAL_SQLITE=0
+CONFIGURE_ARGS+= SQLITE_LOCATION=${SQLITE_LOCATION}
MAN3= DBD::SQLite.3
.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
post-patch:
${RM} -f ${WRKSRC}/getsqlite.pl
More information about the Midnightbsd-cvs
mailing list