mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
41 lines
851 B
Makefile
41 lines
851 B
Makefile
COMMENT = tool to build and unpack SPIFFS images
|
|
|
|
GH_ACCOUNT = igrr
|
|
GH_PROJECT = mkspiffs
|
|
GH_TAGNAME = 0.2.3
|
|
|
|
CATEGORIES = devel
|
|
|
|
MAINTAINER = Tracey Emery <tracey@openbsd.org>
|
|
|
|
SPFS_V = f5e26c4e933189593a71c6b82cda381a7b21e41c
|
|
SITES.spiffs = https://github.com/pellepl/spiffs/archive/
|
|
|
|
DISTFILES = ${GH_PROJECT}-${GH_TAGNAME}${EXTRACT_SUFX}
|
|
DISTFILES.spiffs = spiffs-${SPFS_V}{${SPFS_V}}${EXTRACT_SUFX}
|
|
|
|
# MIT both mkspiffs and spiffs
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} c m
|
|
|
|
# C++11
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
MAKE_FLAGS = CC="${CC}" CXX="${CXX}" \
|
|
VERSION=${GH_TAGNAME} \
|
|
SPIFFS_VERSION=${SPFS_V}
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
NO_TEST = Yes
|
|
|
|
post-extract:
|
|
rmdir ${WRKSRC}/spiffs
|
|
mv ${WRKDIR}/spiffs-${SPFS_V} ${WRKSRC}/spiffs
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mkspiffs ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|