pkgsrc/inputmethod/sj3-dict/Makefile
jlam cc4ac9bbcc * 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.
2006-07-05 04:55:23 +00:00

46 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.13 2006/07/05 04:55:23 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
.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 ${PREFIX}/libdata
.include "../../mk/bsd.pkg.mk"