1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

- Add a WITHOUT_NLS knob, allowing to get rid of the gettext dependency.

- Use REINPLACE_CMD instead of re-implementing it with CP and SED.

Approved by:	netchild
This commit is contained in:
Marius Strobl 2006-05-16 17:13:36 +00:00
parent 2f5b92844f
commit 8f28cc71bd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=162595

View File

@ -18,7 +18,6 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Audio mixer for X11, terminal, or command line
USE_BZIP2= yes
USE_GETTEXT= yes
WANT_GNOME= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --includedir="${LOCALBASE}/include" \
@ -33,9 +32,16 @@ PLIST_FILES= bin/aumix bin/mute bin/xaumix
.for ii in ansi aumix.xpm fadein.set fadeout.set vt100 xterm
PLIST_FILES+= share/aumix/${ii}
.endfor
.if defined(WITHOUT_NLS) || defined(WITHOUT_ALL)
CONFIGURE_ARGS+=--disable-nls
.else
USE_GETTEXT= yes
.for ii in de el es fr gl ja nl pl pt_BR ru sv uk zh_CN
PLIST_FILES+= share/locale/${ii}/LC_MESSAGES/aumix.mo
.endfor
.endif
.include <bsd.port.pre.mk>
pre-extract:
@ -48,11 +54,7 @@ pre-extract:
.endif
do-patch:
.for ii in c h
${CP} -p ${WRKSRC}/src/common.${ii} ${WRKSRC}/src/common.${ii}.orig
${SED} -e "s:/etc:${PREFIX}/etc:" < ${WRKSRC}/src/common.${ii}.orig \
> ${WRKSRC}/src/common.${ii}
.endfor
@${REINPLACE_CMD} -e "s:/etc:${PREFIX}/etc:" ${WRKSRC}/src/common.[c,h]
.if (${HAVE_GNOME:Mgtk12}!="") && !defined(WITHOUT_ALL) && \
!defined(WITHOUT_GTK)&& !defined(WITH_GTK2)