head	1.15;
access;
symbols
	pkgsrc-2013Q2:1.15.0.8
	pkgsrc-2013Q2-base:1.15
	pkgsrc-2012Q4:1.15.0.6
	pkgsrc-2012Q4-base:1.15
	pkgsrc-2011Q4:1.15.0.4
	pkgsrc-2011Q4-base:1.15
	pkgsrc-2011Q2:1.15.0.2
	pkgsrc-2011Q2-base:1.15
	pkgsrc-2009Q4:1.14.0.20
	pkgsrc-2009Q4-base:1.14
	pkgsrc-2009Q3:1.14.0.18
	pkgsrc-2009Q3-base:1.14
	pkgsrc-2009Q2:1.14.0.16
	pkgsrc-2009Q2-base:1.14
	pkgsrc-2009Q1:1.14.0.14
	pkgsrc-2009Q1-base:1.14
	pkgsrc-2008Q4:1.14.0.12
	pkgsrc-2008Q4-base:1.14
	pkgsrc-2008Q3:1.14.0.10
	pkgsrc-2008Q3-base:1.14
	cube-native-xorg:1.14.0.8
	cube-native-xorg-base:1.14
	pkgsrc-2008Q2:1.14.0.6
	pkgsrc-2008Q2-base:1.14
	cwrapper:1.14.0.4
	pkgsrc-2008Q1:1.14.0.2
	pkgsrc-2008Q1-base:1.14
	pkgsrc-2007Q4:1.13.0.12
	pkgsrc-2007Q4-base:1.13
	pkgsrc-2007Q3:1.13.0.10
	pkgsrc-2007Q3-base:1.13
	pkgsrc-2007Q2:1.13.0.8
	pkgsrc-2007Q2-base:1.13
	pkgsrc-2007Q1:1.13.0.6
	pkgsrc-2007Q1-base:1.13
	pkgsrc-2006Q4:1.13.0.4
	pkgsrc-2006Q4-base:1.13
	pkgsrc-2006Q3:1.13.0.2
	pkgsrc-2006Q3-base:1.13
	pkgsrc-2006Q2:1.12.0.4
	pkgsrc-2006Q2-base:1.12
	pkgsrc-2006Q1:1.12.0.2
	pkgsrc-2006Q1-base:1.12
	pkgsrc-2005Q4:1.9.0.2
	pkgsrc-2005Q4-base:1.9
	pkgsrc-2005Q3:1.7.0.2
	pkgsrc-2005Q3-base:1.7
	pkgsrc-2005Q2:1.6.0.2
	pkgsrc-2005Q2-base:1.6
	pkgsrc-2005Q1:1.5.0.10
	pkgsrc-2005Q1-base:1.5
	pkgsrc-2004Q4:1.5.0.8
	pkgsrc-2004Q4-base:1.5
	pkgsrc-2004Q3:1.5.0.6
	pkgsrc-2004Q3-base:1.5
	pkgsrc-2004Q2:1.5.0.4
	pkgsrc-2004Q2-base:1.5
	pkgsrc-2004Q1:1.5.0.2
	pkgsrc-2004Q1-base:1.5
	pkgsrc-2003Q4:1.4.0.2
	pkgsrc-2003Q4-base:1.4
	netbsd-1-6-1:1.3.0.2
	netbsd-1-6-1-base:1.3
	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.2
	buildlink2:1.2.0.2
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.15
date	2010.02.15.13.35.21;	author obache;	state dead;
branches;
next	1.14;

1.14
date	2008.03.04.15.55.14;	author jlam;	state Exp;
branches;
next	1.13;

1.13
date	2006.07.05.04.55.23;	author jlam;	state Exp;
branches;
next	1.12;

1.12
date	2006.03.14.01.14.29;	author jlam;	state Exp;
branches;
next	1.11;

1.11
date	2006.03.10.22.29.44;	author jlam;	state Exp;
branches;
next	1.10;

1.10
date	2006.03.10.19.24.13;	author jlam;	state Exp;
branches;
next	1.9;

1.9
date	2005.12.05.20.50.23;	author rillig;	state Exp;
branches;
next	1.8;

1.8
date	2005.09.28.18.22.11;	author rillig;	state Exp;
branches;
next	1.7;

1.7
date	2005.07.19.10.17.17;	author grant;	state Exp;
branches;
next	1.6;

1.6
date	2005.04.11.21.46.11;	author tv;	state Exp;
branches;
next	1.5;

1.5
date	2004.03.05.21.23.00;	author minskim;	state Exp;
branches;
next	1.4;

