aboutsummaryrefslogtreecommitdiff
path: root/emulators/adamem
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-10-07 12:27:09 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-10-07 12:27:09 +0000
commit1b21302df9989ffcbf81a042d879e831295bf26d (patch)
tree7a7d099a50b651db5a9b78cef6bb8deea3644b69 /emulators/adamem
parentb00d23c7d0f54365dee75a6cfdb6f4db6eeaa367 (diff)
downloadports-1b21302df9989ffcbf81a042d879e831295bf26d.tar.gz
ports-1b21302df9989ffcbf81a042d879e831295bf26d.zip
fix build ; values.h problem
PR: 43761 Submitted by: Maxim Maximov <mcsi@agava.com>
Notes
Notes: svn path=/head/; revision=67550
Diffstat (limited to 'emulators/adamem')
-rw-r--r--emulators/adamem/Makefile10
-rw-r--r--emulators/adamem/files/patch-DSP.c20
2 files changed, 23 insertions, 7 deletions
diff --git a/emulators/adamem/Makefile b/emulators/adamem/Makefile
index dc9e42fa4ba7..7abedb64c5d3 100644
--- a/emulators/adamem/Makefile
+++ b/emulators/adamem/Makefile
@@ -13,16 +13,12 @@ DISTNAME= ${PORTNAME}
MAINTAINER= karlj000@unbc.ca
-BROKEN= "Does not compile"
-
+NO_WRKSUBDIR= yes
USE_XLIB= yes
USE_X_PREFIX= yes
ALL_TARGET= x
-WRKSRC= ${WRKDIR}
-
PROGDIR= ${PREFIX}/${PORTNAME}
-DOCDIR= ${PREFIX}/share/doc/${PORTNAME}
do-install:
${MKDIR} ${PROGDIR}
@@ -33,8 +29,8 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/WP.rom ${PROGDIR}
${INSTALL_DATA} ${WRKSRC}/EOS.rom ${PROGDIR}
.ifndef(NOPORTDOCS)
- ${MKDIR} ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/adamem.txt ${DOCDIR}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/adamem.txt ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/emulators/adamem/files/patch-DSP.c b/emulators/adamem/files/patch-DSP.c
new file mode 100644
index 000000000000..850bb8c86219
--- /dev/null
+++ b/emulators/adamem/files/patch-DSP.c
@@ -0,0 +1,20 @@
+--- DSP.c.orig Mon Oct 7 20:23:32 2002
++++ DSP.c Mon Oct 7 20:24:02 2002
+@@ -15,7 +15,7 @@
+
+ #include <stdio.h>
+ #include <string.h>
+-#include <values.h>
++#include <limits.h>
+
+ static int initialised=0;
+ static int stereo=0;
+@@ -103,7 +103,7 @@
+ if (freq>MAXFREQ)
+ freq=MAXFREQ;
+
+- if (freq>(MAXINT/441)) freq=MAXINT/441; /* avoid overflows */
++ if (freq>(INT_MAX/441)) freq=INT_MAX/441; /* avoid overflows */
+ if (channel==3)
+ {
+ for (i=0;i<5;++i)