From edffd163896db31c59518cbce576fdec9fa71736 Mon Sep 17 00:00:00 2001 From: Philippe Audeoud Date: Wed, 10 Nov 2010 12:16:06 +0000 Subject: [PATCH] - Respect NLS OPTIONS - Remove dead code - Bump PORTREVISION - Make portlint happy PR: ports/152089 Submitted by: Sofian Brabez Approved by: maintainer --- audio/gimmix/Makefile | 22 ++++++++++++++++++---- audio/gimmix/distinfo | 1 - audio/gimmix/pkg-plist | 11 ++++++----- 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/audio/gimmix/Makefile b/audio/gimmix/Makefile index 209440991381..f42a4f2135ca 100644 --- a/audio/gimmix/Makefile +++ b/audio/gimmix/Makefile @@ -7,6 +7,7 @@ PORTNAME= gimmix PORTVERSION= 0.5.7.1 +PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_BERLIOS} MASTER_SITE_SUBDIR= gimmix @@ -20,9 +21,13 @@ LIB_DEPENDS= mpd:${PORTSDIR}/audio/libmpd \ LICENSE= GPLv2 +OPTIONS= NLS "Native Language Support" on + +.include + USE_GNOME= gtk20 intltool libglade2 USE_BZIP2= yes -USE_GETTEXT= yes + GNU_CONFIGURE= yes USE_GMAKE= yes MAKE_JOBS_SAFE= yes @@ -31,9 +36,18 @@ MAN1= gimmix.1 CONFIGURE_ENV= DATADIRNAME=share +.if !defined(WITHOUT_NLS) +CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib -lintl" +CONFIGURE_ARGS+= --enable-nls +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+= --disable-nls +PLIST_SUB+= NLS="@comment " +.endif + post-patch: - ${LN} -sf ${LOCALBASE}/share/intltool/Makefile.in.in ${WRKSRC}/po/Makefile.in.in - @${REINPLACE_CMD} -e 's,libmpd-1.0\/libmpd,libmpd,' \ - ${WRKSRC}/src/gimmix.h + @${LN} -sf ${LOCALBASE}/share/intltool/Makefile.in.in ${WRKSRC}/po/Makefile.in.in .include diff --git a/audio/gimmix/distinfo b/audio/gimmix/distinfo index 33b7a1ac12ac..0b6915cf4c97 100644 --- a/audio/gimmix/distinfo +++ b/audio/gimmix/distinfo @@ -1,3 +1,2 @@ -MD5 (gimmix-0.5.7.1.tar.bz2) = d89f3d6a80a85e9e6f34f9abd2614c15 SHA256 (gimmix-0.5.7.1.tar.bz2) = f504e19615fe2032b958d14a88504fbf9c2684ccad3cbe0b177068173e538cba SIZE (gimmix-0.5.7.1.tar.bz2) = 330368 diff --git a/audio/gimmix/pkg-plist b/audio/gimmix/pkg-plist index 808778f34d78..fdf3da983950 100644 --- a/audio/gimmix/pkg-plist +++ b/audio/gimmix/pkg-plist @@ -1,9 +1,10 @@ +@comment $FreeBSD$ bin/gimmix -share/locale/de/LC_MESSAGES/gimmix.mo -share/locale/fr/LC_MESSAGES/gimmix.mo -share/locale/sv/LC_MESSAGES/gimmix.mo -share/locale/tr/LC_MESSAGES/gimmix.mo -share/locale/zh_TW/LC_MESSAGES/gimmix.mo +%%NLS%%share/locale/de/LC_MESSAGES/gimmix.mo +%%NLS%%share/locale/fr/LC_MESSAGES/gimmix.mo +%%NLS%%share/locale/sv/LC_MESSAGES/gimmix.mo +%%NLS%%share/locale/tr/LC_MESSAGES/gimmix.mo +%%NLS%%share/locale/zh_TW/LC_MESSAGES/gimmix.mo share/applications/gimmix.desktop %%DATADIR%%/gimmix.glade %%DATADIR%%/gimmix_firstrun.png