1.4
date	2003.07.17.21.43.43;	author grant;	state Exp;
branches;
next	1.3;

1.3
date	2002.12.29.01.32.43;	author seb;	state Exp;
branches;
next	1.2;

1.2
date	2002.06.16.09.54.30;	author kei;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2002.06.10.09.15.23;	author sakamoto;	state Exp;
branches
	1.1.1.1;
next	;

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

1.2.2.2
date	2002.06.23.18.47.57;	author jlam;	state Exp;
branches;
next	;

1.1.1.1
date	2002.06.10.09.15.23;	author sakamoto;	state Exp;
branches;
next	;


desc
@@


1.15
log
@Update sj3 to 2.0.1.23p1.

Re-arranged packages:
 * sj3-lib:removed
 * sj3-dict: removed
 * sj3-server-bin: removed
 * sj3-client: added (lib + client tools)
 * sj3-server: no more meta-pkg (server + dict)
 * sj3: added (sj3-server + sj3-client)

Notable changes since 2.0.1.21:
 * changed to gnu-configure.
 * sj3lib is shared library.
 * using lua for server settings.
 * sj3 command was removed.
 * sj3serv no longer listen network socket. Set "false" to "strict_auth" and
   invoke sj3proxy additionaly if require it.
 * dictionaty directry was changed, please refer MigrationGuide from HOMEPAGE.
   On pkgsrc, new location is ${VARBASE}/sj3/dict.
@
text
@# $NetBSD: Makefile,v 1.14 2008/03/04 15:55:14 jlam Exp $
#

DISTNAME=	sj3-2.0.1.20
PKGNAME=	sj3-dict-2.0.1.20
PKGREVISION=	3
CATEGORIES=	japanese inputmethod
MASTER_SITES=	ftp://ftp.sony.co.jp/pub/unsupported/src/	\
		ftp://ftp.cs.titech.ac.jp/pub/japanese/sj3/

MAINTAINER=	tech-pkg-ja@@jp.NetBSD.org
COMMENT=	SJ3 Japanese input method dictionary

BUILD_DEPENDS+=	sj3-server-bin>=2.0.1.20nb1:../../inputmethod/sj3-server-bin

FILESDIR=	${.CURDIR}/../sj3-lib/files
DISTINFO_FILE=	${.CURDIR}/../sj3-lib/distinfo
PATCHDIR=	${.CURDIR}/../sj3-lib/patches

PKG_DESTDIR_SUPPORT=	user-destdir

.include "../../mk/bsd.prefs.mk"

USE_TOOLS+=	itools
USE_IMAKE=	yes
MAKE_ENV+=	SJ3OWNER=${SJ3OWNER:Q} SJ3GROUP=${SJ3GROUP:Q} \
		IMDICTDIR=${IMDICTDIR:Q} LOCAL_LDFLAGS=${LDFLAGS:M*:Q}
FILES_SUBST+=	SJ3OWNER=${SJ3OWNER} SJ3GROUP=${SJ3GROUP} IMDICTDIR=${IMDICTDIR}
EVAL_PREFIX+=	SJ3SERVERBINDIR=sj3-server-bin

CONFIGURE_DIRS+=	dict/dict

SJ3OWNER?=	daemon
SJ3GROUP?=	daemon

INSTALLATION_DIRS=	${PREFIX}/libdata

pre-configure:
	@@${CHMOD} +w ${WRKSRC}/dict/dict/Imakefile*
	@@${MV} ${WRKSRC}/dict/dict/Imakefile ${WRKSRC}/dict/dict/Imakefile.orig
	@@${SED} -e 's|$$(TOOL_DIR)/|${SJ3SERVERBINDIR}/bin/|' \
		${WRKSRC}/dict/dict/Imakefile.orig \
			> ${WRKSRC}/dict/dict/Imakefile

do-install:
	${INSTALL_DATA} ${WRKSRC}/dict/dict/sj3main.dic \
		${DESTDIR}${PREFIX}/libdata

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


1.14
log
@Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2006/07/05 04:55:23 jlam Exp $
@


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

* Fully convert to pkginstall framework by properly using OWN_DIRS*
  to manage required directories during package installation and
  deinstallation.

* Drop the need to explicitly set PREFIX in the package Makefiles.  We
  now install into ${LOCALBASE} like all other pkgsrc packages and use
  symlinks and file copies to put the right files into ${IMDICTDIR}.

* Change default dependency relationship in sj3-lib/buildlink3.mk to a
  build dependency since it the package only installs headers and a
  static library archive.

