Skip to content

Commit

Permalink
devel/libbsd: use TEST_TARGET instead of a dedicated make target.
Browse files Browse the repository at this point in the history
  • Loading branch information
vins committed Aug 29, 2023
1 parent 0553e42 commit c8788b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions devel/libbsd/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2023/07/03 10:56:55 vins Exp $
# $NetBSD: Makefile,v 1.6 2023/08/29 16:25:59 vins Exp $

DISTNAME= libbsd-0.11.7
PKGREVISION= 1
Expand All @@ -22,12 +22,11 @@ USE_TOOLS+= pkg-config autoconf automake autoreconf

CFLAGS+= -ffat-lto-objects

TEST_TARGET= check

pre-configure:
set -e; cd ${WRKSRC} && autoreconf -fiv

do-test:
${RUN} cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${MAKE} check

PKGCONFIG_OVERRIDE+= src/libbsd-ctor.pc.in
PKGCONFIG_OVERRIDE+= src/libbsd-overlay.pc.in
PKGCONFIG_OVERRIDE+= src/libbsd.pc.in
Expand Down
6 changes: 3 additions & 3 deletions devel/libbsd/builtin.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: builtin.mk,v 1.2 2022/12/19 16:05:43 vins Exp $
# $NetBSD: builtin.mk,v 1.3 2023/08/29 16:25:59 vins Exp $

BUILTIN_PKG:= libbsd

Expand Down Expand Up @@ -29,10 +29,10 @@ USE_BUILTIN.libbsd= no
. else
USE_BUILTIN.libbsd= ${IS_BUILTIN.libbsd}
. if defined(BUILTIN_PKG.libbsd) && \
${IS_BUILTIN.libbsd:M[yY][eE][sS]}
${IS_BUILTIN.libbsd:tl} == yes
USE_BUILTIN.libbsd= yes
. for _dep_ in ${BUILDLINK_API_DEPENDS.libbsd}
. if ${USE_BUILTIN.libbsd:M[yY][eE][sS]}
. if ${USE_BUILTIN.libbsd:tl} == yes
USE_BUILTIN.libbsd!= \
if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.libbsd:Q}; then \
${ECHO} yes; \
Expand Down

0 comments on commit c8788b6

Please sign in to comment.