Subject: pkg/16352: Change use buildlink.mk for japanese/canna-lib
To: None <gnats-bugs@gnats.netbsd.org, sakamoto@splhack.org, magick@netbsd.org>
From: OGATA <ogata@isp.qix.org>
List: netbsd-bugs
Date: 04/15/2002 04:54:16
>Number:         16352
>Category:       pkg
>Synopsis:       Change use buildlink.mk for japanese/canna-lib
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 14 12:55:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     OGATA
>Release:        NetBSD 1.5.2
>Organization:
>Environment:

System: NetBSD Leia2 1.5.2 NetBSD 1.5.2 (GENERIC_SCSI3-Leia2-1.5.2XCAST6) #0: Thu Oct 25 17:43:23 JST 2001 ogata@Kodiaka:/export/XCAST6/syssrc-xcast0.0.2/sys/arch/sparc/compile/GENERIC_SCSI3-Leia2-1.5.2XCAST6 sparc

>Description:
	Please change japanese/canna-lib support buildlink.mk

	tech-pkg-ja@jp.netbsd ML posted it.
	I was try make japanese/canna-lib/buildlink.mk and posted ML.
	http://www.jp.netbsd.org/ja/JP/ml/tech-pkg-ja/200204/msg00005.html
	http://www.jp.netbsd.org/ja/JP/ml/tech-pkg-ja/200204/msg00006.html
	I got it which was fixed with the advice about a package from Sakamoto-san.

	thanks	

>How-To-Repeat:
	none.

>Fix:

# $NetBSD$
#
# This Makefile fragment is included by packages that use Canna.
#
# To use this Makefile fragment, simply:
#
# (1) Optionally define BUILDLINK_DEPENDS.canna to the dependency pattern
#     for the version of Canna desired.
# (2) Include this Makefile fragment in the package Makefile,
# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
#     search path, and
# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
#     path.

.if !defined(CANNA_BUILDLINK_MK)
CANNA_BUILDLINK_MK=	# defined

.include "../../mk/bsd.buildlink.mk"

BUILDLINK_DEPENDS.canna?=	Canna-lib>=3.5b2
DEPENDS+=	${BUILDLINK_DEPENDS.canna}:../../japanese/canna-lib

EVAL_PREFIX+=			BUILDLINK_PREFIX.canna=canna-lib
BUILDLINK_PREFIX.canna_DEFAULT=	${LOCALBASE}
BUILDLINK_FILES.canna=		include/canna/RK.h
BUILDLINK_FILES.canna+=		include/canna/jrkanji.h
BUILDLINK_FILES.canna+=		include/canna/keydef.h
BUILDLINK_FILES.canna+=		include/canna/mfdef.h
BUILDLINK_FILES.canna+=		lib/libRKC.*
BUILDLINK_FILES.canna+=		lib/libRKC16.*
BUILDLINK_FILES.canna+=		lib/libcanna.*
BUILDLINK_FILES.canna+=		lib/libcanna16.*

BUILDLINK_TARGETS.canna=	canna-buildlink
BUILDLINK_TARGETS+=		${BUILDLINK_TARGETS.canna}

pre-configure: ${BUILDLINK_TARGETS.canna}
canna-buildlink: _BUILDLINK_USE

.endif	# CANNA_BUILDLINK_MK
>Release-Note:
>Audit-Trail:
>Unformatted: