head	1.17;
access;
symbols
	pkgsrc-2013Q2:1.17.0.8
	pkgsrc-2013Q2-base:1.17
	pkgsrc-2012Q4:1.17.0.6
	pkgsrc-2012Q4-base:1.17
	pkgsrc-2011Q4:1.17.0.4
	pkgsrc-2011Q4-base:1.17
	pkgsrc-2011Q2:1.17.0.2
	pkgsrc-2011Q2-base:1.17
	pkgsrc-2009Q4:1.16.0.2
	pkgsrc-2009Q4-base:1.16
	pkgsrc-2009Q3:1.15.0.22
	pkgsrc-2009Q3-base:1.15
	pkgsrc-2009Q2:1.15.0.20
	pkgsrc-2009Q2-base:1.15
	pkgsrc-2009Q1:1.15.0.18
	pkgsrc-2009Q1-base:1.15
	pkgsrc-2008Q4:1.15.0.16
	pkgsrc-2008Q4-base:1.15
	pkgsrc-2008Q3:1.15.0.14
	pkgsrc-2008Q3-base:1.15
	cube-native-xorg:1.15.0.12
	cube-native-xorg-base:1.15
	pkgsrc-2008Q2:1.15.0.10
	pkgsrc-2008Q2-base:1.15
	cwrapper:1.15.0.8
	pkgsrc-2008Q1:1.15.0.6
	pkgsrc-2008Q1-base:1.15
	pkgsrc-2007Q4:1.15.0.4
	pkgsrc-2007Q4-base:1.15
	pkgsrc-2007Q3:1.15.0.2
	pkgsrc-2007Q3-base:1.15
	pkgsrc-2007Q2:1.14.0.8
	pkgsrc-2007Q2-base:1.14
	pkgsrc-2007Q1:1.14.0.6
	pkgsrc-2007Q1-base:1.14
	pkgsrc-2006Q4:1.14.0.4
	pkgsrc-2006Q4-base:1.14
	pkgsrc-2006Q3:1.14.0.2
	pkgsrc-2006Q3-base:1.14
	pkgsrc-2006Q2:1.13.0.4
	pkgsrc-2006Q2-base:1.13
	pkgsrc-2006Q1:1.13.0.2
	pkgsrc-2006Q1-base:1.13
	pkgsrc-2005Q4:1.12.0.2
	pkgsrc-2005Q4-base:1.12
	pkgsrc-2005Q3:1.10.0.4
	pkgsrc-2005Q3-base:1.10
	pkgsrc-2005Q2:1.10.0.2
	pkgsrc-2005Q2-base:1.10
	pkgsrc-2005Q1:1.9.0.2
	pkgsrc-2005Q1-base:1.9
	pkgsrc-2004Q4:1.8.0.8
	pkgsrc-2004Q4-base:1.8
	pkgsrc-2004Q3:1.8.0.6
	pkgsrc-2004Q3-base:1.8
	pkgsrc-2004Q2:1.8.0.4
	pkgsrc-2004Q2-base:1.8
	pkgsrc-2004Q1:1.8.0.2
	pkgsrc-2004Q1-base:1.8
	pkgsrc-2003Q4:1.5.0.2
	pkgsrc-2003Q4-base:1.5
	netbsd-1-6-1:1.2.0.2
	netbsd-1-6-1-base:1.2
	netbsd-1-6:1.1.1.1.0.4
	netbsd-1-6-RELEASE-base:1.1
	pkgviews:1.1.1.1.0.6
	pkgviews-base:1.1
	buildlink2-base:1.1.1.1
	buildlink2:1.1.1.1.0.2
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.17
date	2010.02.15.13.35.22;	author obache;	state dead;
branches;
next	1.16;

1.16
date	2010.01.09.16.15.41;	author joerg;	state Exp;
branches;
next	1.15;

1.15
date	2007.07.04.20.54.40;	author jlam;	state Exp;
branches;
next	1.14;

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

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

1.12
date	2005.12.05.20.50.24;	author rillig;	state Exp;
branches;
next	1.11;

1.11
date	2005.09.28.18.22.11;	author rillig;	state Exp;
branches;
next	1.10;

1.10
date	2005.04.11.21.46.11;	author tv;	state Exp;
branches;
next	1.9;

