summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorfrueauf <frueauf@pkgsrc.org>1998-05-11 11:34:05 +0000
committerfrueauf <frueauf@pkgsrc.org>1998-05-11 11:34:05 +0000
commite415543b75ccb307aee522b930bf42675e36e059 (patch)
tree8a527e42818becb90be81a9a1290cf71b26724ba /audio
parent0defd4b0a1f3131583fc6df6247616adbe7648dd (diff)
downloadpkgsrc-e415543b75ccb307aee522b930bf42675e36e059.tar.gz
Remove BUILD_DEPENDS on lesstif, REQUIRES_MOTIF=yes should be enough.
Don't hardcode LOCALBASE and X11BASE.
Diffstat (limited to 'audio')
-rw-r--r--audio/snd/Makefile10
-rw-r--r--audio/snd/patches/patch-ae4
2 files changed, 10 insertions, 4 deletions
diff --git a/audio/snd/Makefile b/audio/snd/Makefile
index 46b4a951dff..fe1d1f15e95 100644
--- a/audio/snd/Makefile
+++ b/audio/snd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 1998/05/11 08:55:10 frueauf Exp $
+# $NetBSD: Makefile,v 1.9 1998/05/11 11:34:05 frueauf Exp $
#
DISTNAME= snd
@@ -10,13 +10,19 @@ MASTER_SITES= ${MASTER_SITE_LOCAL}
MAINTAINER= hubertf@netbsd.org
DEPENDS+= xpm-3.4j:../../graphics/xpm
-BUILD_DEPENDS+= ${X11BASE}/include/Xm:../../x11/lesstif
USE_X11= YES
REQUIRES_MOTIF= YES
MAKEFILE= makefile.netbsd
ALL_TARGET= snd
+post-patch:
+ ${MV} ${WRKSRC}/makefile.netbsd ${WRKSRC}/makefile.netbsd.bak
+ ${CAT} ${WRKSRC}/makefile.netbsd.bak | \
+ ${SED} s/@LOCALBASE@/${LOCALBASE:S/\//\\\\\//g}/g | \
+ ${SED} s/@X11BASE@/${X11BASE:S/\//\\\\\//g}/g \
+ > ${WRKSRC}/makefile.netbsd
+
do-install:
cd ${WRKSRC} ; ${INSTALL_PROGRAM} snd ${PREFIX}/bin
cd ${WRKSRC} ; ${INSTALL_DATA} Snd.ad ${PREFIX}/lib/X11/app-defaults/Snd
diff --git a/audio/snd/patches/patch-ae b/audio/snd/patches/patch-ae
index 01a79356f4f..a7e912e9604 100644
--- a/audio/snd/patches/patch-ae
+++ b/audio/snd/patches/patch-ae
@@ -4,8 +4,8 @@
+# Snd make file for NetBSD, assuming Motif is available (audio currently stubbed out)
+
+CC = gcc
-+#CFLAGS = -O2 -DXPM -DHAVE_OSS -I/usr/X11R6/include -I/usr/pkg/include
-+CFLAGS = -DXPM -DHAVE_OSS -I/usr/X11R6/include -I/usr/pkg/include
++#CFLAGS = -O2 -DXPM -DHAVE_OSS -I@X11BASE@/include -I@LOCALBASE@/include
++CFLAGS = -DXPM -DHAVE_OSS -I@X11BASE@/include -I@LOCALBASE@/include
+CFLAGS += -g
+
+LIBS = -L/usr/X11R6/lib -lMrm -lXm -lXpm -lXmu -lXt -lXext -lX11 -lm -lossaudio