aboutsummaryrefslogtreecommitdiffstats
path: root/audio/ufmcontrol-i18n
diff options
context:
space:
mode:
authornivit <nivit@FreeBSD.org>2015-10-05 00:17:20 +0800
committernivit <nivit@FreeBSD.org>2015-10-05 00:17:20 +0800
commit6915419b557f2964a8f0204db95cc9a1bdd7c8cf (patch)
treee8c7746f6dbdaa65cfae4c6d4cf9d119141e0aff /audio/ufmcontrol-i18n
parent5ab2dce8a7518aa44ba6efa7bf1a541766270cf1 (diff)
downloadfreebsd-ports-gnome-6915419b557f2964a8f0204db95cc9a1bdd7c8cf.tar.gz
freebsd-ports-gnome-6915419b557f2964a8f0204db95cc9a1bdd7c8cf.tar.zst
freebsd-ports-gnome-6915419b557f2964a8f0204db95cc9a1bdd7c8cf.zip
- Support newer libedit by using different name for a constant
(fixes build on current) - Switch to USES=libedit as suggested by stage-qa: http://poudriere.amdmi3.ru/data/10-amd64-default/failures_all_2015_09_28/logs/errors/ufmcontrol-i18n-0.3.5.log - Fix indentation - Set DATADIR, fixing xufmrc installation. Without that, incorrect DATADIR is created, and xufmrc is installed AS (as opposed to `into') share/ufmcontrol. PR: 203490 Submitted by: amdmi3
Diffstat (limited to 'audio/ufmcontrol-i18n')
-rw-r--r--audio/ufmcontrol-i18n/Makefile24
-rw-r--r--audio/ufmcontrol-i18n/files/patch-src_bin_input.c11
-rw-r--r--audio/ufmcontrol-i18n/pkg-plist2
3 files changed, 25 insertions, 12 deletions
diff --git a/audio/ufmcontrol-i18n/Makefile b/audio/ufmcontrol-i18n/Makefile
index df51f841cd36..864bcc2c3ba9 100644
--- a/audio/ufmcontrol-i18n/Makefile
+++ b/audio/ufmcontrol-i18n/Makefile
@@ -1,21 +1,23 @@
# Created by: Nicola Vitale <nivit@users.sourceforge.net>
# $FreeBSD$
-PORTNAME= ufmcontrol-i18n
-PORTVERSION= 0.3.5
-CATEGORIES= audio
-MASTER_SITES= SF/ufmcontrol/${PORTNAME}/${PORTVERSION}
+PORTNAME= ufmcontrol-i18n
+PORTVERSION= 0.3.5
+PORTREVISION= 1
+CATEGORIES= audio
+MASTER_SITES= SF/ufmcontrol-i18n/${PORTNAME}/${PORTVERSION}
-MAINTAINER= nivit@FreeBSD.org
-COMMENT= USB radio control utility
+MAINTAINER= nivit@FreeBSD.org
+COMMENT= USB radio control utility
-RUN_DEPENDS= snack>=2.2.10_4:${PORTSDIR}/audio/snack
+RUN_DEPENDS= snack>=2.2.10_4:${PORTSDIR}/audio/snack
-USES= tk:wrapper,run
-USE_LDCONFIG= yes
-MAKE_ENV= NO_PROFILE=yes
+USES= libedit tk:wrapper,run
+USE_LDCONFIG= yes
+MAKE_ENV= NO_PROFILE=yes
+DATADIR= ${PREFIX}/share/ufmcontrol
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS
pre-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
diff --git a/audio/ufmcontrol-i18n/files/patch-src_bin_input.c b/audio/ufmcontrol-i18n/files/patch-src_bin_input.c
new file mode 100644
index 000000000000..6e7757dec218
--- /dev/null
+++ b/audio/ufmcontrol-i18n/files/patch-src_bin_input.c
@@ -0,0 +1,11 @@
+--- src/bin/input.c.orig 2014-08-06 20:09:27 UTC
++++ src/bin/input.c
+@@ -51,7 +51,7 @@ input(int *cmd)
+ #if __FreeBSD_version >= 500000
+ &he,
+ #endif
+- H_EVENT, 100);
++ H_SETSIZE, 100);
+ el_set(el, EL_HIST, history, hist);
+ el_set(el, EL_EDITOR, "emacs");
+ el_set(el, EL_PROMPT, ufmcontrol_prompt);
diff --git a/audio/ufmcontrol-i18n/pkg-plist b/audio/ufmcontrol-i18n/pkg-plist
index f9432cf03fe4..dae1187c1475 100644
--- a/audio/ufmcontrol-i18n/pkg-plist
+++ b/audio/ufmcontrol-i18n/pkg-plist
@@ -66,4 +66,4 @@ share/nls/sv_SE.ISO8859-1/ufmcontrol.cat
share/nls/sv_SE.ISO8859-15/ufmcontrol.cat
share/nls/tr_TR.ISO8859-9/ufmcontrol.cat
share/nls/uk_UA.ISO8859-5/ufmcontrol.cat
-share/ufmcontrol
+%%DATADIR%%/xufmrc