aboutsummaryrefslogtreecommitdiffstats
path: root/databases/sqlite2
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-08-06 12:34:23 +0800
committeradamw <adamw@FreeBSD.org>2014-08-06 12:34:23 +0800
commita46f8bdcd0bd94d6fe1cdcc8ce6a6f67bd2e39a8 (patch)
treed206a205dd3870d245c26875f1da2aaa627aad64 /databases/sqlite2
parent0a17597462ff11896ad3e619b25fc9df0263fcef (diff)
downloadfreebsd-ports-gnome-a46f8bdcd0bd94d6fe1cdcc8ce6a6f67bd2e39a8.tar.gz
freebsd-ports-gnome-a46f8bdcd0bd94d6fe1cdcc8ce6a6f67bd2e39a8.tar.zst
freebsd-ports-gnome-a46f8bdcd0bd94d6fe1cdcc8ce6a6f67bd2e39a8.zip
In some straightforward situations, protect examples behind PORTEXAMPLES,
adding EXAMPLES to OPTIONS_DEFINE where necessary. In a couple instances, correct examples being controlled by the DOCS option.
Diffstat (limited to 'databases/sqlite2')
-rw-r--r--databases/sqlite2/Makefile2
-rw-r--r--databases/sqlite2/pkg-plist4
2 files changed, 3 insertions, 3 deletions
diff --git a/databases/sqlite2/Makefile b/databases/sqlite2/Makefile
index 816948a3ba32..b4f20bcdd6d5 100644
--- a/databases/sqlite2/Makefile
+++ b/databases/sqlite2/Makefile
@@ -21,7 +21,7 @@ EXAMPLESDIR= ${PREFIX}/share/examples/sqlite2
EXTRACT_AFTER_ARGS= --exclude CVS
-OPTIONS_DEFINE= TCL THREADS DOCS
+OPTIONS_DEFINE= TCL THREADS DOCS EXAMPLES
.if !exists(/usr/lib/libreadline.so)
MAKE_ARGS= READLINE_FLAGS="-DHAVE_READLINE=1 -I${LOCALBASE}/include -L${LOCALBASE}/lib"
diff --git a/databases/sqlite2/pkg-plist b/databases/sqlite2/pkg-plist
index bc9b25f7264f..5fd9ba1adcf6 100644
--- a/databases/sqlite2/pkg-plist
+++ b/databases/sqlite2/pkg-plist
@@ -7,5 +7,5 @@ libdata/pkgconfig/sqlite.pc
%%WITH_TCLWRAPPER%%lib/sqlite/libtclsqlite.so
%%WITH_TCLWRAPPER%%lib/sqlite/pkgIndex.tcl
%%WITH_TCLWRAPPER%%@dirrm lib/sqlite
-%%EXAMPLESDIR%%/example.tcl
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.tcl
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%