diff --git a/cad/pcb/Makefile b/cad/pcb/Makefile index dbd157bad0c4..b040cb13ce69 100644 --- a/cad/pcb/Makefile +++ b/cad/pcb/Makefile @@ -1,72 +1,69 @@ # Created by: Michael Reifenberger PORTNAME= pcb PORTVERSION= 4.2.0 PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= cad MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} MAINTAINER= hrs@FreeBSD.org COMMENT= X11 interactive printed circuit board layout system LICENSE= GPLv2 BUILD_DEPENDS= m4>=1.4.11:devel/m4 \ ${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:devel/dbus LIB_DEPENDS= libgd.so:graphics/gd \ libgtkglext-x11-1.0.so:x11-toolkits/gtkglext \ libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 RUN_DEPENDS= m4>=1.4.11:devel/m4 \ ${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:devel/dbus USES= gl gmake gnome pkgconfig tk:run shared-mime-info \ desktop-file-utils xorg USE_GL= gl glu USE_GNOME= intltool cairo pangox-compat USE_XORG= x11 xrender xinerama CONFLICTS= gts-[0-9]* GNU_CONFIGURE= yes CONFIGURE_ENV+= INSTALL_DATA="${BSD_INSTALL_DATA}" LDFLAGS+= -lpthread PORTDOCS= \ pcb.html pcb.pdf refcard.pdf pad.png puller.png thermal.png \ examples tutorial gcode.png gcode_control_img.png \ gcode_tool_path.png OPTIONS_DEFINE= DOCS NLS OPTIONS_SINGLE= GUI OPTIONS_SINGLE_GUI=MOTIF GTK NONE OPTIONS_DEFAULT=GTK DOCS_CONFIGURE_ENABLE= doc DOCS_CONFIGURE_ON= --docdir=${DOCSDIR} NLS_CONFIGURE_ENABLE= nls NLS_CONFIGURE_ON= --with-libintl-prefix=${LOCALBASE} \ ${ICONV_CONFIGURE_ARG} NLS_CONFIGURE_OFF= --without-libintl \ --without-iconv NLS_USES= gettext iconv .for L in fr nl ru pt_BR NLS_PLIST_FILES+= share/locale/${L}/LC_MESSAGES/pcb.mo .endfor MOTIF_DESC= Motif widgets MOTIF_USES= motif MOTIF_CONFIGURE_ON= --with-gui=lesstif MOTIF_CONFIGURE_ENV= WISH=${WISH} GTK_DESC= GIMP ToolKit widgets GTK_USE= GNOME=gtk20 GTK_CONFIGURE_ON= --with-gui=gtk GTK_CONFIGURE_ENV= WISH=${WISH} NONE_DESC= No GUI support NONE_CONFIGURE_ON= --without-gui NONE_CONFIGURE_ENV= WISH=/usr/bin/true -ONLY_FOR_ARCHS= i386 amd64 -ONLY_FOR_ARCHS_REASON= uses x86-specific libc functions, has not been ported - DOCS_INFO= pcb .include diff --git a/cad/pcb/files/patch-gts_rounding.h b/cad/pcb/files/patch-gts_rounding.h new file mode 100644 index 000000000000..bb16d8e83a34 --- /dev/null +++ b/cad/pcb/files/patch-gts_rounding.h @@ -0,0 +1,16 @@ +--- gts/rounding.h.orig Mon Jun 17 12:05:45 2002 ++++ gts/rounding.h Wed Sep 24 12:57:41 2003 +@@ -28,11 +28,11 @@ + _FPU_SETCW(fpu_round_double); } + # define FPU_RESTORE {_FPU_SETCW(fpu_init);} + #else /* not HAVE_FPU_CONTROL_H */ +-# ifdef __FreeBSD__ ++# ifdef HAVE_FROATINGPOINT_H + # include + # define FPU_ROUND_DOUBLE (fpsetprec(FP_PD)) + # define FPU_RESTORE (fpsetprec(FP_PE)) +-# else /* not __FreeBSD__ */ ++# else /* not HAVE_FROATINGPOINT_H */ + # ifdef WIN32 + # ifdef _MSC_VER + # include