diff options
author | ryoon <ryoon> | 2011-12-18 16:57:22 +0000 |
---|---|---|
committer | ryoon <ryoon> | 2011-12-18 16:57:22 +0000 |
commit | b61a9e5b109c0d98158200921a79e72ec7c651bc (patch) | |
tree | b49592d14877114e50d33441d1022cd1aa0c504a | |
parent | 4039a2c24b6883f313862467731b64929c8b3a9d (diff) | |
download | pkgsrc-b61a9e5b109c0d98158200921a79e72ec7c651bc.tar.gz |
Fix build on NetBSD/i386 5.99.58.
* Some pkglint.
* Add options.mk and sqlite option (default: off).
More options may be introduced.
-rw-r--r-- | lang/spl/Makefile | 8 | ||||
-rw-r--r-- | lang/spl/PLIST | 3 | ||||
-rw-r--r-- | lang/spl/options.mk | 19 |
3 files changed, 27 insertions, 3 deletions
diff --git a/lang/spl/Makefile b/lang/spl/Makefile index 0c00ca18407..298f3ac6c79 100644 --- a/lang/spl/Makefile +++ b/lang/spl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2011/04/01 01:02:41 asau Exp $ +# $NetBSD: Makefile,v 1.13 2011/12/18 16:57:22 ryoon Exp $ # DISTNAME= spl-1.0pre3 @@ -10,6 +10,7 @@ MASTER_SITES= http://www.clifford.at/spl/releases/ \ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.clifford.at/spl/ COMMENT= The SPL Programming Language +LICENSE= gnu-gpl-v2 PKG_DESTDIR_SUPPORT= user-destdir @@ -32,8 +33,11 @@ BUILD_TARGET= all spldoc EGDIR= ${PREFIX}/share/examples/spl DOCDIR= ${PREFIX}/share/doc/spl +.include "options.mk" + +INSTALLATION_DIRS+= libexec/cgi-bin/webspl_cache + post-install: - ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/libexec/cgi-bin/webspl_cache ${CHMOD} a+rwx ${DESTDIR}${PREFIX}/libexec/cgi-bin/webspl_cache ${LN} -sf ${PREFIX}/lib/spl_modules ${DESTDIR}${PREFIX}/libexec/cgi-bin/spl_modules ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR} diff --git a/lang/spl/PLIST b/lang/spl/PLIST index 450526954b8..07318ed1620 100644 --- a/lang/spl/PLIST +++ b/lang/spl/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.5 2009/06/14 18:03:41 joerg Exp $ +@comment $NetBSD: PLIST,v 1.6 2011/12/18 16:57:22 ryoon Exp $ bin/spl-config bin/splrun bin/webspld @@ -20,6 +20,7 @@ lib/spl_modules/mod_format_ini.splb @comment lib/spl_modules/mod_gl.so lib/spl_modules/mod_prime.so lib/spl_modules/mod_sql.so +${PLIST.sqlite}lib/spl_modules/mod_sql_sqlite.so lib/spl_modules/mod_sql_utils.splb lib/spl_modules/mod_system.so lib/spl_modules/mod_task.so diff --git a/lang/spl/options.mk b/lang/spl/options.mk new file mode 100644 index 00000000000..98713ea7b49 --- /dev/null +++ b/lang/spl/options.mk @@ -0,0 +1,19 @@ +# $NetBSD: options.mk,v 1.1 2011/12/18 16:57:22 ryoon Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.spl + +PKG_SUPPORTED_OPTIONS= sqlite + +PLIST_VARS+= sqlite + +.include "../../mk/bsd.options.mk" + +### +### Use mysql or sqlite backend +### +.if !empty(PKG_OPTIONS:Msqlite) +.include "../../databases/sqlite3/buildlink3.mk" +PLIST.sqlite= yes +.else +MAKE_FLAGS= ENABLE_SQLITE_SUPPORT=0 +.endif |