new MULTI_PACKAGES
This commit is contained in:
parent
e0e5780e0e
commit
e39033ed8b
@ -1,9 +1,9 @@
|
|||||||
# From FreeBSD: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
|
# From FreeBSD: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
|
||||||
#
|
#
|
||||||
# $FreeBSD: Makefile,v 1.19 1997/09/23 02:17:58 max Exp $
|
# $FreeBSD: Makefile,v 1.19 1997/09/23 02:17:58 max Exp $
|
||||||
# $OpenBSD: Makefile,v 1.50 2006/08/04 19:57:32 sturm Exp $
|
# $OpenBSD: Makefile,v 1.51 2006/11/20 13:50:58 espie Exp $
|
||||||
|
|
||||||
COMMENT= "Japanese input method"
|
COMMENT-main= "Japanese input method"
|
||||||
COMMENT-dict= "dictionaries for Japanese Wnn"
|
COMMENT-dict= "dictionaries for Japanese Wnn"
|
||||||
COMMENT-ko= "Korean input method"
|
COMMENT-ko= "Korean input method"
|
||||||
COMMENT-kodict= "dictionaries for Korean Wnn"
|
COMMENT-kodict= "dictionaries for Korean Wnn"
|
||||||
@ -14,12 +14,14 @@ COMMENT-xwnmo= "X11 input method for Wnn"
|
|||||||
|
|
||||||
DISTNAME= Wnn4.2
|
DISTNAME= Wnn4.2
|
||||||
|
|
||||||
|
CATEGORIES= japanese
|
||||||
|
|
||||||
# If you are building this manually, you can override MULTI_PACKAGES
|
# If you are building this manually, you can override MULTI_PACKAGES
|
||||||
# on the command line, and thus avoid building all three languages
|
# on the command line, and thus avoid building all three languages
|
||||||
|
|
||||||
MULTI_PACKAGES=-dict -zh -zhdict -ko -kodict -xwnmo -data
|
MULTI_PACKAGES=-main -dict -zh -zhdict -ko -kodict -xwnmo -data
|
||||||
|
|
||||||
PKGNAME= ja-Wnn-4.2p2
|
PKGNAME-main= ja-Wnn-4.2p3
|
||||||
PKGNAME-dict= ja-Wnndict-4.2p0
|
PKGNAME-dict= ja-Wnndict-4.2p0
|
||||||
PKGNAME-zh= zh-Wnn-4.2p0
|
PKGNAME-zh= zh-Wnn-4.2p0
|
||||||
PKGNAME-zhdict= zh-Wnndict-4.2p0
|
PKGNAME-zhdict= zh-Wnndict-4.2p0
|
||||||
@ -33,38 +35,24 @@ WNNDICDIR=${WNNDICBASE}/dict/Wnn
|
|||||||
WNNBASE=${LOCALBASE}
|
WNNBASE=${LOCALBASE}
|
||||||
SUBST_VARS=WNNBASE
|
SUBST_VARS=WNNBASE
|
||||||
|
|
||||||
.if defined(PACKAGING)
|
CATEGORIES-zh= chinese
|
||||||
SUBPACKAGE?=
|
CATEGORIES-zhdict= chinese
|
||||||
. if ${SUBPACKAGE} == "-dict"
|
CATEGORIES-ko= korean
|
||||||
CATEGORIES= japanese
|
CATEGORIES-kodict= korean
|
||||||
PREFIX=${WNNDICBASE}
|
CATEGORIES-data= japanese chinese korean
|
||||||
. elif ${SUBPACKAGE} == "-zh"
|
CATEGORIES-wnmo= japanese chinese korean
|
||||||
CATEGORIES= chinese
|
|
||||||
WANTLIB= c curses
|
PREFIX-dict= ${WNNDICBASE}
|
||||||
. elif ${SUBPACKAGE} == "-zhdict"
|
PREFIX-zhdict= ${WNNDICBASE}
|
||||||
CATEGORIES= chinese
|
PREFIX-kodict= ${WNNDICBASE}
|
||||||
PREFIX=${WNNDICBASE}
|
|
||||||
. elif ${SUBPACKAGE} == "-ko"
|
WANTLIB-main= c curses
|
||||||
CATEGORIES= korean
|
WANTLIB-zh= c curses
|
||||||
WANTLIB= c curses
|
WANTLIB-ko= c curses
|
||||||
. elif ${SUBPACKAGE} == "-kodict"
|
WANTLIB-xwnmo= c Xt SM Xmu X11 Xext ICE
|
||||||
CATEGORIES= korean
|
|
||||||
PREFIX=${WNNDICBASE}
|
RUN_DEPENDS= ::japanese/Wnn,-data
|
||||||
. elif ${SUBPACKAGE} == "-xwnmo"
|
RUN_DEPENDS-data=
|
||||||
CATEGORIES= japanese chinese korean
|
|
||||||
WANTLIB= c Xt SM Xmu X11 Xext ICE
|
|
||||||
. elif ${SUBPACKAGE} == "-data"
|
|
||||||
CATEGORIES= japanese chinese korean
|
|
||||||
. else
|
|
||||||
WANTLIB= c curses
|
|
||||||
CATEGORIES= japanese
|
|
||||||
. endif
|
|
||||||
. if ${SUBPACKAGE} != "-data"
|
|
||||||
RUN_DEPENDS= ::japanese/Wnn,-data
|
|
||||||
. endif
|
|
||||||
.else
|
|
||||||
CATEGORIES= japanese
|
|
||||||
.endif
|
|
||||||
|
|
||||||
MASTER_SITES= ftp://ftp.u-tokyo.ac.jp/pub/Japanese/Wnn/ \
|
MASTER_SITES= ftp://ftp.u-tokyo.ac.jp/pub/Japanese/Wnn/ \
|
||||||
ftp://ports.jp.FreeBSD.org/pub/incoming/distfiles/
|
ftp://ports.jp.FreeBSD.org/pub/incoming/distfiles/
|
||||||
@ -120,21 +108,9 @@ do-configure:
|
|||||||
@echo " WNNBASEDIR = ${PREFIX}" >>${CONFIG_FILE}
|
@echo " WNNBASEDIR = ${PREFIX}" >>${CONFIG_FILE}
|
||||||
@echo "#define BuildWnn YES" >>${CONFIG_FILE}
|
@echo "#define BuildWnn YES" >>${CONFIG_FILE}
|
||||||
@echo "#define BuildJlibV3 YES" >>${CONFIG_FILE}
|
@echo "#define BuildJlibV3 YES" >>${CONFIG_FILE}
|
||||||
.if ${MULTI_PACKAGES:M-zh}
|
|
||||||
@echo "#define BuildCWnn YES" >>${CONFIG_FILE}
|
@echo "#define BuildCWnn YES" >>${CONFIG_FILE}
|
||||||
.else
|
|
||||||
@echo "#define BuildCWnn NO" >>${CONFIG_FILE}
|
|
||||||
.endif
|
|
||||||
.if ${MULTI_PACKAGES:M-ko}
|
|
||||||
@echo "#define BuildKWnn YES" >>${CONFIG_FILE}
|
@echo "#define BuildKWnn YES" >>${CONFIG_FILE}
|
||||||
.else
|
|
||||||
@echo "#define BuildKWnn NO" >>${CONFIG_FILE}
|
|
||||||
.endif
|
|
||||||
.if ${MULTI_PACKAGES:M-xwnmo}
|
|
||||||
@echo "#define BuildXwnmo YES" >>${CONFIG_FILE}
|
@echo "#define BuildXwnmo YES" >>${CONFIG_FILE}
|
||||||
.else
|
|
||||||
@echo "#define BuildXwnmo NO" >>${CONFIG_FILE}
|
|
||||||
.endif
|
|
||||||
@cd ${WRKSRC}/config && ln -sf Project.tmpl X11.tmpl
|
@cd ${WRKSRC}/config && ln -sf Project.tmpl X11.tmpl
|
||||||
|
|
||||||
|
|
||||||
@ -168,5 +144,6 @@ post-install:
|
|||||||
${INSTALL_DATA} ${WRKDIST}/Wnn/jd/sysV/cvt_key* ${PREFIX}/lib/wnn
|
${INSTALL_DATA} ${WRKDIST}/Wnn/jd/sysV/cvt_key* ${PREFIX}/lib/wnn
|
||||||
${INSTALL_DATA} ${WRKDIST}/Wnn/jd/serverdefs ${PREFIX}/lib/wnn
|
${INSTALL_DATA} ${WRKDIST}/Wnn/jd/serverdefs ${PREFIX}/lib/wnn
|
||||||
${INSTALL_SCRIPT} ${FILESDIR}/install-script ${PREFIX}/lib/wnn
|
${INSTALL_SCRIPT} ${FILESDIR}/install-script ${PREFIX}/lib/wnn
|
||||||
|
chmod u-s ${PREFIX}/bin/*server
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
@comment $OpenBSD: PLIST,v 1.16 2006/08/04 19:57:32 sturm Exp $
|
@comment $OpenBSD: PLIST-main,v 1.1 2006/11/20 13:50:58 espie Exp $
|
||||||
@newuser _wnn:517:bin::Wnn server:/nonexistent:/sbin/nologin
|
@newuser _wnn:517:bin::Wnn server:/nonexistent:/sbin/nologin
|
||||||
|
@pkgpath japanese/Wnn
|
||||||
bin/atod
|
bin/atod
|
||||||
bin/atof
|
bin/atof
|
||||||
bin/dtoa
|
bin/dtoa
|
Loading…
Reference in New Issue
Block a user