aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2006-05-17 01:13:36 +0800
committermarius <marius@FreeBSD.org>2006-05-17 01:13:36 +0800
commit689cd85b9b6b8b5d6a1d5f77b3bbad9b52c92ca6 (patch)
treea50d8d15e0739b4338f366da2ade65d98da98632 /audio
parentc2c1a25b0373b872e14de7054b2eca049aaf9d47 (diff)
downloadfreebsd-ports-gnome-689cd85b9b6b8b5d6a1d5f77b3bbad9b52c92ca6.tar.gz
freebsd-ports-gnome-689cd85b9b6b8b5d6a1d5f77b3bbad9b52c92ca6.tar.zst
freebsd-ports-gnome-689cd85b9b6b8b5d6a1d5f77b3bbad9b52c92ca6.zip
- 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
Diffstat (limited to 'audio')
-rw-r--r--audio/aumix/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/audio/aumix/Makefile b/audio/aumix/Makefile
index cf0f1b6fd428..ad6d19bc15a9 100644
--- a/audio/aumix/Makefile
+++ b/audio/aumix/Makefile
@@ -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)