freebsd-ports/databases/sqlite-ext-miscfuncs/Makefile

48 lines
1.1 KiB
Makefile
Raw Normal View History

PORTNAME= sqlite-ext-miscfuncs
PORTVERSION= 1.1
PORTREVISION= 2
CATEGORIES= databases
MASTER_SITES= http://www.sourcehosting.net/freebsd/distfiles/ \
LOCAL/glarkin
DISTNAME= ${SRCFILE}
EXTRACT_SUFX= # empty
MAINTAINER= ports@FreeBSD.org
COMMENT= Math, string, and aggregate function library for SQLite
WWW= https://www.sqlite.org/contrib
USES= localbase sqlite
DIST_SUBDIR= sqlite-ext
SRCFILE= extension-functions-${PORTVERSION}.c
LIBFILE= libsqlitemiscfuncs.so
INST_DIR= ${PREFIX}/libexec/${DIST_SUBDIR}
SUB_FILES= ${PORTDOCS}
SUB_LIST= LIBFILE=${LIBFILE}
2014-12-20 18:40:53 +01:00
PLIST_FILES= libexec/${DIST_SUBDIR}/${LIBFILE}
PORTDOCS= README
CFLAGS+= -fPIC -lm -shared
OPTIONS_DEFINE= DOCS
do-extract:
@${MKDIR} ${WRKSRC}
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${SRCFILE} ${WRKSRC}/
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} ${SRCFILE} -o ${LIBFILE}
do-install:
@${MKDIR} ${STAGEDIR}${INST_DIR}
${INSTALL_LIB} ${WRKSRC}/${LIBFILE} ${STAGEDIR}${INST_DIR}/
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/README ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>