mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-13 20:11:19 +02:00
create bsd12 branch
This commit is contained in:
55
data/sqlite3/Makefile
Normal file
55
data/sqlite3/Makefile
Normal file
@@ -0,0 +1,55 @@
|
||||
#
|
||||
# $Id: Makefile 2316 2009-09-02 08:41:08Z root $
|
||||
#
|
||||
PORTNAME= sqlite
|
||||
PORTVERSION= 3.30.1
|
||||
CATEGORIES= databases
|
||||
#MASTER_SITES= https://www.sqlite.org/2017/ http://www2.sqlite.org/2017/ http://www3.sqlite.org/2017/
|
||||
#DISTNAME= sqlite-autoconf-${PORTVERSION:C/\.([[:digit:]])[[:>:]]/0\1/g:S/.//g}00
|
||||
MASTER_SITES= https://www.sqlite.org/2019/ http://www2.sqlite.org/2019/ http://www3.sqlite.org/2019/
|
||||
DISTNAME= sqlite-autoconf-${PORTVERSION:C/\.([[:digit:]])[[:>:]]/0\1/g:S/.//g}00
|
||||
|
||||
|
||||
MAINTAINER= onborodin@gmail.com
|
||||
COMMENT= An SQL database engine in a C library
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if (${OSVERSION} > 110000)
|
||||
#BUILD_DEPENDS+= makeinfo:system/texinfo
|
||||
LIB_DEPENDS+= libreadline.so:devel/libreadline
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
.endif
|
||||
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USES+= gmake
|
||||
USE_DOS2UNIX= *.pc.in
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX}
|
||||
CONFIGURE_ARGS+= --enable-readline
|
||||
CONFIGURE_ARGS+= --enable-editline
|
||||
CONFIGURE_ARGS+= --enable-threadsafe
|
||||
#CONFIGURE_ARGS+= --enable-fts5
|
||||
#CONFIGURE_ARGS+= --enable-json1
|
||||
_CFLAGS+= -DSQLITE_SECURE_DELETE=1
|
||||
_CFLAGS+= -DSQLITE_ENABLE_FTS3=1
|
||||
_CFLAGS+= -DSQLITE_ENABLE_UNLOCK_NOTIFY=1
|
||||
_CFLAGS+= -DSQLITE_ENABLE_FTS3=1
|
||||
_CFLAGS+= -DSQLITE_ENABLE_RTREE=1
|
||||
_CFLAGS+= -DSQLITE_ENABLE_DBSTAT_VTAB=1
|
||||
_CFLAGS+= -DSQLITE_ENABLE_JSON1=1
|
||||
_CFLAGS+= -DSQLITE_ENABLE_FTS4=1
|
||||
_CFLAGS+= -DSQLITE_ENABLE_FTS5=1
|
||||
_CFLAGS+= -DBUILDING_NODE_EXTENSION=1
|
||||
|
||||
CFLAGS+= ${_CFLAGS}
|
||||
CPPFLAGS+= ${_CFLAGS}
|
||||
INSTALLS_SHLIB= yes
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's|\r\n|\n|' ${WRKSRC}/*.pc.in
|
||||
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
#EOF
|
||||
3
data/sqlite3/distinfo
Normal file
3
data/sqlite3/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1570883162
|
||||
SHA256 (sqlite-autoconf-3300100.tar.gz) = 8c5a50db089bd2a1b08dbc5b00d2027602ca7ff238ba7658fabca454d4298e60
|
||||
SIZE (sqlite-autoconf-3300100.tar.gz) = 2848951
|
||||
47
data/sqlite3/files/patch-x-ltmain.sh
Normal file
47
data/sqlite3/files/patch-x-ltmain.sh
Normal file
@@ -0,0 +1,47 @@
|
||||
--- ./ltmain.sh.orig 2016-01-20 17:50:05.000000000 +0200
|
||||
+++ ./ltmain.sh 2016-02-04 20:50:14.220761000 +0200
|
||||
@@ -8805,17 +8805,12 @@
|
||||
#
|
||||
case $version_type in
|
||||
# correct linux to gnu/linux during the next big refactor
|
||||
- darwin|freebsd-elf|linux|osf|windows|none)
|
||||
+ darwin|freebsd*|linux|osf|windows|none)
|
||||
func_arith $number_major + $number_minor
|
||||
current=$func_arith_result
|
||||
age=$number_minor
|
||||
revision=$number_revision
|
||||
;;
|
||||
- freebsd-aout|qnx|sunos)
|
||||
- current=$number_major
|
||||
- revision=$number_minor
|
||||
- age=0
|
||||
- ;;
|
||||
irix|nonstopux)
|
||||
func_arith $number_major + $number_minor
|
||||
current=$func_arith_result
|
||||
@@ -8891,15 +8886,17 @@
|
||||
esac
|
||||
;;
|
||||
|
||||
- freebsd-aout)
|
||||
+# freebsd-aout)
|
||||
+# major=.$current
|
||||
+# versuffix=.$current.$revision
|
||||
+# ;;
|
||||
+
|
||||
+ freebsd*)
|
||||
+# func_arith $current - $age
|
||||
+# major=.$func_arith_result
|
||||
+# versuffix=$major
|
||||
major=.$current
|
||||
- versuffix=.$current.$revision
|
||||
- ;;
|
||||
-
|
||||
- freebsd-elf)
|
||||
- func_arith $current - $age
|
||||
- major=.$func_arith_result
|
||||
- versuffix=$major.$age.$revision
|
||||
+ versuffix=.$current
|
||||
;;
|
||||
|
||||
irix | nonstopux)
|
||||
11
data/sqlite3/files/patch-x-shell.c
Normal file
11
data/sqlite3/files/patch-x-shell.c
Normal file
@@ -0,0 +1,11 @@
|
||||
--- ./shell.c.orig 2016-01-20 17:50:03.000000000 +0200
|
||||
+++ ./shell.c 2016-02-04 20:41:23.654611000 +0200
|
||||
@@ -68,7 +68,7 @@
|
||||
#endif
|
||||
|
||||
#if HAVE_EDITLINE
|
||||
-# include <editline/readline.h>
|
||||
+# include <edit/readline/readline.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_EDITLINE || HAVE_READLINE
|
||||
7
data/sqlite3/pkg-descr
Normal file
7
data/sqlite3/pkg-descr
Normal file
@@ -0,0 +1,7 @@
|
||||
SQLite is an SQL database engine in a C library. Programs that link the SQLite
|
||||
library can have SQL database access without running a separate RDBMS process.
|
||||
The distribution comes with a standalone command-line access program (sqlite)
|
||||
that can be used to administer an SQLite database and which serves as an
|
||||
example of how to use the SQLite library.
|
||||
|
||||
WWW: http://www.sqlite.org/
|
||||
9
data/sqlite3/pkg-plist
Normal file
9
data/sqlite3/pkg-plist
Normal file
@@ -0,0 +1,9 @@
|
||||
bin/sqlite3
|
||||
include/sqlite3.h
|
||||
include/sqlite3ext.h
|
||||
lib/libsqlite3.a
|
||||
lib/libsqlite3.la
|
||||
lib/libsqlite3.so
|
||||
lib/libsqlite3.so.8
|
||||
lib/pkgconfig/sqlite3.pc
|
||||
man/man1/sqlite3.1.gz
|
||||
Reference in New Issue
Block a user