head	1.17;
access;
symbols
	pkgsrc-2026Q1:1.17.0.72
	pkgsrc-2026Q1-base:1.17
	pkgsrc-2025Q4:1.17.0.70
	pkgsrc-2025Q4-base:1.17
	pkgsrc-2025Q3:1.17.0.68
	pkgsrc-2025Q3-base:1.17
	pkgsrc-2025Q2:1.17.0.66
	pkgsrc-2025Q2-base:1.17
	pkgsrc-2025Q1:1.17.0.64
	pkgsrc-2025Q1-base:1.17
	pkgsrc-2024Q4:1.17.0.62
	pkgsrc-2024Q4-base:1.17
	pkgsrc-2024Q3:1.17.0.60
	pkgsrc-2024Q3-base:1.17
	pkgsrc-2024Q2:1.17.0.58
	pkgsrc-2024Q2-base:1.17
	pkgsrc-2024Q1:1.17.0.56
	pkgsrc-2024Q1-base:1.17
	pkgsrc-2023Q4:1.17.0.54
	pkgsrc-2023Q4-base:1.17
	pkgsrc-2023Q3:1.17.0.52
	pkgsrc-2023Q3-base:1.17
	pkgsrc-2023Q2:1.17.0.50
	pkgsrc-2023Q2-base:1.17
	pkgsrc-2023Q1:1.17.0.48
	pkgsrc-2023Q1-base:1.17
	pkgsrc-2022Q4:1.17.0.46
	pkgsrc-2022Q4-base:1.17
	pkgsrc-2022Q3:1.17.0.44
	pkgsrc-2022Q3-base:1.17
	pkgsrc-2022Q2:1.17.0.42
	pkgsrc-2022Q2-base:1.17
	pkgsrc-2022Q1:1.17.0.40
	pkgsrc-2022Q1-base:1.17
	pkgsrc-2021Q4:1.17.0.38
	pkgsrc-2021Q4-base:1.17
	pkgsrc-2021Q3:1.17.0.36
	pkgsrc-2021Q3-base:1.17
	pkgsrc-2021Q2:1.17.0.34
	pkgsrc-2021Q2-base:1.17
	pkgsrc-2021Q1:1.17.0.32
	pkgsrc-2021Q1-base:1.17
	pkgsrc-2020Q4:1.17.0.30
	pkgsrc-2020Q4-base:1.17
	pkgsrc-2020Q3:1.17.0.28
	pkgsrc-2020Q3-base:1.17
	pkgsrc-2020Q2:1.17.0.24
	pkgsrc-2020Q2-base:1.17
	pkgsrc-2020Q1:1.17.0.4
	pkgsrc-2020Q1-base:1.17
	pkgsrc-2019Q4:1.17.0.26
	pkgsrc-2019Q4-base:1.17
	pkgsrc-2019Q3:1.17.0.22
	pkgsrc-2019Q3-base:1.17
	pkgsrc-2019Q2:1.17.0.20
	pkgsrc-2019Q2-base:1.17
	pkgsrc-2019Q1:1.17.0.18
	pkgsrc-2019Q1-base:1.17
	pkgsrc-2018Q4:1.17.0.16
	pkgsrc-2018Q4-base:1.17
	pkgsrc-2018Q3:1.17.0.14
	pkgsrc-2018Q3-base:1.17
	pkgsrc-2018Q2:1.17.0.12
	pkgsrc-2018Q2-base:1.17
	pkgsrc-2018Q1:1.17.0.10
	pkgsrc-2018Q1-base:1.17
	pkgsrc-2017Q4:1.17.0.8
	pkgsrc-2017Q4-base:1.17
	pkgsrc-2017Q3:1.17.0.6
	pkgsrc-2017Q3-base:1.17
	pkgsrc-2017Q2:1.17.0.2
	pkgsrc-2017Q2-base:1.17
	pkgsrc-2017Q1:1.16.0.12
	pkgsrc-2017Q1-base:1.16
	pkgsrc-2016Q4:1.16.0.10
	pkgsrc-2016Q4-base:1.16
	pkgsrc-2016Q3:1.16.0.8
	pkgsrc-2016Q3-base:1.16
	pkgsrc-2016Q2:1.16.0.6
	pkgsrc-2016Q2-base:1.16
	pkgsrc-2016Q1:1.16.0.4
	pkgsrc-2016Q1-base:1.16
	pkgsrc-2015Q4:1.16.0.2
	pkgsrc-2015Q4-base:1.16
	pkgsrc-2015Q3:1.14.0.24
	pkgsrc-2015Q3-base:1.14
	pkgsrc-2015Q2:1.14.0.22
	pkgsrc-2015Q2-base:1.14
	pkgsrc-2015Q1:1.14.0.20
	pkgsrc-2015Q1-base:1.14
	pkgsrc-2014Q4:1.14.0.18
	pkgsrc-2014Q4-base:1.14
	pkgsrc-2014Q3:1.14.0.16
	pkgsrc-2014Q3-base:1.14
	pkgsrc-2014Q2:1.14.0.14
	pkgsrc-2014Q2-base:1.14
	pkgsrc-2014Q1:1.14.0.12
	pkgsrc-2014Q1-base:1.14
	pkgsrc-2013Q4:1.14.0.10
	pkgsrc-2013Q4-base:1.14
	pkgsrc-2013Q3:1.14.0.8
	pkgsrc-2013Q3-base:1.14
	pkgsrc-2013Q2:1.14.0.6
	pkgsrc-2013Q2-base:1.14
	pkgsrc-2013Q1:1.14.0.4
	pkgsrc-2013Q1-base:1.14
	pkgsrc-2012Q4:1.14.0.2
	pkgsrc-2012Q4-base:1.14
	pkgsrc-2012Q3:1.13.0.2
	pkgsrc-2012Q3-base:1.13
	pkgsrc-2012Q2:1.12.0.18
	pkgsrc-2012Q2-base:1.12
	pkgsrc-2012Q1:1.12.0.16
	pkgsrc-2012Q1-base:1.12
	pkgsrc-2011Q4:1.12.0.14
	pkgsrc-2011Q4-base:1.12
	pkgsrc-2011Q3:1.12.0.12
	pkgsrc-2011Q3-base:1.12
	pkgsrc-2011Q2:1.12.0.10
	pkgsrc-2011Q2-base:1.12
	pkgsrc-2011Q1:1.12.0.8
	pkgsrc-2011Q1-base:1.12
	pkgsrc-2010Q4:1.12.0.6
	pkgsrc-2010Q4-base:1.12
	pkgsrc-2010Q3:1.12.0.4
	pkgsrc-2010Q3-base:1.12
	pkgsrc-2010Q2:1.12.0.2
	pkgsrc-2010Q2-base:1.12
	pkgsrc-2010Q1:1.11.0.4
	pkgsrc-2010Q1-base:1.11
	pkgsrc-2009Q4:1.11.0.2
	pkgsrc-2009Q4-base:1.11
	pkgsrc-2009Q3:1.10.0.10
	pkgsrc-2009Q3-base:1.10
	pkgsrc-2009Q2:1.10.0.8
	pkgsrc-2009Q2-base:1.10
	pkgsrc-2009Q1:1.10.0.6
	pkgsrc-2009Q1-base:1.10
	pkgsrc-2008Q4:1.10.0.4
	pkgsrc-2008Q4-base:1.10
	pkgsrc-2008Q3:1.10.0.2
	pkgsrc-2008Q3-base:1.10
	cube-native-xorg:1.9.0.20
	cube-native-xorg-base:1.9
	pkgsrc-2008Q2:1.9.0.18
	pkgsrc-2008Q2-base:1.9
	cwrapper:1.9.0.16
	pkgsrc-2008Q1:1.9.0.14
	pkgsrc-2008Q1-base:1.9
	pkgsrc-2007Q4:1.9.0.12
	pkgsrc-2007Q4-base:1.9
	pkgsrc-2007Q3:1.9.0.10
	pkgsrc-2007Q3-base:1.9
	pkgsrc-2007Q2:1.9.0.8
	pkgsrc-2007Q2-base:1.9
	pkgsrc-2007Q1:1.9.0.6
	pkgsrc-2007Q1-base:1.9
	pkgsrc-2006Q4:1.9.0.4
	pkgsrc-2006Q4-base:1.9
	pkgsrc-2006Q3:1.9.0.2
	pkgsrc-2006Q3-base:1.9
	pkgsrc-2006Q2:1.8.0.4
	pkgsrc-2006Q2-base:1.8
	pkgsrc-2006Q1:1.8.0.2
	pkgsrc-2006Q1-base:1.8
	pkgsrc-2005Q4:1.7.0.2
	pkgsrc-2005Q4-base:1.7
	pkgsrc-2005Q3:1.6.0.16
	pkgsrc-2005Q3-base:1.6
	pkgsrc-2005Q2:1.6.0.14
	pkgsrc-2005Q2-base:1.6
	pkgsrc-2005Q1:1.6.0.12
	pkgsrc-2005Q1-base:1.6
	pkgsrc-2004Q4:1.6.0.10
	pkgsrc-2004Q4-base:1.6
	pkgsrc-2004Q3:1.6.0.8
	pkgsrc-2004Q3-base:1.6
	pkgsrc-2004Q2:1.6.0.6
	pkgsrc-2004Q2-base:1.6
	pkgsrc-2004Q1:1.6.0.4
	pkgsrc-2004Q1-base:1.6
	pkgsrc-2003Q4:1.6.0.2
	pkgsrc-2003Q4-base:1.6
	netbsd-1-6-1:1.5.0.2
	netbsd-1-6-1-base:1.5
	netbsd-1-6:1.2.0.8
	netbsd-1-6-RELEASE-base:1.2
	pkgviews:1.2.0.4
	pkgviews-base:1.2
	buildlink2-base:1.3
	buildlink2:1.2.0.2
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.17
date	2017.04.20.13.25.07;	author jperkin;	state Exp;
branches;
next	1.16;
commitid	gA44g6ZKJdeN8hOz;

