Date: Fri, 12 Jul 2002 23:00:06 +0900 (JST) From: Takanori Saneto <sanewo@ba2.so-net.ne.jp> To: FreeBSD-gnats-submit@FreeBSD.org Cc: knu@FreeBSD.org Subject: ports/40606: graphics/libflash won't compile on -CURRENT Message-ID: <200207121400.g6CE06uQ071467@muse.sanewo.dyn.to>
next in thread | raw e-mail | index | archive | help
>Number: 40606 >Category: ports >Synopsis: graphics/libflash won't compile on -CURRENT >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 15 11:00:03 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Takanori Saneto >Release: FreeBSD 5.0-CURRENT i386 >Organization: an individual >Environment: System: FreeBSD muse.sanewo.dyn.to 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Mon Jul 8 02:03:47 JST 2002 root@muse.sanewo.dyn.to:/export/usr/obj/usr/src/sys/MUSE i386 >Description: graphics/libflash as of today won't compile on -CURRENT by following reasons: #1: files/Makefile has spaces (instead of TABS) at the beginning of some lines. #2: on -CURRENT, _includeinstall target seems not used. installincludes is used instead. #3: shape.cc should include <math.h> to get the declaration of sqrt(). #4: sound.cc should include <sys/soundcard.h> instead of <machine/soundcard.h>. >How-To-Repeat: cd /usr/ports/graphics/libflash; make >Fix: Following patch will make this port compile on -CURRENT. No test on -STABLE or older is done. I'm not sure when (as a value of __FreeBSD_version) machine/soundcard.h was moved to sys/soundcard.h. Index: files/Makefile =================================================================== RCS file: /export/cvsup/cvs/ports/graphics/libflash/files/Makefile,v retrieving revision 1.2 diff -u -u -r1.2 Makefile --- files/Makefile 25 Oct 2000 19:21:38 -0000 1.2 +++ files/Makefile 12 Jul 2002 13:33:15 -0000 @@ -21,13 +21,13 @@ .include <bsd.lib.mk> # For FreeBSD 3.x or older -.if !target(_includeinstall) +.if !target(_includeinstall) && !target(installincludes) _includeinstall: .if defined(INCS) .for header in ${INCS} - cd ${.CURDIR} && \ - ${INSTALL} -C -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} \ - ${header} ${DESTDIR}${INCDIR} + cd ${.CURDIR} && \ + ${INSTALL} -C -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} \ + ${header} ${DESTDIR}${INCDIR} .endfor .endif Index: files/patch-ai =================================================================== RCS file: /export/cvsup/cvs/ports/graphics/libflash/files/patch-ai,v retrieving revision 1.1 diff -u -u -r1.1 patch-ai --- files/patch-ai 14 Oct 2000 09:28:52 -0000 1.1 +++ files/patch-ai 12 Jul 2002 13:53:10 -0000 @@ -1,11 +1,16 @@ --- sound.cc.orig Thu Sep 2 00:10:03 1999 +++ sound.cc Thu Oct 12 14:49:31 2000 -@@ -26,7 +26,11 @@ +@@ -26,7 +26,16 @@ #include <fcntl.h> #include <sys/ioctl.h> #ifndef NOSOUND +#ifdef __FreeBSD__ ++#include <sys/param.h> ++#if __FreeBSD_version >= 400000 ++#include <sys/soundcard.h> ++#else +#include <machine/soundcard.h> ++#endif +#else #include <linux/soundcard.h> +#endif Index: files/patch-shape.cc =================================================================== --- /dev/null Fri Jul 12 22:53:15 2002 +++ files/patch-shape.cc Fri Jul 12 07:57:49 2002 @@ -0,0 +1,10 @@ +--- shape.cc.orig Fri Jul 12 07:55:33 2002 ++++ shape.cc Fri Jul 12 07:56:13 2002 +@@ -21,6 +21,7 @@ + // + + #include "swf.h" ++#include <math.h> + + #ifdef RCSID + static char *rcsid = "$Id: shape.cc,v 1.5 1999/09/10 13:08:52 ode Exp $"; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207121400.g6CE06uQ071467>