aboutsummaryrefslogtreecommitdiff
path: root/audio/glame
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-07-15 16:03:19 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-07-15 16:03:19 +0000
commitd728ed28b87bc95a8a1c7832b804566a12b703fc (patch)
treeac8dd0bbf6056bcac753cad7fb3b1f76080d314d /audio/glame
parent1b3103b6b47d3cc8091eb687d2fde10ca4f7ddf7 (diff)
downloadports-d728ed28b87bc95a8a1c7832b804566a12b703fc.tar.gz
ports-d728ed28b87bc95a8a1c7832b804566a12b703fc.zip
Notes
Diffstat (limited to 'audio/glame')
-rw-r--r--audio/glame/Makefile17
-rw-r--r--audio/glame/files/patch-src::gui::util::glame_param.c14
2 files changed, 23 insertions, 8 deletions
diff --git a/audio/glame/Makefile b/audio/glame/Makefile
index 6cc5410d3f08..b3bd698b2d0b 100644
--- a/audio/glame/Makefile
+++ b/audio/glame/Makefile
@@ -15,7 +15,8 @@ MAINTAINER= sobomax@FreeBSD.org
LIB_DEPENDS= ltdl.1:${PORTSDIR}/devel/libtool
-USE_GNOME= yes
+USE_GNOMENG= yes
+USE_GNOME= gnomeprefix gnomehack libglade
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
@@ -23,13 +24,13 @@ INSTALLS_SHLIB= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lltdl ${PTHREAD_LIBS}"
-pre-patch:
- @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
- s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
- @find ${WRKSRC} -name "Makefile.in*" | xargs ${PERL} -pi -e \
- 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
- s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g ; \
- s|-lpthread|${PTHREAD_LIBS}|g'
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+ @find ${WRKSRC} -name "Makefile.in*" | xargs ${REINPLACE_CMD} -e \
+ 's|-lpthread|${PTHREAD_LIBS}|g'
+ @find ${WRKSRC} -name "*.[ch]" | xargs ${REINPLACE_CMD} -e \
+ 's|<values[.]h>|<limits.h>|'
post-install:
@install-info ${PREFIX}/info/glame.info \
diff --git a/audio/glame/files/patch-src::gui::util::glame_param.c b/audio/glame/files/patch-src::gui::util::glame_param.c
new file mode 100644
index 000000000000..feb0d5a1e0b9
--- /dev/null
+++ b/audio/glame/files/patch-src::gui::util::glame_param.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- src/gui/util/glame_param.c 2002/07/15 15:51:58 1.1
++++ src/gui/util/glame_param.c 2002/07/15 15:52:30
+@@ -321,7 +321,7 @@
+ gparam->label = gtk_label_new(label);
+ gparam->u.adj = GTK_ADJUSTMENT(gtk_adjustment_new(
+ filterparam_val_int(param),
+- -MAXINT, MAXINT, 1.0, 10.0, 0.0));
++ -INT_MAX, INT_MAX, 1.0, 10.0, 0.0));
+ gparam->widget = gtk_spin_button_new(gparam->u.adj, 1, 0);
+ gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(gparam->widget),
+ TRUE);