* Move some important setup instructions from the DESCR file to MESSAGE
  files so that the admin will see them at package installation.

* Rewrite the sj3 rc.d script so that all necessary directories are
  created before the daemon is started.

* Miscellaneous touch ups to the DESCR and MESSAGE files.

Bump the PKGREVISIONs on the sj3* packages.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2006/03/14 01:14:29 jlam Exp $
d20 2
d46 2
a47 1
	${INSTALL_DATA} ${WRKSRC}/dict/dict/sj3main.dic ${PREFIX}/libdata
@


1.12
log
@Modify the pkginstall framework so that it manages all aspects of
INSTALL/DEINSTALL script creation within pkgsrc.

If an INSTALL or DEINSTALL script is found in the package directory,
it is automatically used as a template for the pkginstall-generated
scripts.  If instead, they should be used simply as the full scripts,
then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC
explicitly, e.g.:

	INSTALL_SRC=	${PKGDIR}/INSTALL
	DEINSTALL_SRC=	# emtpy

As part of the restructuring of the pkginstall framework internals,
we now *always* generate temporary INSTALL or DEINSTALL scripts.  By
comparing these temporary scripts with minimal INSTALL/DEINSTALL
scripts formed from only the base templates, we determine whether or
not the INSTALL/DEINSTALL scripts are actually needed by the package
(see the generate-install-scripts target in bsd.pkginstall.mk).

In addition, more variables in the framework have been made private.
The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are
more sensible names given the very few exported variables in this
framework.  The only public variables relating to the templates are:

	INSTALL_SRC		INSTALL_TEMPLATE
	DEINSTALL_SRC		DEINSTALL_TEMPLATE
				HEADER_TEMPLATE

The packages in pkgsrc have been modified to reflect the changes in
the pkginstall framework.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2006/03/10 22:29:44 jlam Exp $
d6 1
a6 1
PKGREVISION=	2
d12 1
a12 1
COMMENT=	Japanese input method (dictionary)
d20 1
a20 1
PKG_INSTALLATION_TYPES=	overwrite pkgviews
d22 6
d29 1
a29 1
.include "../../mk/bsd.prefs.mk"
a30 1
NO_MTREE=       YES
a32 5
MAKE_ENV+=	SJ3OWNER=${SJ3OWNER:Q} SJ3GROUP=${SJ3GROUP:Q} \
		IMDICTDIR=${IMDICTDIR:Q} LOCAL_LDFLAGS=${LDFLAGS:M*:Q}
FILES_SUBST+=	SJ3OWNER=${SJ3OWNER} SJ3GROUP=${SJ3GROUP} IMDICTDIR=${IMDICTDIR}
DEINSTALL_SRC=	# empty
INSTALL_SRC=	${PKGDIR}/INSTALL
d34 1
a34 1
EVAL_PREFIX+=	SJ3SERVERBINDIR=sj3-server-bin
a42 7
do-configure:
	@@(cd ${WRKSRC}/dict/dict; ${XMKMF_CMD}; \
		${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} Makefiles)

do-build:
	@@(cd ${WRKSRC}/dict/dict; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM})

d44 1
a44 1
	@@(cd ${WRKSRC}/dict/dict; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} install)
a45 1
.include "../../devel/nbitools/buildlink3.mk"
a46 3

# Need to set this here _after_ bsd.pkg.mk
PREFIX=		${IMDICTDIR}
@


1.11
log
@Don't create a do-nothing DEINSTALL script
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2006/03/10 19:24:13 jlam Exp $
d31 1
a32 1
DEINSTALL_SRC=	# empty
@


1.10
log
@Use the pkginstall framework to generate the INSTALL script instead.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2005/12/05 20:50:23 rillig Exp $
d32 1
@


1.9
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.8 2005/09/28 18:22:11 rillig Exp $
d30 1
a30 1

a31 1
INSTALL_FILE=	${WRKDIR}/INSTALL
a48 6
post-build:
	@@${SED} -e 's|$${SJ3OWNER}|${SJ3OWNER}|'	\
		-e 's|$${SJ3GROUP}|${SJ3GROUP}|'	\
		-e 's|$${IMDICTDIR}|${IMDICTDIR}|'	\
		${INSTALL_SRC} > ${INSTALL_FILE}

@