1.16
date	2015.10.25.12.17.36;	author tsutsui;	state Exp;
branches
	1.16.12.1;
next	1.15;
commitid	lwJpquenRPBQduGy;

1.15
date	2015.10.18.03.58.31;	author tsutsui;	state Exp;
branches;
next	1.14;
commitid	oYpfg0VCy8eAGxFy;

1.14
date	2012.10.06.14.25.10;	author asau;	state Exp;
branches;
next	1.13;

1.13
date	2012.07.03.17.44.39;	author joerg;	state Exp;
branches;
next	1.12;

1.12
date	2010.05.28.11.06.34;	author obache;	state Exp;
branches;
next	1.11;

1.11
date	2009.12.23.21.46.10;	author abs;	state Exp;
branches;
next	1.10;

1.10
date	2008.09.18.12.35.27;	author taca;	state Exp;
branches;
next	1.9;

1.9
date	2006.07.05.04.48.28;	author jlam;	state Exp;
branches;
next	1.8;

1.8
date	2005.12.29.15.33.45;	author joerg;	state Exp;
branches;
next	1.7;

1.7
date	2005.12.05.20.50.23;	author rillig;	state Exp;
branches;
next	1.6;

1.6
date	2003.05.31.08.28.34;	author uebayasi;	state Exp;
branches;
next	1.5;

