aboutsummaryrefslogtreecommitdiff
path: root/games/fkiss/Makefile
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-09-17 23:29:22 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-09-17 23:29:22 +0000
commitb4e54a16bf2a1656ee12fe0848b1cc8a034a91b8 (patch)
tree85f3f0e88e62ca98c2dec89226dbf25aaf473873 /games/fkiss/Makefile
parent2b74601ab8c7ea7b4eb2d971e0f31633271278e8 (diff)
downloadports-b4e54a16bf2a1656ee12fe0848b1cc8a034a91b8.tar.gz
ports-b4e54a16bf2a1656ee12fe0848b1cc8a034a91b8.zip
Notes
Diffstat (limited to 'games/fkiss/Makefile')
-rw-r--r--games/fkiss/Makefile60
1 files changed, 44 insertions, 16 deletions
diff --git a/games/fkiss/Makefile b/games/fkiss/Makefile
index 0b43652aa423..be76fba9ea0c 100644
--- a/games/fkiss/Makefile
+++ b/games/fkiss/Makefile
@@ -6,36 +6,64 @@
#
PORTNAME= fkiss
-PORTVERSION= 0.32
+PORTVERSION= 0.33a
CATEGORIES= games
MASTER_SITES= http://www.oersted.co.jp/~yav/soft/fkiss/
-DISTNAME= ${PORTNAME}-${PORTVERSION}
+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_XLIB= yes
+WANT_GNOME= yes
+USE_REINPLACE= yes
+USE_GMAKE= yes
GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOHEADER="${TRUE}" \
+ AUTOMAKE="${TRUE}"
-NOT_FOR_ARCHS= alpha
-
-WRKSRC= ${WRKDIR}/${DISTNAME}
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}
-INSTALL_TARGET= install
+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
-post-install:
- ${INSTALL_MAN} ${WRKSRC}/fkiss.man ${PREFIX}/man/man1/fkiss.1
- ${MKDIR} ${PREFIX}/share/examples/fkiss
- ${INSTALL_DATA} ${WRKSRC}/frkismi4.lzh ${PREFIX}/share/examples/fkiss
+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} ${PREFIX}/share/doc/fkiss
- ${MKDIR} ${PREFIX}/share/doc/ja/fkiss
- ${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/fkiss
- ${INSTALL_MAN} ${WRKSRC}/README.euc ${PREFIX}/share/doc/ja/fkiss
- ${INSTALL_MAN} ${WRKSRC}/README.sjis ${PREFIX}/share/doc/ja/fkiss
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
+ ${INSTALL_DATA} ${WRKSRC}/README.euc ${DOCSDIR}/README.ja_JP.eucJP
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>