1.8
log
@Don't abuse int variables as pointers in patch-ag. Bumped PKGREVISION in
all sj3 packages.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2005/07/19 10:17:17 grant Exp $
d28 2
a29 2
MAKE_ENV+=	SJ3OWNER=${SJ3OWNER} SJ3GROUP=${SJ3GROUP} \
		IMDICTDIR=${IMDICTDIR} LOCAL_LDFLAGS="${LDFLAGS}"
@


1.7
log
@depends should be ../../<category>/<pkg>
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2005/04/11 21:46:11 tv Exp $
d6 1
a6 1
PKGREVISION=	1
@


1.6
log
@Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2004/03/05 21:23:00 minskim Exp $
d14 1
a14 1
BUILD_DEPENDS+=	sj3-server-bin>=2.0.1.20nb1:../sj3-server-bin
@


1.5
log
@bl3ify and enable pkgviews installation.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2003/07/17 21:43:43 grant Exp $
a21 1
USE_BUILDLINK3=	yes
@


1.4
log
@s/netbsd.org/NetBSD.org/
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2002/12/29 01:32:43 seb Exp $
d20 4
d60 1
a60 1
.include "../../devel/nbitools/nbitools.mk"
@


1.3
log
@Avoid setting LOCALBASE (this breaks path to some commands on non-NetBSD
systems), tweak PREFIX instead (but must comes after inclusion of bsd.pkg.mk).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2002/06/16 09:54:30 kei Exp $
d11 1
a11 1
MAINTAINER=	tech-pkg-ja@@jp.netbsd.org
@


1.2
log
@set write permission of the file which will be patched in make patch stage
to true.  Unless make will stop and wait for users' interaction.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 2002/06/10 09:15:23 sakamoto Exp $
a22 1
LOCALBASE=	${IMDICTDIR}
d58 3
@


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


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

DISTNAME=	sj3-2.0.1.20
PKGNAME=	sj3-dict-2.0.1.20
PKGREVISION=	1
CATEGORIES=	japanese inputmethod
MASTER_SITES=	ftp://ftp.sony.co.jp/pub/unsupported/src/	\
		ftp://ftp.cs.titech.ac.jp/pub/japanese/sj3/

MAINTAINER=	tech-pkg-ja@@jp.netbsd.org
COMMENT=	Japanese input method (dictionary)

BUILD_DEPENDS+=	sj3-server-bin>=2.0.1.20nb1:../sj3-server-bin

FILESDIR=	${.CURDIR}/../sj3-lib/files
DISTINFO_FILE=	${.CURDIR}/../sj3-lib/distinfo
PATCHDIR=	${.CURDIR}/../sj3-lib/patches

.include "../../mk/bsd.prefs.mk"

NO_MTREE=       YES
LOCALBASE=	${IMDICTDIR}
SJ3OWNER?=	daemon
SJ3GROUP?=	daemon
MAKE_ENV+=	SJ3OWNER=${SJ3OWNER} SJ3GROUP=${SJ3GROUP} \
		IMDICTDIR=${IMDICTDIR} LOCAL_LDFLAGS="${LDFLAGS}"

INSTALL_SRC=	${PKGDIR}/INSTALL
INSTALL_FILE=	${WRKDIR}/INSTALL

EVAL_PREFIX+=	SJ3SERVERBINDIR=sj3-server-bin

pre-configure:
	@@${CHMOD} +w ${WRKSRC}/dict/dict/Imakefile*
	@@${MV} ${WRKSRC}/dict/dict/Imakefile ${WRKSRC}/dict/dict/Imakefile.orig
	@@${SED} -e 's|$$(TOOL_DIR)/|${SJ3SERVERBINDIR}/bin/|' \
		${WRKSRC}/dict/dict/Imakefile.orig \
			> ${WRKSRC}/dict/dict/Imakefile

do-configure:
	@@(cd ${WRKSRC}/dict/dict; ${XMKMF_CMD}; \
		${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} Makefiles)

do-build:
	@@(cd ${WRKSRC}/dict/dict; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM})

post-build:
	@@${SED} -e 's|$${SJ3OWNER}|${SJ3OWNER}|'	\
		-e 's|$${SJ3GROUP}|${SJ3GROUP}|'	\
		-e 's|$${IMDICTDIR}|${IMDICTDIR}|'	\
		${INSTALL_SRC} > ${INSTALL_FILE}

do-install:
	@@(cd ${WRKSRC}/dict/dict; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} install)

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


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2002/02/28 13:29:46 wiz Exp $
d35 1
@


1.1.1.1
log
@Import sj3-dict-2.0.1.20nb1

Japanese input method (dictionary)
separated from inputmethod/sj3-server, Approved by agc.
@
text
@@