1.5
date	2002.12.27.08.41.24;	author uebayasi;	state Exp;
branches;
next	1.4;

1.4
date	2002.08.25.19.22.55;	author jlam;	state Exp;
branches;
next	1.3;

1.3
date	2002.08.21.02.43.45;	author grant;	state Exp;
branches;
next	1.2;

1.2
date	2002.06.10.09.47.26;	author sakamoto;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2002.05.31.13.00.58;	author seb;	state Exp;
branches
	1.1.1.1;
next	;

1.16.12.1
date	2017.05.01.08.39.38;	author bsiegert;	state Exp;
branches;
next	;
commitid	TEJXIgZjK9n0dFPz;

1.2.2.1
date	2002.06.10.09.47.26;	author jlam;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	2002.06.23.18.47.16;	author jlam;	state Exp;
branches;
next	1.2.2.3;

1.2.2.3
date	2002.08.22.11.11.44;	author jlam;	state Exp;
branches;
next	;

1.1.1.1
date	2002.05.31.13.00.58;	author seb;	state Exp;
branches;
next	;


desc
@@


1.17
log
@Don't rely on GNU sed features.
@
text
@# $NetBSD: Makefile,v 1.16 2015/10/25 12:17:36 tsutsui Exp $

PKGREVISION=	1
CANNA_MODULE=	lib

