diff options
author | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2013-10-29 02:07:34 +0000 |
---|---|---|
committer | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2013-10-29 02:07:34 +0000 |
commit | 700a870f9c17e798f3b0d41045aa8564d37ec95a (patch) | |
tree | c3927f5ac223c1907feeb660cd6c5d614c755b60 /databases/luadbi | |
parent | a86fa562f0a46b97689ddf3e33b5acb20a8fcc10 (diff) | |
download | ports-700a870f9c17e798f3b0d41045aa8564d37ec95a.tar.gz ports-700a870f9c17e798f3b0d41045aa8564d37ec95a.zip |
Notes
Diffstat (limited to 'databases/luadbi')
-rw-r--r-- | databases/luadbi/Makefile | 67 | ||||
-rw-r--r-- | databases/luadbi/distinfo | 2 | ||||
-rw-r--r-- | databases/luadbi/files/patch-Makefile | 14 | ||||
-rw-r--r-- | databases/luadbi/pkg-descr | 4 |
4 files changed, 87 insertions, 0 deletions
diff --git a/databases/luadbi/Makefile b/databases/luadbi/Makefile new file mode 100644 index 000000000000..7a8a4da0f88b --- /dev/null +++ b/databases/luadbi/Makefile @@ -0,0 +1,67 @@ +# Created by: Olexander Melnyk <olexander.v.melnyk@gmail.com> +# $FreeBSD$ + +PORTNAME= luadbi +PORTVERSION= 0.5 +CATEGORIES= databases +MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} +DISTNAME= ${PORTNAME}.${PORTVERSION} + +MAINTAINER= olexander.v.melnyk@gmail.com +COMMENT= LuaDBI driver + +LICENSE= MIT + +NO_WRKSUBDIR= yes + +USE_LUA= 5.1 +USES= gmake + +CFLAGS+= -fpic -I${LOCALBASE}/include -I${LUA_INCDIR} -I. \ + -I${LOCALBASE}/include/postgresql/server +LDFLAGS+= -shared -L${LOCALBASE}/lib -L${LUA_LIBDIR} +MAKE_ENV+= COMMON_LDFLAGS="${LDFLAGS}" + +OPTIONS_MULTI= DATABASE +OPTIONS_MULTI_DATABASE= MYSQL SQLITE3 PGSQL +OPTIONS_DEFAULT= MYSQL + +PLIST_FILES= %%LUA_MODSHAREDIR%%/DBI.lua + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MMYSQL} +USE_MYSQL= yes +LDFLAGS+= -L ${LOCALBASE}/lib/mysql +CFLAGS+= -I ${LOCALBASE}/include/mysql +ALL_TARGET+= mysql +PLIST_FILES+= %%LUA_MODLIBDIR%%/dbdmysql.so +.endif + +.if ${PORT_OPTIONS:MSQLITE3} +USE_SQLITE= 3 +ALL_TARGET+= sqlite3 +PLIST_FILES+= %%LUA_MODLIBDIR%%/dbdsqlite3.so +.endif + +.if ${PORT_OPTIONS:MPGSQL} +USE_PGSQL= yes +ALL_TARGET+= psql +PLIST_FILES+= %%LUA_MODLIBDIR%%/dbdpostgresql.so +.endif + +do-install: + @${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR} + @${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR} + ${CP} ${WRKSRC}/DBI.lua ${STAGEDIR}${LUA_MODSHAREDIR} +.if ${PORT_OPTIONS:MMYSQL} + ${INSTALL_PROGRAM} ${WRKSRC}/dbdmysql.so ${STAGEDIR}${LUA_MODLIBDIR} +.endif +.if ${PORT_OPTIONS:MSQLITE3} + ${INSTALL_PROGRAM} ${WRKSRC}/dbdsqlite3.so ${STAGEDIR}${LUA_MODLIBDIR} +.endif +.if ${PORT_OPTIONS:MPGSQL} + ${INSTALL_PROGRAM} ${WRKSRC}/dbdpostgresql.so ${STAGEDIR}${LUA_MODLIBDIR} +.endif + +.include <bsd.port.mk> diff --git a/databases/luadbi/distinfo b/databases/luadbi/distinfo new file mode 100644 index 000000000000..19e0cc0e9cfe --- /dev/null +++ b/databases/luadbi/distinfo @@ -0,0 +1,2 @@ +SHA256 (luadbi.0.5.tar.gz) = 49116458dd80052536bf5d7e2b2a1f5a0fa42a671ce77f1cb7355ef7faeb331e +SIZE (luadbi.0.5.tar.gz) = 22454 diff --git a/databases/luadbi/files/patch-Makefile b/databases/luadbi/files/patch-Makefile new file mode 100644 index 000000000000..c264e449d82a --- /dev/null +++ b/databases/luadbi/files/patch-Makefile @@ -0,0 +1,14 @@ +--- Makefile.orig 2010-07-16 09:22:13.000000000 +0300 ++++ Makefile 2013-10-17 18:24:00.000000000 +0300 +@@ -1,11 +1,8 @@ +-CC=gcc +-CFLAGS=-g -pedantic -Wall -O2 -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . + AR=ar rcu + RANLIB=ranlib + RM=rm -rf + MKDIR=mkdir -p + +-COMMON_LDFLAGS= + MYSQL_LDFLAGS=$(COMMON_LDFLAGS) -lmysqlclient + PSQL_LDFLAGS=$(COMMON_LDFLAGS) -lpq + SQLITE3_LDFLAGS=$(COMMON_LDFLAGS) -lsqlite3 diff --git a/databases/luadbi/pkg-descr b/databases/luadbi/pkg-descr new file mode 100644 index 000000000000..91913a27dac7 --- /dev/null +++ b/databases/luadbi/pkg-descr @@ -0,0 +1,4 @@ +LuaDBI is a database interface library for Lua. +It is designed to provide a RDBMS agnostic API for handling database operations. + +WWW: http://code.google.com/p/luadbi/ |