summaryrefslogtreecommitdiff
path: root/databases/sqlite-ext-miscfuncs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/sqlite-ext-miscfuncs/Makefile')
-rw-r--r--databases/sqlite-ext-miscfuncs/Makefile58
1 files changed, 58 insertions, 0 deletions
diff --git a/databases/sqlite-ext-miscfuncs/Makefile b/databases/sqlite-ext-miscfuncs/Makefile
new file mode 100644
index 000000000000..770670784941
--- /dev/null
+++ b/databases/sqlite-ext-miscfuncs/Makefile
@@ -0,0 +1,58 @@
+# New ports collection makefile for: sqlite-ext-miscfuncs
+# Date created: 28 Jan 2010
+# Whom: Greg Larkin <glarkin@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= sqlite-ext-miscfuncs
+PORTVERSION= 1.0
+CATEGORIES= databases
+MASTER_SITES= http://www.sqlite.org/contrib/download/${DISTFILES}/download/ \
+ LOCAL/glarkin
+DISTNAME= ${SRCFILE}
+EXTRACT_SUFX=
+
+MAINTAINER= glarkin@FreeBSD.org
+COMMENT= Math, string, and aggregate function library for SQLite
+
+USE_SQLITE= yes
+DIST_SUBDIR= sqlite-ext
+NO_WRKSUBDIR= yes
+
+SRCFILE= extension-functions.c
+LIBFILE= libsqlitemiscfuncs.so
+INST_DIR= ${PREFIX}/libexec/${DIST_SUBDIR}
+USE_LDCONFIG= ${INST_DIR}
+
+SUB_FILES= ${PORTDOCS}
+SUB_LIST+= LIBFILE=${LIBFILE}
+
+FETCH_BEFORE_ARGS= -o ${SRCFILE}?get=25
+
+EXTRACT_CMD= ${CP}
+EXTRACT_BEFORE_ARGS=
+EXTRACT_AFTER_ARGS= ${WRKSRC}/
+
+PLIST_DIRS= libexec/${DIST_SUBDIR}
+PLIST_FILES= ${PLIST_DIRS}/${LIBFILE}
+
+PORTDOCS= README
+
+CFLAGS+= -I${PREFIX}/include -fPIC -lm -shared
+
+do-build:
+ @cd ${WRKSRC} && ${CC} ${CFLAGS} ${SRCFILE} -o ${LIBFILE}
+
+do-install:
+ @${INSTALL} -d ${PREFIX}/libexec/${DIST_SUBDIR}
+ @${INSTALL_PROGRAM} ${WRKSRC}/${LIBFILE} ${INST_DIR}
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${INSTALL} -d ${DOCSDIR}
+ @${CP} ${WRKDIR}/${PORTDOCS} ${DOCSDIR}
+.endif
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>