aboutsummaryrefslogtreecommitdiffstats
path: root/games/fkiss/Makefile
blob: 959a448a70454d4106080ff09997da08e7e1bd5b (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# ports collection makefile for:    fkiss
# Date created:     31 Oct 1998
# Whom:         Seiichirou Hiraoka
#
# $FreeBSD$
#

PORTNAME=   fkiss
PORTVERSION=    0.33a
PORTREVISION=   2
CATEGORIES= games
MASTER_SITES=   http://www.oersted.co.jp/~yav/soft/fkiss/
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/a//}
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} \
        ${PORTNAME}-${PORTVERSION}-patch${EXTRACT_SUFX}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Freely enjoy childlike KISS, French-KISS!

RUN_DEPENDS=    lha:${PORTSDIR}/archivers/lha

NOT_FOR_ARCHS=  alpha

USE_XORG=   x11 xproto
WANT_GNOME= yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAKE_ARGS=  ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOHEADER="${TRUE}" \
        AUTOMAKE="${TRUE}"

MAN1=       fkiss.1
PLIST_FILES=    bin/fkiss %%EXAMPLESDIR%%/frkismi4.lzh
PLIST_DIRS= %%EXAMPLESDIR%%

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mesound}!=""
USE_GNOME+= esound
CPPFLAGS+=  `pkg-config --cflags-only-I esound`
LDFLAGS+=   `pkg-config --libs-only-L esound `
.endif

.if !defined(NOPORTDOCS)
PORTDOCS=   README README.ja_JP.eucJP
.endif

pre-patch:
    @cd ${WRKSRC} && ${CAT} ../${PORTNAME}-${PORTVERSION}.diff \
        | ${PATCH} ${PATCH_ARGS}

post-patch:
    @${REINPLACE_CMD} -e 's|= @X_LIBS@|= @LDFLAGS@ @X_LIBS@|g' \
        ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e 's|machine/soundcard|sys/soundcard|g' \
        ${WRKSRC}/sound.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/fkiss ${PREFIX}/bin/fkiss
    ${INSTALL_MAN} ${WRKSRC}/fkiss.man ${MANPREFIX}/man/man1/fkiss.1
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/frkismi4.lzh ${EXAMPLESDIR}/frkismi4.lzh
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
    ${INSTALL_DATA} ${WRKSRC}/README.euc ${DOCSDIR}/README.ja_JP.eucJP
.endif

.include <bsd.port.post.mk>