Same change as splinter: DISTFILES= # empty and do-extract fills WRKSRC from ext/src/wikid through tools/ext-extract.sh, so there is no tarball and no distinfo to regenerate after a commit. Verified: bmake -C pkgsrc/misc/wikid package built wikid-0.1.tgz.
43 lines
1.5 KiB
Makefile
43 lines
1.5 KiB
Makefile
# $Makronix$
|
|
#
|
|
# wikid -- one of the project's own programs, the source is ext/src/wikid.
|
|
|
|
DISTNAME= wikid-0.1
|
|
CATEGORIES= misc
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= lotherk@lother.io
|
|
COMMENT= Wiki for the agent fleet, an MCP server
|
|
LICENSE= cncl-1.0
|
|
|
|
NO_CONFIGURE= yes
|
|
NO_BUILDLINK= yes
|
|
BUILD_TARGET= all
|
|
INSTALL_TARGET= install
|
|
|
|
MAKE_FLAGS+= PREFIX=${PREFIX}
|
|
MAKE_FLAGS+= DESTDIR=${DESTDIR}
|
|
|
|
# The Makefile's CFLAGS default (-std=c99 ... -Werror) is replaced by the
|
|
# package's flags when pkgsrc puts CFLAGS in the environment: say the dialect
|
|
# again, and no -Werror -- a warning is not a reason to stop the build.
|
|
MAKE_FLAGS+= CFLAGS=${CFLAGS:Q}\ -std=c99
|
|
|
|
# The source is ext/src/wikid in this repository, the tree git tracks and a person
|
|
# edits -- not a tarball (net/fetch and pkgtools/pkg_install build from their
|
|
# files/ the same way: no DISTFILES, no distinfo, and do-extract fills WRKSRC).
|
|
# Three levels above the directory pkgsrc builds in: the development tree, /mnt
|
|
# inside the build chroot and /usr/src on an installed system. 'pwd -P' because
|
|
# pkgsrc refuses a WRKDIR path that is not canonical and the mirror in pkgsrc/
|
|
# is reached through a symlink (tools/ext-sync.sh).
|
|
_MAKRONIX_TOP!= cd ${.CURDIR}/../../.. && pwd -P
|
|
SRC= ${_MAKRONIX_TOP}/ext/src/wikid
|
|
|
|
# The copy is made by a script, not by ${CP} -R: pkgsrc extracts once, and
|
|
# a commit after that never reached the work directory (tools/ext-extract.sh).
|
|
do-extract:
|
|
${RUN}${SH} ${_MAKRONIX_TOP}/tools/ext-extract.sh ${SRC} ${WRKSRC}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|