freebsd-ports/databases/sqlite-ext-miscfuncs/Makefile
Baptiste Daroussin 3f86adbc94 Cleanup plist
2014-12-20 17:40:53 +00:00

51 lines
1.1 KiB
Makefile

# Created by: Greg Larkin <glarkin@FreeBSD.org>
# $FreeBSD$
PORTNAME= sqlite-ext-miscfuncs
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://www.sourcehosting.net/freebsd/distfiles/ \
LOCAL/glarkin
DISTNAME= ${SRCFILE}
EXTRACT_SUFX=
MAINTAINER= ports@FreeBSD.org
COMMENT= Math, string, and aggregate function library for SQLite
USE_SQLITE= yes
DIST_SUBDIR= sqlite-ext
NO_WRKSUBDIR= yes
SRCFILE= extension-functions-${PORTVERSION}.c
LIBFILE= libsqlitemiscfuncs.so
INST_DIR= ${PREFIX}/libexec/${DIST_SUBDIR}
USE_LDCONFIG= ${INST_DIR}
SUB_FILES= ${PORTDOCS}
SUB_LIST+= LIBFILE=${LIBFILE}
EXTRACT_CMD= ${CP}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= ${WRKSRC}/
PLIST_FILES= libexec/${DIST_SUBDIR}/${LIBFILE}
PORTDOCS= README
CFLAGS+= -I${PREFIX}/include -fPIC -lm -shared
OPTIONS_DEFINE= DOCS
do-build:
@cd ${WRKSRC} && ${CC} ${CFLAGS} ${SRCFILE} -o ${LIBFILE}
do-install:
@${INSTALL} -d ${STAGEDIR}${PREFIX}/libexec/${DIST_SUBDIR}
@${INSTALL_PROGRAM} ${WRKSRC}/${LIBFILE} ${STAGEDIR}${INST_DIR}
post-install:
@${INSTALL} -d ${STAGEDIR}${DOCSDIR}
@${CP} ${WRKDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>