pkgsrc/math/djbsort/buildlink3.mk
schmonz 70d46b6be7 From DJB: "For correctness, ./test has to be run on the installation
machine, not on the machine preparing a binary package." (Also: "The
issues are explained in Section 8 of
https://pqcrypto.eu.org/deliverables/d2.4.pdf.")

For this to work, we install the source tree (with built objects) to
${PREFIX}/share/djbsort. Then we run tests, install to ${PREFIX}/include
and ${PREFIX}/lib, and check the installed files against pseudo-PLIST.

This means pkg_add(1) will fail if no C compiler is present, which is
unusual behavior for pkg_add but perhaps not entirely unreasonable for a
C library.

Bump PKGREVISION.
2018-07-31 05:38:56 +00:00

14 lines
437 B
Makefile

# $NetBSD: buildlink3.mk,v 1.2 2018/07/31 05:38:56 schmonz Exp $
BUILDLINK_TREE+= djbsort
.if !defined(DJBSORT_BUILDLINK3_MK)
DJBSORT_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.djbsort+= djbsort>=20180717
BUILDLINK_PKGSRCDIR.djbsort?= ../../math/djbsort
BUILDLINK_DEPMETHOD.djbsort?= build
BUILDLINK_FILES_CMD.djbsort= ${CAT} ${BUILDLINK_PREFIX.djbsort}/share/djbsort/pseudo-PLIST
.endif # DJBSORT_BUILDLINK3_MK
BUILDLINK_TREE+= -djbsort