diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2019-12-03 17:40:32 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2019-12-03 17:40:32 +0800 |
commit | 42d4f1e8d6a4d16522ff3f4810cab7626177745c (patch) | |
tree | cd4a0d580c80a6495bb805df2823651d61663e10 /databases | |
parent | 11b4b494a07ba6dc542840e9eed6893bdf809866 (diff) | |
download | freebsd-ports-gnome-42d4f1e8d6a4d16522ff3f4810cab7626177745c.tar.gz freebsd-ports-gnome-42d4f1e8d6a4d16522ff3f4810cab7626177745c.tar.zst freebsd-ports-gnome-42d4f1e8d6a4d16522ff3f4810cab7626177745c.zip |
- Simplify extraction
- Switch to USES=localbase (and fix PREFIX vs. LOCALBASE misuse)
- Unsilence build and installation
- User proper command for library installation
- Respect LDFLAGS
- Update WWW
Diffstat (limited to 'databases')
-rw-r--r-- | databases/sqlite-ext-miscfuncs/Makefile | 27 | ||||
-rw-r--r-- | databases/sqlite-ext-miscfuncs/pkg-descr | 2 |
2 files changed, 14 insertions, 15 deletions
diff --git a/databases/sqlite-ext-miscfuncs/Makefile b/databases/sqlite-ext-miscfuncs/Makefile index 523f9e99ff9a..fd299a20db39 100644 --- a/databases/sqlite-ext-miscfuncs/Makefile +++ b/databases/sqlite-ext-miscfuncs/Makefile @@ -8,43 +8,42 @@ CATEGORIES= databases MASTER_SITES= http://www.sourcehosting.net/freebsd/distfiles/ \ LOCAL/glarkin DISTNAME= ${SRCFILE} -EXTRACT_SUFX= +EXTRACT_SUFX= # empty MAINTAINER= ports@FreeBSD.org COMMENT= Math, string, and aggregate function library for SQLite -USES= sqlite +USES= localbase sqlite DIST_SUBDIR= sqlite-ext -NO_WRKSUBDIR= yes SRCFILE= extension-functions-${PORTVERSION}.c LIBFILE= libsqlitemiscfuncs.so INST_DIR= ${PREFIX}/libexec/${DIST_SUBDIR} SUB_FILES= ${PORTDOCS} -SUB_LIST+= LIBFILE=${LIBFILE} - -EXTRACT_CMD= ${CP} -EXTRACT_BEFORE_ARGS= -EXTRACT_AFTER_ARGS= ${WRKSRC}/ +SUB_LIST= LIBFILE=${LIBFILE} PLIST_FILES= libexec/${DIST_SUBDIR}/${LIBFILE} PORTDOCS= README -CFLAGS+= -I${PREFIX}/include -fPIC -lm -shared +CFLAGS+= -fPIC -lm -shared OPTIONS_DEFINE= DOCS +do-extract: + @${MKDIR} ${WRKSRC} + @${CP} ${DISTDIR}/${DIST_SUBDIR}/${SRCFILE} ${WRKSRC}/ + do-build: - @cd ${WRKSRC} && ${CC} ${CFLAGS} ${SRCFILE} -o ${LIBFILE} + cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} ${SRCFILE} -o ${LIBFILE} do-install: - @${INSTALL} -d ${STAGEDIR}${PREFIX}/libexec/${DIST_SUBDIR} - @${INSTALL_PROGRAM} ${WRKSRC}/${LIBFILE} ${STAGEDIR}${INST_DIR} + @${MKDIR} ${STAGEDIR}${INST_DIR} + ${INSTALL_LIB} ${WRKSRC}/${LIBFILE} ${STAGEDIR}${INST_DIR}/ post-install-DOCS-on: - @${INSTALL} -d ${STAGEDIR}${DOCSDIR} - @${CP} ${WRKDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/README ${STAGEDIR}${DOCSDIR}/ .include <bsd.port.mk> diff --git a/databases/sqlite-ext-miscfuncs/pkg-descr b/databases/sqlite-ext-miscfuncs/pkg-descr index 9bb0e8f92c09..3843c4da818a 100644 --- a/databases/sqlite-ext-miscfuncs/pkg-descr +++ b/databases/sqlite-ext-miscfuncs/pkg-descr @@ -16,4 +16,4 @@ Aggregate functions: stdev, variance, mode, median, lower_quartile, upper_quartile -WWW: http://www.sqlite.org/contrib +WWW: https://www.sqlite.org/contrib |