2004-01-27 01:53:10 +01:00
|
|
|
# $NetBSD: Makefile,v 1.6 2004/01/27 00:53:11 heinz Exp $
|
2002-06-10 11:16:37 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= sj3-2.0.1.20
|
|
|
|
PKGNAME= sj3-server-bin-2.0.1.20
|
2003-07-31 14:33:03 +02:00
|
|
|
PKGREVISION= 3
|
2002-06-10 11:16:37 +02:00
|
|
|
CATEGORIES= japanese inputmethod
|
|
|
|
MASTER_SITES= ftp://ftp.sony.co.jp/pub/unsupported/src/ \
|
|
|
|
ftp://ftp.cs.titech.ac.jp/pub/japanese/sj3/
|
|
|
|
|
2003-07-17 23:41:05 +02:00
|
|
|
MAINTAINER= tech-pkg-ja@jp.NetBSD.org
|
2002-06-10 11:16:37 +02:00
|
|
|
COMMENT= Japanese input method (server binary)
|
|
|
|
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../sj3-lib/distinfo
|
|
|
|
PATCHDIR= ${.CURDIR}/../sj3-lib/patches
|
|
|
|
|
2002-10-12 03:29:18 +02:00
|
|
|
USE_BUILDLINK2= YES
|
2003-07-29 23:35:46 +02:00
|
|
|
USE_PKGINSTALL= YES
|
2002-10-12 03:29:18 +02:00
|
|
|
|
2002-06-10 11:16:37 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2002-10-12 03:29:18 +02:00
|
|
|
|
2003-07-29 23:35:46 +02:00
|
|
|
BUILD_DEFS+= SJ3OWNER SJ3GROUP
|
2002-06-10 11:16:37 +02:00
|
|
|
SJ3OWNER?= daemon
|
|
|
|
SJ3GROUP?= daemon
|
|
|
|
MAKE_ENV+= SJ3OWNER=${SJ3OWNER} SJ3GROUP=${SJ3GROUP} \
|
|
|
|
IMDICTDIR=${IMDICTDIR} LOCAL_LDFLAGS="${LDFLAGS}"
|
|
|
|
|
2003-07-29 23:35:46 +02:00
|
|
|
RCD_SCRIPTS= sj3
|
2002-06-10 11:16:37 +02:00
|
|
|
|
|
|
|
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
|
2004-01-27 01:53:10 +01:00
|
|
|
@for file in `${FIND} ${WRKSRC} -name Imakefile -print`; do \
|
2002-06-10 11:16:37 +02:00
|
|
|
${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)
|
|
|
|
|
|
|
|
.include "../../devel/nbitools/nbitools.mk"
|
2002-10-12 03:29:18 +02:00
|
|
|
.include "../../inputmethod/sj3-lib/buildlink2.mk"
|
2002-06-10 11:16:37 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|