ports/183288: [maintainer update] audio/spek - depend on pkgconfig, make NLS optional
Alexander Kojevnikov
alexander at kojevnikov.com
Fri Oct 25 02:50:02 UTC 2013
>Number: 183288
>Category: ports
>Synopsis: [maintainer update] audio/spek - depend on pkgconfig, make NLS optional
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Fri Oct 25 02:50:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Alexander Kojevnikov
>Release: 9.1-RELEASE
>Organization:
>Environment:
FreeBSD alex-desktop 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:42:37 UTC 2013 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
This fixes builds on the package build server.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff --git a/Makefile b/Makefile
index 0242d96..d47a8b4 100644
--- a/Makefile
+++ b/Makefile
@@ -19,13 +19,14 @@ MAN1= spek.1
USE_XZ= yes
NO_STAGE= yes
USE_GCC= 4.7+
-USES= gettext gmake
+USES= gettext gmake pkgconfig
USE_GNOME= desktopfileutils intltool
USE_WX= 2.8+
WX_UNICODE= yes
WX_CONF_ARGS= absolute
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
+OPTIONS_DEFINE= NLS
post-install:
- at update-desktop-database
@@ -33,4 +34,14 @@ post-install:
post-patch:
@${REINPLACE_CMD} -e "s,^itlocaledir =.*$$,itlocaledir = ${PREFIX}/share/locale,g" ${WRKSRC}/po/Makefile.in.in
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
.include <bsd.port.mk>
diff --git a/pkg-descr b/pkg-descr
index 171bde0..34a80bb 100644
--- a/pkg-descr
+++ b/pkg-descr
@@ -1,4 +1,4 @@
Spek helps to analyse your audio files by showing their spectrogram.
Spek supports all popular lossy and lossless audio file formats.
-WWW: http://spek-project.org/
+WWW: http://spek.cc/
diff --git a/pkg-plist b/pkg-plist
index fa0540a..0dc2a24 100644
--- a/pkg-plist
+++ b/pkg-plist
@@ -6,25 +6,25 @@ share/icons/hicolor/24x24/apps/spek.png
share/icons/hicolor/32x32/apps/spek.png
share/icons/hicolor/48x48/apps/spek.png
share/icons/hicolor/scalable/apps/spek.svg
-share/locale/cs/LC_MESSAGES/spek.mo
-share/locale/da/LC_MESSAGES/spek.mo
-share/locale/de/LC_MESSAGES/spek.mo
-share/locale/eo/LC_MESSAGES/spek.mo
-share/locale/es/LC_MESSAGES/spek.mo
-share/locale/fr/LC_MESSAGES/spek.mo
-share/locale/it/LC_MESSAGES/spek.mo
-share/locale/ja/LC_MESSAGES/spek.mo
-share/locale/nb/LC_MESSAGES/spek.mo
-share/locale/nl/LC_MESSAGES/spek.mo
-share/locale/pl/LC_MESSAGES/spek.mo
-share/locale/pt_BR/LC_MESSAGES/spek.mo
-share/locale/ru/LC_MESSAGES/spek.mo
-share/locale/sv/LC_MESSAGES/spek.mo
-share/locale/tr/LC_MESSAGES/spek.mo
-share/locale/uk/LC_MESSAGES/spek.mo
-share/locale/vi/LC_MESSAGES/spek.mo
-share/locale/zh_CN/LC_MESSAGES/spek.mo
-share/locale/zh_TW/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/da/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/de/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/eo/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/es/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/it/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/spek.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/spek.mo
@dirrmtry share/icons/hicolor/16x16/apps
@dirrmtry share/icons/hicolor/16x16
@dirrmtry share/icons/hicolor/22x22/apps
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list