pkgsrc: build from the source tree, no archive
Same change as splinter: DISTFILES= # empty and do-extract fills WRKSRC from ext/src/junction through tools/ext-extract.sh, so there is no tarball and no distinfo to regenerate after a commit. Verified: bmake -C pkgsrc/misc/junction package built junction-0.1.tgz.
This commit is contained in:
1 parent
effeec623c
commit
4d58d68054
1 file changed
+19
-5
+19
-5
@@ -1,12 +1,11 @@
|
||||
# $NetBSD$
|
||||
# $Makronix$
|
||||
#
|
||||
# Makronix: junction is one of the project's own programs (ext/src/junction, a git
|
||||
# submodule; IMPORT). It is built from the archive tools/ext-dist.sh makes of
|
||||
# the submodule's commit, so there is no MASTER_SITES.
|
||||
# junction -- one of the project's own programs, the source is ext/src/junction.
|
||||
|
||||
DISTNAME= junction-0.1
|
||||
CATEGORIES= misc
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
||||
MASTER_SITES= # empty
|
||||
DISTFILES= # empty
|
||||
|
||||
MAINTAINER= lotherk@lother.io
|
||||
COMMENT= Policy router for OpenAI-compatible model endpoints
|
||||
@@ -36,4 +35,19 @@ MAKE_FLAGS+= CPPFLAGS=-D_POSIX_C_SOURCE=200809L\ -D_DEFAULT_SOURCE\ -D_NETBSD_SO
|
||||
MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q}\ -pthread
|
||||
MAKE_FLAGS+= TLS_LIBS=-lssl\ -lcrypto
|
||||
|
||||
# The source is ext/src/junction 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/junction
|
||||
|
||||
# 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"
|
||||
Reference in new issue
Block a user