aboutsummaryrefslogtreecommitdiff
path: root/audio/gimmix
diff options
context:
space:
mode:
authorPhilippe Audeoud <jadawin@FreeBSD.org>2010-11-10 12:16:06 +0000
committerPhilippe Audeoud <jadawin@FreeBSD.org>2010-11-10 12:16:06 +0000
commitedffd163896db31c59518cbce576fdec9fa71736 (patch)
treecf7e309694f2d834d20539ea5ea7a54b9888cfb2 /audio/gimmix
parent9b62f6b551aa1c0fd99e92f97d933c01c10b1238 (diff)
downloadports-edffd163896db31c59518cbce576fdec9fa71736.tar.gz
ports-edffd163896db31c59518cbce576fdec9fa71736.zip
- Respect NLS OPTIONS
- Remove dead code - Bump PORTREVISION - Make portlint happy PR: ports/152089 Submitted by: Sofian Brabez <sbrabez AT gmail.com> Approved by: maintainer
Notes
Notes: svn path=/head/; revision=264352
Diffstat (limited to 'audio/gimmix')
-rw-r--r--audio/gimmix/Makefile22
-rw-r--r--audio/gimmix/distinfo1
-rw-r--r--audio/gimmix/pkg-plist11
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 <bsd.port.options.mk>
+
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 <bsd.port.mk>
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