# New ports collection makefile for: mueller-dic # Date created: 14 Jan 2004 # Whom: Igor Pokrovsky # # $FreeBSD$ # PORTNAME= mueller-dic PORTVERSION= 1.2 PORTREVISION= 3 CATEGORIES= russian MASTER_SITES= http://www.dindin.ru/download/ \ http://mueller-dic.chat.ru/ DISTFILES= Mueller7accentGPL.tgz yusupov_mf.tgz DIST_SUBDIR= ${PORTNAME} MAINTAINER= dindin@dindin.ru COMMENT= Mueller English-Russian dictionary USE_GMAKE= yes USE_ICONV= yes SUB_FILES= mueller WRKSRC= ${WRKDIR}/mf WRKSRC_DIC= ${WRKDIR}/usr/local/share/dict WRKSRC_DOC= ${WRKDIR}/usr/local/share/mova post-build: # convert dictionary to other charsets ${MV} ${WRKSRC_DIC}/Mueller7accentGPL.koi ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.KOI8-R iconv -f koi8-r -t cp1251 -c ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.KOI8-R > \ ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.CP1251 || ${TRUE} iconv -f koi8-r -t utf-8 -c ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.KOI8-R > \ ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.UTF-8 || ${TRUE} # rebuild dictionary hash ${WRKSRC}/mf -d ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.KOI8-R -hash ${WRKSRC}/mf -d ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.CP1251 -hash ${WRKSRC}/mf -d ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.UTF-8 -hash do-install: # install program with different name (it conflicts with teTeX) ${INSTALL_PROGRAM} ${WRKSRC}/mf ${PREFIX}/bin/muellerfind ${INSTALL_SCRIPT} ${WRKDIR}/mueller ${PREFIX}/bin/ @${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.KOI8-R ${DATADIR} ${INSTALL_DATA} ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.KOI8-R.h ${DATADIR} ${INSTALL_DATA} ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.CP1251 ${DATADIR} ${INSTALL_DATA} ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.CP1251.h ${DATADIR} ${INSTALL_DATA} ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.UTF-8 ${DATADIR} ${INSTALL_DATA} ${WRKSRC_DIC}/Mueller7accentGPL.ru_RU.UTF-8.h ${DATADIR} .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC_DOC}/Mueller7.txt ${DOCSDIR}/Mueller7.txt .endif post-install: @${ECHO_CMD} "===============================================" @${ECHO_CMD} " You can look up words in dictionary with: " @${ECHO_CMD} " ${PREFIX}/bin/mueller word" @${ECHO_CMD} "===============================================" .include