1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Use proper options to check for esound

This commit is contained in:
Baptiste Daroussin 2015-09-13 13:42:26 +00:00
parent 1154a7dc4e
commit 9d1287c682
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396819

View File

@ -3,7 +3,7 @@
PORTNAME= fkiss
PORTVERSION= 0.33a
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= http://www2s.biglobe.ne.jp/~yav/soft/fkiss/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/a//}
@ -30,17 +30,14 @@ PLIST_FILES= bin/fkiss man/man1/fkiss.1.gz
PORTDOCS= *
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_DEFINE= DOCS EXAMPLES ESOUND
.include <bsd.port.pre.mk>
# XXX should be converted to OptionsNG
.if ${HAVE_GNOME:Mesound}
USES+= pkgconfig
USE_GNOME+= esound
CPPFLAGS+= `pkg-config --cflags-only-I esound`
LDFLAGS+= `pkg-config --libs-only-L esound `
.endif
ESOUND_USES= pkgconfig
ESOUND_USE= GNOME=esound
ESOUND_CPPFLAGS= `pkgconf --cflags-only-I esound`
ESOUND_LDFLAGS= `pkgconf --libs-only-L esound `
ESOUND_CONFIGURE_ENV_OFF= ac_cv_lib_esd_esd_open_sound=no \
ac_cv_header_esd_h=no
post-patch:
@${REINPLACE_CMD} -e 's|= @X_LIBS@|= @LDFLAGS@ @X_LIBS@|g' \
@ -52,12 +49,16 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/fkiss ${STAGEDIR}${PREFIX}/bin/fkiss
${INSTALL_MAN} ${WRKSRC}/fkiss.man \
${STAGEDIR}${MANPREFIX}/man/man1/fkiss.1
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.euc \
${STAGEDIR}${DOCSDIR}/README.ja_JP.eucJP
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/frkismi4.lzh \
${STAGEDIR}${EXAMPLESDIR}/frkismi4.lzh
.include <bsd.port.post.mk>
.include <bsd.port.mk>