Subject: pkg/17425: graphics/libart2 buildlink.mk is broken
To: None <gnats-bugs@gnats.netbsd.org>
From: Julio Merino <jmmv@hispabsd.org>
List: netbsd-bugs
Date: 06/28/2002 18:15:51
>Number: 17425
>Category: pkg
>Synopsis: graphics/libart2 buildlink.mk is broken
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jun 28 09:16:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Julio Merino
>Release: NetBSD 1.6B
>Organization:
HispaBSD
>Environment:
System: NetBSD darkstar.local 1.6B NetBSD 1.6B (DARKSTAR) #30: Fri Jun 28 15:35:51 CEST 2002 jmmv@darkstar.local:/var/build/kernel/DARKSTAR i386
Architecture: i386
Machine: i386
>Description:
The buildlink.mk file of graphics/libart2 has some typos that broke
it. In fact, *no* files are placed in the buildlink directory.
I've also added the buildlink config wrapper stuff so it can work
better when using USE_BUILDLINK_ONLY in packages.
>How-To-Repeat:
>Fix:
Apply the following patch to graphics/libart2/buildlink.mk
Index: buildlink.mk
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/libart2/buildlink.mk,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 buildlink.mk
--- buildlink.mk 2002/05/22 21:30:31 1.1.1.1
+++ buildlink.mk 2002/06/28 16:11:42
@@ -23,14 +23,27 @@
EVAL_PREFIX+= BUILDLINK_PREFIX.libart2=libart2
BUILDLINK_PREFIX.libart2= ${LOCALBASE}
-BUILDLINK_FILES.libart2= bin/libart22-config
-BUILDLINK_FILES.libart2+= include/libart2-2.0/libart2_lgpl/*
-BUILDLINK_FILES.libart2+= lib/libart2_lgpl_2.*
+BUILDLINK_FILES.libart2= include/libart-2.0/libart_lgpl/*
+BUILDLINK_FILES.libart2+= lib/libart_lgpl_2.*
BUILDLINK_TARGETS.libart2= libart2-buildlink
+BUILDLINK_TARGETS.libart2+= libart2-buildlink-config-wrapper
BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libart2}
+BUILDLINK_CONFIG.libart2= \
+ ${BUILDLINK_PREFIX.libart2}/bin/libart2-config
+BUILDLINK_CONFIG_WRAPPER.libart2= \
+ ${BUILDLINK_DIR}/bin/libart2-config
+REPLACE_BUILDLINK_SED+= \
+ -e "s|${BUILDLINK_CONFIG_WRAPPER.libart2}|${BUILDLINK_CONFIG.libart2}|g"
+.if defined(USE_CONFIG_WRAPPER)
+LIBART2_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.libart2}
+CONFIGURE_ENV+= LIBART2_CONFIG="${LIBART2_CONFIG}"
+MAKE_ENV+= LIBART2_CONFIG="${LIBART2_CONFIG}"
+.endif
+
pre-configure: ${BUILDLINK_TARGETS.libart2}
libart2-buildlink: _BUILDLINK_USE
+libart2-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
.endif # LIBART2_BUILDLINK_MK
>Release-Note:
>Audit-Trail:
>Unformatted: