diff options
author | marius <marius@FreeBSD.org> | 2006-05-17 01:13:36 +0800 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2006-05-17 01:13:36 +0800 |
commit | 689cd85b9b6b8b5d6a1d5f77b3bbad9b52c92ca6 (patch) | |
tree | a50d8d15e0739b4338f366da2ade65d98da98632 /audio | |
parent | c2c1a25b0373b872e14de7054b2eca049aaf9d47 (diff) | |
download | freebsd-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/Makefile | 14 |
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) |