1.9
date	2004.12.28.02.47.43;	author reed;	state Exp;
branches;
next	1.8;

1.8
date	2004.03.05.21.23.00;	author minskim;	state Exp;
branches;
next	1.7;

1.7
date	2004.03.02.17.49.51;	author minskim;	state Exp;
branches;
next	1.6;

1.6
date	2004.01.27.00.53.11;	author heinz;	state Exp;
branches;
next	1.5;

1.5
date	2003.07.31.12.33.03;	author jmmv;	state Exp;
branches;
next	1.4;

1.4
date	2003.07.29.21.35.46;	author jmmv;	state Exp;
branches;
next	1.3;

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

1.2
date	2002.10.12.01.29.18;	author wiz;	state Exp;
branches;
next	1.1;

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

1.1.1.1
date	2002.06.10.09.16.37;	author sakamoto;	state Exp;
branches
	1.1.1.1.2.1;
next	;

1.1.1.1.2.1
date	2002.06.10.09.16.37;	author jlam;	state dead;
branches;
next	1.1.1.1.2.2;

1.1.1.1.2.2
date	2002.06.23.18.48.04;	author jlam;	state Exp;
branches;
next	;


desc
@@


1.17
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.16 2010/01/09 16:15:41 joerg Exp $
#

DISTNAME=	sj3-2.0.1.20
PKGNAME=	sj3-server-bin-2.0.1.20
PKGREVISION=	6
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 server & client

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

NOT_FOR_PLATFORM+=	${LP64PLATFORMS}

.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}

SJ3OWNER?=	daemon
SJ3GROUP?=	daemon

FILES_SUBST+=	IMDICTDIR=${IMDICTDIR:Q}
FILES_SUBST+=	SJ3OWNER=${SJ3OWNER:Q}
FILES_SUBST+=	SJ3GROUP=${SJ3GROUP:Q}

PKG_GROUPS+=	${SJ3GROUP}
PKG_USERS+=	${SJ3OWNER}:${SJ3GROUP}

PKG_GROUPS_VARS+=	SJ3GROUP
PKG_USERS_VARS+=	SJ3USER

MAKE_DIRS+=		${IMDICTDIR}
OWN_DIRS+=		${IMDICTDIR}/sj3
OWN_DIRS_PERMS+=	${IMDICTDIR}/sj3/user ${SJ3OWNER} ${SJ3GROUP} 0755

RCD_SCRIPTS=	sj3