.include "../../inputmethod/canna/Makefile.common"

# (1) Change SUBDIRS.
# (2) Don't install `forcpp', `kpdic'.
#
post-patch:
	@@${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
	@@${SED}	-e 's|\(SUBDIRS = lib canna\).*\( misc\)|\1 cmd/forcpp cmd/kpdic dic/phono\2|' \
		-e 's|\(SGSDIR = \).*|\1 lib canna dic/phono misc doc|'	\
		${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile

MAKE_ENV+=	AWK=${AWK:Q}

post-extract:
	${CP} ${FILESDIR}/dic-phono-filter.awk ${WRKSRC}/dic/phono/

post-configure:
	@@${LN} -s ${WRKSRC}/server/*.h ${WRKSRC}/include

post-install:
	${RM} ${DESTDIR}${PREFIX}/bin/forcpp ${DESTDIR}${PREFIX}/bin/kpdic

.include "../../mk/bsd.pkg.mk"
@


1.16
log
@Pull upstream fix to avoid libcanna crash triggered by set-key command.

Reported by Takeshi Nakayama in PR pkg/50368.
Also update comment in patch-lib_RK_ncache.c to mention about
the upstream fix in the same commit.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2015/10/18 03:58:31 tsutsui Exp $
a15 5
.for f in forcpp kpdic
	@@${MV} ${WRKSRC}/cmd/${f}/Imakefile ${WRKSRC}/cmd/${f}/Imakefile.orig
	@@${SED} -e '/^#define TargetName/a\${.newline}#define DontInstallProgram' ${WRKSRC}/cmd/${f}/Imakefile.orig \
		> ${WRKSRC}/cmd/${f}/Imakefile
.endfor
d25 3
@


1.16.12.1
log
@Pullup ticket #5337 - requested by sevan
inputmethod/canna-lib: build fix

Revisions pulled up:
- inputmethod/canna-lib/Makefile                                1.17

---
   Module Name:    pkgsrc
   Committed By:   jperkin
   Date:           Thu Apr 20 13:25:07 UTC 2017

   Modified Files:
           pkgsrc/inputmethod/canna-lib: Makefile

   Log Message:
   Don't rely on GNU sed features.
@
text
@d1 1
a1 1
# $NetBSD$
d16 5
a29 3
post-install:
	${RM} ${DESTDIR}${PREFIX}/bin/forcpp ${DESTDIR}${PREFIX}/bin/kpdic

@


1.15
log
@Update canna packages to 3.7pl3.

pkgsrc changes:
 - reorganize patch filenames for maintainability
  - patch-ac is also merged into existing patch-dic_phono_Imakefile
 - fix a missed 64 bit time_t issue in libRK
 - add a hook in cmd.tmpl to disable installation of cmd/forcpp and
   cmd/kpdic in canna-lib
 - tweak SUBDIRS patches in Makefiles to avoid unnecessary builds
   for each packages
 - pull various updates to canuum from the original FreeWnn's uum,
   including posix_openpt(3) support, and disable the default but
   obsolete libspt support
 - reorganize curses(3) ops in canuum per curses(3) documents
 - fix misc compiler warnings
 - take maintainership

Upstream changes:

 All changes are noted in ChangeLog and CHANGES.jp in distfile.
 I won't bother to quote ~1700 line ChangeLogs here,
 because this latest 3.7pl3 was released on 2004/05/20 and
 the previous 3.6pl4 was 2003/09/22.
 Highlight points are:
  - binary dictionary format is changed
  - shlib versions are bumped to 1.2 from 1.1
  - new APIs for wchar
  - experimental 64 bit architecture support
  - IPv6 support

Both server and clients (canuum and mule-1.1) are tested on
NetBSD/i386 7.0, NetBSD/amd64 7.0, and NetBSD/luna68k 7.0.
Also thanks to Nobuyoshi SATO, for his initial patch posted
to tech-pkg-ja@@.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2012/10/06 14:25:10 asau Exp $
d3 1
@


1.14
log
@Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2012/07/03 17:44:39 joerg Exp $
a2 1
PKGREVISION=	3
d17 1
a17 1
	@@${SED} -e '/InstallProgram/d' ${WRKSRC}/cmd/${f}/Imakefile.orig \
@


1.13
log
@Replace use of traditional CPP with AWK. This fixes one expansion bug
and additionally works with clang. Discussed with obache.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2010/05/28 11:06:34 obache Exp $
a5 2
PKG_DESTDIR_SUPPORT= user-destdir

@


1.12
log
@Drop dependency on nbitools.
nbitools is not enough to maintain for recent platforms and no good support for
user-destdir (now, canna-lib and canna-canuum is user-destdir ready)

no objection in tech-pkg-ja@@ about three months.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2009/12/23 21:46:10 abs Exp $
d3 1
a3 1
PKGREVISION=	2
d24 5
@


1.11
log
@PKG_DESTDIR_SUPPORT=destdir
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2008/09/18 12:35:27 taca Exp $
d6 1
a6 1
PKG_DESTDIR_SUPPORT= destdir
a26 13
.include "../../mk/bsd.prefs.mk"

# XXX Work around bug in nbitools where the correct DragonFly library
# XXX symlinks are not created.
# XXX
.if ${OPSYS} == "DragonFly"
post-install:
.  for f in RKC RKC16 canna canna16
	${LN} -s lib${f}.so.1.1 ${PREFIX}/lib/lib${f}.so.1
	${LN} -s lib${f}.so.1 ${PREFIX}/lib/lib${f}.so
.  endfor
.endif

@


1.10
log
@Bump PKGREVISION of inputmethod/canna* packages.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2006/07/05 04:48:28 jlam Exp $
d6 2
@


1.9
log
@* Convert to USE_TOOLS+=itools instead of including nbitools/buildlink3.mk.

* Fully convert to the pkginstall framework by using it to manage
  directories required at install time.

* Rewrite the canna rc.d script to ensure that all needed directories
  are present before the daemon is started.

* Miscellaneous touch ups to the DESCR and MESSAGE files.

* Remove the need to explicitly set PREFIX.  These packages now install
  into ${LOCALBASE} and use symlinks and file copies to put the files
  into the ${IMDICTDIR}.

Bump the PKGREVISIONs for the canna* packages.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2005/12/29 15:33:45 joerg Exp $
d3 1
a3 1
PKGREVISION=	1
@


1.8
log
@Do some post-cleanup of the libraries for DragonFly until I find out,
why imake doesn't do it itself.
@
text
@d1 1
a1 3
# $NetBSD: Makefile,v 1.7 2005/12/05 20:50:23 rillig Exp $
#
.include "../../inputmethod/canna/Makefile.common"
d3 1
d6 1
a6 1
INSTALL_TARGET=	install install.man
d10 1
a21 5
# We need to pass ${MAKE_ENV} to ${XMKMF}
do-configure:
	@@cd ${WRKSRC} && \
	    ${SETENV} ${SCRIPTS_ENV} ${MAKE_ENV} ${XMKMF}

d27 3
d32 1
a32 1
.for f in RKC RKC16 canna canna16
d35 1
a35 1
.endfor
d38 1
a38 1
.include "../../inputmethod/canna/Makefile.include"
@


1.7
log
@Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2003/05/31 08:28:34 uebayasi Exp $
d30 10
@


1.6
log
@* Move to use inputmethod/canna/Makefile.{common,include} for common
  definitions/inclusions.

* Deprecate canna-server and introduce inputmethod/canna as the new
  Canna meta package.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2002/12/27 08:41:24 uebayasi Exp $
d3 1
a3 1
.include "../canna/Makefile.common"
d30 1
a30 1
.include "../canna/Makefile.include"
@


1.5
log
@Update Canna to 3.6p1.

Changes from 3.5b2 are:
	* Add -inet option not to allow TCP connections by default.
	* Fix a buffer overflow.  (This fix was already incorpolated
	  in Pkgsrc version.)
	* Improve dicionary.
	* Improve conversion engine.
	* Other bug fixes.

Patch is made by Yoshifumi Hiramatsu.  Tested by Toru Takamizu.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2002/08/25 19:22:55 jlam Exp $
d3 1
d5 1
a5 8
DISTNAME=	Canna36p1
PKGNAME=	Canna-lib-3.6.1
CATEGORIES=	japanese inputmethod
MASTER_SITES=	http://downloads.sourceforge.jp/canna/1722/

MAINTAINER=	tech-pkg-ja@@jp.netbsd.org
HOMEPAGE=	http://canna.sourceforge.jp/
COMMENT=	Kana-Kanji conversion system (library)
a8 13
BUILD_DEFS+=	USE_INET6

.include "../../mk/bsd.prefs.mk"
.if 0	# defined(USE_INET6) && ${USE_INET6} == "YES"
INET6=		-DINET6
.else
INET6=		# empty
.endif
CANNAOWNER?=    daemon
CANNAGROUP?=    daemon
MAKE_ENV+=      CANNAOWNER=${CANNAOWNER} CANNAGROUP=${CANNAGROUP} \
		INET6=${INET6}

d30 1
a30 2
.include "../../devel/nbitools/nbitools.mk"
.include "../../mk/bsd.pkg.mk"
@


1.4
log
@Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2.2.2 2002/08/22 11:11:44 jlam Exp $
d4 2
a5 3
DISTNAME=	Canna35b2
PKGNAME=	Canna-lib-3.5.2
PKGREVISION=	2
d7 1
a7 6
MASTER_SITES=	ftp://ftp.nec.co.jp/pub/Canna/Canna35/

PATCH_SITES=	http://www.jaist.ac.jp/~fujieda/canna/
PATCHFILES=	Canna35b2-unoff1.patch.gz Canna35b2-unoff2.patch.gz \
		Canna35b2-hack1.patch.gz
PATCH_DIST_STRIP=	-p1
d10 1
a10 1
HOMEPAGE=	http://www.nec.co.jp/japanese/product/computer/soft/canna/
@


1.3
log
@check that USE_INET6 is defined.
remove extraneous parenthesis around .if (${FOO} ..) conditions.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2002/06/10 09:47:26 sakamoto Exp $
@


1.2
log
@bump PKGREVISION.
add buildlink.mk.
use devel/nbitools instead of ${X11BASE}/xmkmf.
purge /var/dict/canna.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2002/04/13 02:39:53 jlam Exp $
d24 1
a24 1
.if 0	# ${USE_INET6} == "YES"
@


1.2.2.1
log
@file Makefile was added on branch buildlink2 on 2002-06-23 18:47:16 +0000
@
text
@d1 56
@


1.2.2.2
log
@Merge from pkgsrc-current to buildlink2 branch.
@
text
@a0 56
# $NetBSD: Makefile,v 1.2.2.1 2002/06/23 18:47:16 jlam Exp $
#

DISTNAME=	Canna35b2
PKGNAME=	Canna-lib-3.5.2
PKGREVISION=	2
CATEGORIES=	japanese inputmethod
MASTER_SITES=	ftp://ftp.nec.co.jp/pub/Canna/Canna35/

PATCH_SITES=	http://www.jaist.ac.jp/~fujieda/canna/
PATCHFILES=	Canna35b2-unoff1.patch.gz Canna35b2-unoff2.patch.gz \
		Canna35b2-hack1.patch.gz
PATCH_DIST_STRIP=	-p1

MAINTAINER=	tech-pkg-ja@@jp.netbsd.org
HOMEPAGE=	http://www.nec.co.jp/japanese/product/computer/soft/canna/
COMMENT=	Kana-Kanji conversion system (library)

INSTALL_TARGET=	install install.man

BUILD_DEFS+=	USE_INET6

.include "../../mk/bsd.prefs.mk"
.if 0	# ${USE_INET6} == "YES"
INET6=		-DINET6
.else
INET6=		# empty
.endif
CANNAOWNER?=    daemon
CANNAGROUP?=    daemon
MAKE_ENV+=      CANNAOWNER=${CANNAOWNER} CANNAGROUP=${CANNAGROUP} \
		INET6=${INET6}

# (1) Change SUBDIRS.
# (2) Don't install `forcpp', `kpdic'.
post-patch:
	@@${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
	@@${SED}	-e 's|\(SUBDIRS = lib canna\).*\( misc\)|\1 cmd/forcpp cmd/kpdic dic/phono\2|' \
		-e 's|\(SGSDIR = \).*|\1 lib canna dic/phono misc doc|'	\
		${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile
.for f in forcpp kpdic
	@@${MV} ${WRKSRC}/cmd/${f}/Imakefile ${WRKSRC}/cmd/${f}/Imakefile.orig
	@@${SED} -e '/InstallProgram/d' ${WRKSRC}/cmd/${f}/Imakefile.orig \
		> ${WRKSRC}/cmd/${f}/Imakefile
.endfor

# We need to pass ${MAKE_ENV} to ${XMKMF}
do-configure:
	@@cd ${WRKSRC} && \
	    ${SETENV} ${SCRIPTS_ENV} ${MAKE_ENV} ${XMKMF}

post-configure:
	@@${LN} -s ${WRKSRC}/server/*.h ${WRKSRC}/include

.include "../../devel/nbitools/nbitools.mk"
.include "../../mk/bsd.pkg.mk"
@


1.2.2.3
log
@Merge changes from pkgsrc-current into the buildlink2 branch for the
packages that have buildlink2.mk files.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2.2.2 2002/08/22 11:11:44 jlam Exp $
d24 1
a24 1
.if 0	# defined(USE_INET6) && ${USE_INET6} == "YES"
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD$
d6 1
a6 1
PKGREVISION=	1
a20 3
# XXX USE_IMAKE can't pass MAKE_FLAGS to XMKMF.
#USE_IMAKE=	# defined
USE_X11BASE=	# defined
a30 1
DICT_DIR?=	${DESTDIR}/var/dict
d32 1
a32 5
		DICT_DIR=${DICT_DIR} INET6=${INET6}
PLIST_SUBST=	CANNAOWNER=${CANNAOWNER}	\
		CANNAGROUP=${CANNAGROUP}	\
		DICT_DIR=${DICT_DIR}		\
		PREFIX=${PREFIX}
a35 2
# (3) Include ${FILESDIR}/LinkFileList.rules just after including Canna.conf
#     in Imakefiles.
a45 8
	@@${FIND} ${WRKSRC} -name Imakefile -print | \
	while read f; do \
		${CP} $$f $${f}.orig; \
		( \
			${ECHO} '/#include ".*\/Canna.conf"$$/a\'; \
			${ECHO} '#include "${FILESDIR}/LinkFileList.rules"'; \
		) | ${SED} -f /dev/stdin $${f}.orig >$$f; \
	done
d50 1
a50 1
	    ${SETENV} ${SCRIPTS_ENV} XPROJECTROOT=${X11BASE} ${MAKE_ENV} ${XMKMF}
d55 1
a55 4
post-install:
	@@${LN} -s ${DICT_DIR}/canna ${PREFIX}/share/canna/dic
	@@${CHOWN} ${CANNAOWNER}:${CANNAGROUP} ${DICT_DIR}/canna

@


1.1.1.1
log
@Reimport of package Canna-lib from japanese/canna-lib into inputmethod/canna-lib.
This is part of the japanese category retirement.
CATEGORIES adjusted.
@
text
@@
