aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/wine/Makefile
blob: 67753808bbb5ef2b4d164e64e56657a13225798d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:    ja-wine
# Date created:         14 Jan 1998
# Whom:         Takashi Uozu <j1594016@ed.kagu.sut.ac.jp>
#
# $FreeBSD$

PORTNAME=   wine
PORTVERSION=    99.01.31
CATEGORIES= japanese emulators
MASTER_SITES=   ${MASTER_SITE_SUNSITE} \
        http://www1.mahoroba.ne.jp/~jkuchi/wine-jp/src/
MASTER_SITE_SUBDIR= ALPHA/wine/development
DISTNAME=   ja-Wine-${PORTVERSION:S/.//g}
DISTFILES=  Wine-${PORTVERSION:S/.//g}.tar.gz \
        Wine${PORTVERSION:S/.//g}-ja.tar.gz

USE_XPM=    yes
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.//g}
PATCH_STRIP=    -p1
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-japanese --with-kinput

MAN1=       wine.1

pre-patch:
    @(cd ${WRKDIR}; \
      ${PATCH} ${PATCH_ARGS} < ${WRKDIR}/Wine${PORTVERSION:S/.//g}-jp.Patch)

pre-configure:
    @${ECHO} "WINE_INI_GLOBAL \"${PREFIX}/etc/wine.conf\"" \
      >> ${WRKSRC}/autoconf.h

post-configure:
    cd ${WRKSRC} && make depend

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/wine ${PREFIX}/bin
    -@${MKDIR} ${PREFIX}/etc 2>/dev/null
    [ -f ${PREFIX}/etc/wine.conf ] \
      || ${INSTALL_DATA} ${WRKSRC}/wine.ini ${PREFIX}/etc/wine.conf
    ${INSTALL_DATA} ${WRKSRC}/wine.sym ${PREFIX}/etc
    ${INSTALL_DATA} \
      ${WRKSRC}/documentation/wine.man ${PREFIX}/man/man1/wine.1

.if !defined(NOPORTDOCS)
post-install:
    ${MKDIR} ${PREFIX}/share/doc/ja/wine
    ${INSTALL_MAN} ${WRKDIR}/README.jis ${PREFIX}/share/doc/ja/wine
.endif

.include <bsd.port.mk>