pre-configure:
	@@${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
	@@${SED} -e 's|\(SUBDIRS = .*\)sj3lib \(.*\)|\1\2|'	\
		${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile
	@@${MV} ${WRKSRC}/dict/Imakefile ${WRKSRC}/dict/Imakefile.orig
	@@${SED} -e 's|\(SUBDIRS = .*\)dict|\1|'	\
		${WRKSRC}/dict/Imakefile.orig > ${WRKSRC}/dict/Imakefile
	@@for file in `${FIND} ${WRKSRC} -name Imakefile -print`; do	\
		${MV} -f $$file $$file.orig;			\
		${SED} -e 's|\(= \).*/lib\(sj3lib\).a|\1-l\2|'	\
			-e 's|^DEPLIBS.*|DEPLIBS =|'		\
			$$file.orig > $$file;			\
	 done

.include "../../inputmethod/sj3-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.16
log
@Mark as not 64bit safe as shown by the build of sj3-dict.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2007/07/04 20:54:40 jlam Exp $
@


1.15
log
@Make it easier to build and install packages "unprivileged", where
the owner of all installed files is a non-root user.  This change
affects most packages that require special users or groups by making
them use the specified unprivileged user and group instead.

(1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to
    unprivileged.mk.  These two variables are lists of other bmake
    variables that define package-specific users and groups.  Packages
    that have user-settable variables for users and groups, e.g. apache
    and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP},
    etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS
    so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER}
    and ${UNPRIVILEGED_GROUP}.

(2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2006/07/05 04:55:24 jlam Exp $
d17 2
@


1.14
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.13 2005/12/29 06:21:45 jlam Exp $
d34 3
@


1.13
log
@Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2005/12/05 20:50:24 rillig Exp $
d6 1
a6 1
PKGREVISION=	5
d12 1
a12 1
COMMENT=	Japanese input method (server binary)
d17 1
a17 1
PKG_INSTALLATION_TYPES=	overwrite pkgviews
d19 4
a23 3
.include "../../mk/bsd.prefs.mk"

BUILD_DEFS+=	SJ3OWNER SJ3GROUP
a25 2
MAKE_ENV+=	SJ3OWNER=${SJ3OWNER:Q} SJ3GROUP=${SJ3GROUP:Q} \
		IMDICTDIR=${IMDICTDIR:Q} LOCAL_LDFLAGS=${LDFLAGS:M*:Q}
d27 12
a38 1
RCD_SCRIPTS=		sj3
a53 4
do-configure:
	@@(cd ${WRKSRC}; ${XMKMF_CMD}; ${MAKE} Makefiles)

.include "../../devel/nbitools/buildlink3.mk"
@


1.12
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.11 2005/09/28 18:22:11 rillig Exp $
a18 1
USE_PKGINSTALL=	YES
@


1.11
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.10 2005/04/11 21:46:11 tv Exp $
d26 2
a27 2
MAKE_ENV+=	SJ3OWNER=${SJ3OWNER} SJ3GROUP=${SJ3GROUP} \
		IMDICTDIR=${IMDICTDIR} LOCAL_LDFLAGS="${LDFLAGS}"
@


1.10
log
@Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2004/12/28 02:47:43 reed Exp $
d6 1
a6 1
PKGREVISION=	4
@


1.9
log
@The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2004/03/05 21:23:00 minskim Exp $
a18 1
USE_BUILDLINK3=	YES
@


1.8
log
@bl3ify and enable pkgviews installation.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2004/03/02 17:49:51 minskim Exp $
d6 1
a6 1
PKGREVISION=	3
@


1.7
log
@Remove sj3 library from Makefile dependencies, because it is built by
sj3-lib.  Noted by Haruhisa MINAMI on tech-pkg-ja@@jp.NetBSD.org.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2004/01/27 00:53:11 heinz Exp $
d17 3
a19 1
USE_BUILDLINK2=	YES
d49 2
a50 2
.include "../../devel/nbitools/nbitools.mk"
.include "../../inputmethod/sj3-lib/buildlink2.mk"
@


1.6
log
@Use $FIND with "-print". Noted by Georg Schwarz in PR pkg/24248
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2003/07/31 12:33:03 jmmv Exp $
d40 1
@


1.5
log
@Convert the rc.d script to the standard rc.subr format.  Ok'ed by uebayasi@@.
Bump PKGREVISION to 3.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2003/07/29 21:35:46 jmmv Exp $
d37 1
a37 1
	@@for file in `${FIND} ${WRKSRC} -name Imakefile`; do	\
@


1.4
log
@Use bsd.pkg.install.mk to manage the rc.d script.  While here, add SJ3OWNER
and SJ3GROUP variables to BUILD_DEFS.  Bump PKGREVISION to 2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2003/07/17 21:43:47 grant Exp $
d6 1
a6 1
PKGREVISION=	2
a13 1
FILESDIR=	${.CURDIR}/../sj3-lib/files
a44 11

post-build:
	@@${ECHO} '#!${RCD_SCRIPTS_SHELL}'		 > ${WRKDIR}/sj3
	@@${ECHO} 'sj3=${PREFIX}/bin/sj3serv'		>> ${WRKDIR}/sj3
	@@${ECHO} 'if [ -f $$sj3 ]; then'		>> ${WRKDIR}/sj3
	@@${ECHO} "    echo -n ' sj3'"			>> ${WRKDIR}/sj3
	@@${ECHO} '	$$sj3'				>> ${WRKDIR}/sj3
	@@${ECHO} 'fi'					>> ${WRKDIR}/sj3

post-install:
	@@${INSTALL_SCRIPT} ${WRKDIR}/sj3 ${PREFIX}/etc/rc.d/sj3
@


1.3
log
@s/netbsd.org/NetBSD.org/
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2002/10/12 01:29:18 wiz Exp $
d6 1
a6 1
PKGREVISION=	1
d19 1
d23 1
d29 1
a29 2
STARTUP_SCRIPT=	etc/rc.d/sj3
STARTUP_SCRIPT_SRC=${WRKDIR}/STARTUP
d48 6
a53 6
	@@${ECHO} '#!/bin/sh'				 > ${STARTUP_SCRIPT_SRC}
	@@${ECHO} 'sj3=${PREFIX}/bin/sj3serv'		>> ${STARTUP_SCRIPT_SRC}
	@@${ECHO} 'if [ -f $$sj3 ]; then'		>> ${STARTUP_SCRIPT_SRC}
	@@${ECHO} "    echo -n ' sj3'"			>> ${STARTUP_SCRIPT_SRC}
	@@${ECHO} '	$$sj3'				>> ${STARTUP_SCRIPT_SRC}
	@@${ECHO} 'fi'					>> ${STARTUP_SCRIPT_SRC}
d56 1
a56 1
	@@${INSTALL_SCRIPT} ${STARTUP_SCRIPT_SRC} ${PREFIX}/${STARTUP_SCRIPT}
@


1.2
log
@buildlink1 -> buildlink2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2002/06/10 09:16:37 sakamoto Exp $
d11 1
a11 1
MAINTAINER=	tech-pkg-ja@@jp.netbsd.org
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2002/02/28 13:29:46 wiz Exp $
d18 2
d21 1
d58 1
a58 1
.include "../sj3-lib/buildlink.mk"
@


1.1.1.1
log
@Import sj3-server-bin-2.0.1.20nb1

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


1.1.1.1.2.1
log
@file Makefile was added on branch buildlink2 on 2002-06-23 18:48:04 +0000
@
text
@d1 56
@


1.1.1.1.2.2
log
@Merge from pkgsrc-current to buildlink2 branch.
@
text
@a0 56
# $NetBSD: Makefile,v 1.1.1.1.2.1 2002/06/23 18:48:04 jlam Exp $
#

DISTNAME=	sj3-2.0.1.20
PKGNAME=	sj3-server-bin-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 (server binary)

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

.include "../../mk/bsd.prefs.mk"
SJ3OWNER?=	daemon
SJ3GROUP?=	daemon
MAKE_ENV+=	SJ3OWNER=${SJ3OWNER} SJ3GROUP=${SJ3GROUP} \
		IMDICTDIR=${IMDICTDIR} LOCAL_LDFLAGS="${LDFLAGS}"

STARTUP_SCRIPT=	etc/rc.d/sj3
STARTUP_SCRIPT_SRC=${WRKDIR}/STARTUP

pre-configure:
	@@${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
	@@${SED} -e 's|\(SUBDIRS = .*\)sj3lib \(.*\)|\1\2|'	\
		${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile
	@@${MV} ${WRKSRC}/dict/Imakefile ${WRKSRC}/dict/Imakefile.orig
	@@${SED} -e 's|\(SUBDIRS = .*\)dict|\1|'	\
		${WRKSRC}/dict/Imakefile.orig > ${WRKSRC}/dict/Imakefile
	@@for file in `${FIND} ${WRKSRC} -name Imakefile`; do	\
		${MV} -f $$file $$file.orig;			\
		${SED} -e 's|\(= \).*/lib\(sj3lib\).a|\1-l\2|'	\
			$$file.orig > $$file;			\
	 done

do-configure:
	@@(cd ${WRKSRC}; ${XMKMF_CMD}; ${MAKE} Makefiles)

post-build:
	@@${ECHO} '#!/bin/sh'				 > ${STARTUP_SCRIPT_SRC}
	@@${ECHO} 'sj3=${PREFIX}/bin/sj3serv'		>> ${STARTUP_SCRIPT_SRC}
	@@${ECHO} 'if [ -f $$sj3 ]; then'		>> ${STARTUP_SCRIPT_SRC}
	@@${ECHO} "    echo -n ' sj3'"			>> ${STARTUP_SCRIPT_SRC}
	@@${ECHO} '	$$sj3'				>> ${STARTUP_SCRIPT_SRC}
	@@${ECHO} 'fi'					>> ${STARTUP_SCRIPT_SRC}

post-install:
	@@${INSTALL_SCRIPT} ${STARTUP_SCRIPT_SRC} ${PREFIX}/${STARTUP_SCRIPT}

.include "../../devel/nbitools/nbitools.mk"
.include "../sj3-lib/buildlink.mk"
.include "../../mk/bsd.pkg.mk"
@
