summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/ascd/Makefile10
-rw-r--r--audio/ascd/files/patch-aa4
-rw-r--r--audio/ascd/files/patch-ab6
-rw-r--r--audio/ascd/files/patch-ae13
4 files changed, 19 insertions, 14 deletions
diff --git a/audio/ascd/Makefile b/audio/ascd/Makefile
index ea169ed..398df0f 100644
--- a/audio/ascd/Makefile
+++ b/audio/ascd/Makefile
@@ -16,17 +16,21 @@ MAINTAINER= jim@FreeBSD.org
LIB_DEPENDS= workman.1:${PORTSDIR}/audio/libworkman
WRKSRC= ${WRKDIR}/${PKGNAME}
+
USE_IMAKE= yes
USE_XPM= yes
-HAS_CONFIGURE= yes
-CONFIGURE_SCRIPT= default
+
DATAFILES= ascd-0.13pr6-themes.tgz
THEMESDIR= ascd-0.13pr6-themes
MAN1= ascd.1
post-patch:
- @${LN} -fs ${WRKSRC}/misc/default ${WRKSRC}/default
+ @${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \
+ ${WRKSRC}/misc/config.h.default > ${WRKSRC}/config.h
+ @${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \
+ ${WRKSRC}/misc/dirs.h.default > ${WRKSRC}/dirs.h
+ @${CAT} ${WRKSRC}/version.h >> ${WRKSRC}/config.h
post-install:
@${CP} ${FILESDIR}/install ${WRKDIR}/${THEMESDIR}
diff --git a/audio/ascd/files/patch-aa b/audio/ascd/files/patch-aa
index 7597ba9..1825012 100644
--- a/audio/ascd/files/patch-aa
+++ b/audio/ascd/files/patch-aa
@@ -6,5 +6,5 @@
#define DEFAULT_BGCOLOR "#000000"
-#define DEFAULTDEVICE "/dev/cdrom"
-#define THDIR "/usr/local/share/AScd"
-+#define DEFAULTDEVICE "/dev/wcd0c"
-+#define THDIR "/usr/X11R6/share/ascd"
++#define DEFAULTDEVICE "/dev/acd0c"
++#define THDIR "%%PREFIX%%/share/ascd"
diff --git a/audio/ascd/files/patch-ab b/audio/ascd/files/patch-ab
index ba7c495..9b950f0 100644
--- a/audio/ascd/files/patch-ab
+++ b/audio/ascd/files/patch-ab
@@ -4,6 +4,6 @@
-#define CBINDIR /usr/local/bin
-#define CMANDIR /usr/local/man/man1
-#define CTHDIR /usr/local/share/AScd
-+#define CBINDIR /usr/X11R6/bin
-+#define CMANDIR /usr/X11R6/man/man1
-+#define CTHDIR /usr/X11R6/share/ascd
++#define CBINDIR %%PREFIX%%/bin
++#define CMANDIR %%PREFIX%%/man/man1
++#define CTHDIR %%PREFIX%%/share/ascd
diff --git a/audio/ascd/files/patch-ae b/audio/ascd/files/patch-ae
index 0532a36..697bbe8 100644
--- a/audio/ascd/files/patch-ae
+++ b/audio/ascd/files/patch-ae
@@ -1,15 +1,16 @@
---- Imakefile.orig Sun Sep 5 09:24:23 1999
-+++ Imakefile Sat Sep 25 23:52:18 1999
-@@ -6,10 +6,10 @@
+--- Imakefile.orig Sun Sep 5 08:24:23 1999
++++ Imakefile Wed Aug 2 04:41:16 2000
+@@ -5,11 +5,10 @@
+ BINDIR = CBINDIR
MANDIR = CMANDIR
THEMESDIR = CTHDIR
- MOREFLAGS = -I/usr/local/include -I/usr/X11R6/include -I.
+-MOREFLAGS = -I/usr/local/include -I/usr/X11R6/include -I.
-CCOPTIONS = $(MOREFLAGS)
-+CCOPTIONS = -O0 $(MOREFLAGS)
++EXTRA_INCLUDES = -I.
SYS_LIBRARIES = $(XLIB) -lXpm
-LOCAL_LIBRARIES = -L../libworkman -lworkman -L/usr/local/lib
-+LOCAL_LIBRARIES = -L../libworkman -lworkman -L/usr/X11R6/lib
++LOCAL_LIBRARIES = -lworkman
SRCS_OPT1 =
SRCS_OPT2 =
OpenPOWER on IntegriCloud