1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00
freebsd-ports/databases/sqlite-ext-miscfuncs/Makefile
Mathieu Arnold f899c758a6 When there is a do-install target, do not use a post-install target, do
everything at once.  Sometime, rename post-install into a options helper
target.

I did not fix ports that were such a mess that I could not figure out
what they really wanted to do.  I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-19 11:04:13 +00:00

52 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
USES= sqlite
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-DOCS-on:
@${INSTALL} -d ${STAGEDIR}${DOCSDIR}
@${CP} ${WRKDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>