summaryrefslogtreecommitdiff
path: root/audio/lame
diff options
context:
space:
mode:
authorexplorer <explorer@pkgsrc.org>1999-10-13 05:52:45 +0000
committerexplorer <explorer@pkgsrc.org>1999-10-13 05:52:45 +0000
commitdac6f1c8dc8f9b93467ef0fc77c67ec50d65d322 (patch)
tree33c6ca41116957eb2c29b36e3d11181dc0e7a30b /audio/lame
parentc91a2b3f27e5db30c9ad170693a12323c865fb38 (diff)
downloadpkgsrc-dac6f1c8dc8f9b93467ef0fc77c67ec50d65d322.tar.gz
Use LAME_USE_GTK=NO to turn off the GTK+ interface for 'lame' rather than two
separate packages, lame and lame-gui.
Diffstat (limited to 'audio/lame')
-rw-r--r--audio/lame/Makefile30
-rw-r--r--audio/lame/files/md54
-rw-r--r--audio/lame/patches/patch-gtk20
3 files changed, 40 insertions, 14 deletions
diff --git a/audio/lame/Makefile b/audio/lame/Makefile
index c8efdbee877..712c54b4e31 100644
--- a/audio/lame/Makefile
+++ b/audio/lame/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 1999/09/30 16:41:05 explorer Exp $
+# $NetBSD: Makefile,v 1.5 1999/10/13 05:54:07 explorer Exp $
#
#
@@ -6,33 +6,39 @@
# to match up. It will define LAME_GUI before including.
#
-.ifndef LAME_GUI
-DISTNAME= lame-3.31beta
-.else
-DISTNAME= lame-gui-3.31beta
-.endif
+DISTNAME= lame-3.33beta
CATEGORIES= audio
MASTER_SITES= http://www.sulaco.org/mp3/download/beta/
-DISTFILES= lame3.31beta.tar.gz
+DISTFILES= lame3.33beta.tar.gz
MAINTAINER= hubertf@netbsd.org
HOMEPAGE= http://www.sulaco.org/mp3/
DEPENDS= ncurses-4.2:../../devel/ncurses
-.ifndef LAME_GUI
-CONFLICTS= lame-gui-*
-.else
+CONFLICTS= lame-*
+
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(LAME_USE_GTK) && ${LAME_USE_GTK} != NO
DEPENDS+= gtk+-1.2.4:../../x11/gtk
-CONFLICTS= lame-[0-9]*
.endif
-WRKSRC= ${WRKDIR}/lame3.31
+WRKSRC= ${WRKDIR}/lame3.33
USE_GMAKE= yes
ALL_TARGET= lame
MIRROR_DISTFILE=no
LICENSE= fee-based-commercial-use
+PATCHDIR= ${WRKDIR}/.patches
+
+post-extract:
+ @${MKDIR} ${PATCHDIR}
+ @${CP} ${.CURDIR}/patches/patch-* ${PATCHDIR}/
+.if defined(LAME_USE_GTK) && ${LAME_USE_GTK} == NO
+ @${RM} -f ${PATCHDIR}/patch-gtk
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/lame ${PREFIX}/bin
diff --git a/audio/lame/files/md5 b/audio/lame/files/md5
index 1ae1a4a6e86..1386346c782 100644
--- a/audio/lame/files/md5
+++ b/audio/lame/files/md5
@@ -1,3 +1,3 @@
-$NetBSD: md5,v 1.3 1999/09/30 16:41:06 explorer Exp $
+$NetBSD: md5,v 1.4 1999/10/13 05:54:08 explorer Exp $
-MD5 (lame3.31beta.tar.gz) = 1c2ee677079d09aeee0aa0f85abc195c
+MD5 (lame3.33beta.tar.gz) = 761c573c0c00ba5212ae53624c891a24
diff --git a/audio/lame/patches/patch-gtk b/audio/lame/patches/patch-gtk
new file mode 100644
index 00000000000..37979ebcf8e
--- /dev/null
+++ b/audio/lame/patches/patch-gtk
@@ -0,0 +1,20 @@
+--- Makefile.orig Tue Sep 28 22:35:33 1999
++++ Makefile Wed Sep 29 12:44:42 1999
+@@ -113,6 +113,17 @@
+
+ endif
+
++##########################################################################
++# NetBSD
++##########################################################################
++ifeq ($(UNAME),NetBSD)
++# remove if you do not have GTK or do not want the GTK frame analyzer
++ GTK = -DHAVEGTK `gtk-config --cflags`
++ GTKLIBS = `gtk-config --libs`
++# Comment out next 2 lines if you want to remove VBR histogram capability
++ BRHIST_SWITCH = -DBRHIST
++ LIBTERMCAP = -lncurses
++endif
+
+ ##########################################################################
+ # SunOS