freebsd-ports/databases/pure-sql3/Makefile
Martin Wilke 91263b07cf Sql3 is an interface to the popular Sqlite3 database. The module provides a
minimal wrapper around Sqlite3's C interface which is designed to give the
developer access to all of Sqlite3's features in a way that is convenient
for Pure programmers.

WWW:	http://docs.pure-lang.googlecode.com/hg/pure-sql3.html

PR:		ports/156103
Submitted by:	Zhihao Yuan <lichray at gmail.com>
2011-06-27 14:45:31 +00:00

39 lines
867 B
Makefile

# New ports collection makefile for: pure-sql3
# Date created: 2011-03-18
# Whom: Zhihao Yuan <lichray@gmail.com>
#
# $FreeBSD$
#
PORTNAME= pure-sql3
PORTVERSION= 0.4
CATEGORIES= databases
MASTER_SITES= http://pure-lang.googlecode.com/files/
MAINTAINER= lichray@gmail.com
COMMENT= Pure langauge binding to the SQLite3 library
LIB_DEPENDS+= pure.7:${PORTSDIR}/lang/pure \
sqlite3:${PORTSDIR}/databases/sqlite3
LICENSE_FILE= ${WRKSRC}/COPYING
USE_GCC= 4.2+
USE_GMAKE= yes
PLIST_FILES= lib/pure/sql3.pure \
lib/pure/sql3util.so
MAKE_ARGS+= prefix=${PREFIX} CPPFLAGS+=-I${LOCALBASE}/include \
LDFLAGS+=-L${LOCALBASE}/lib CFLAGS="${CFLAGS}"
PORTEXAMPLES= *
.include <bsd.port.pre.mk>
post-install:
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
.include <bsd.port.post.mk>