- 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
This commit is contained in:
Philippe Audeoud 2010-11-10 12:16:06 +00:00
parent 9b62f6b551
commit edffd16389
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=264352
3 changed files with 24 additions and 10 deletions

View file

@ -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>

View file

@ -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

View file

@ -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