Index: head/misc/free42/pkg-plist =================================================================== --- head/misc/free42/pkg-plist (revision 474483) +++ head/misc/free42/pkg-plist (nonexistent) @@ -1,6 +0,0 @@ -bin/free42bin -share/free42/skins/Ehrling42sl.gif -share/free42/skins/Ehrling42sl.layout -share/free42/skins/README.txt -share/free42/skins/Standard.gif -share/free42/skins/Standard.layout Property changes on: head/misc/free42/pkg-plist ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/misc/free42/Makefile =================================================================== --- head/misc/free42/Makefile (revision 474483) +++ head/misc/free42/Makefile (revision 474484) @@ -1,48 +1,58 @@ # $FreeBSD$ PORTNAME= free42 DISTVERSION= 2.0.21 +PORTREVISION= 1 CATEGORIES= misc MASTER_SITES= http://thomasokken.com/free42/upstream/ DISTNAME= ${PORTNAME}-nologo-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Simulation of the HP-42S scientific calculator and HP-82240 printer LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_aarch64= fails to link: c++: error: no such file or directory: 'gcc111libbid.a' BROKEN_armv6= fails to link: c++: error: no such file or directory: 'gcc111libbid.a' BROKEN_mips64= fails to link: c++: error: no such file or directory: 'gcc111libbid.a' BROKEN_powerpc64= fails to compile: unrecognized command line option "-Wno-c++11-narrowing" LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 USES= dos2unix gmake localbase pkgconfig tar:tgz USE_GNOME= atk cairo gdkpixbuf2 glib20 gtk20 pango USE_XORG= x11 xmu -DOS2UNIX_FILES= gtk/IntelRDFPMathLib20U1/LIBRARY/float128/op_system.h +DOS2UNIX_FILES= gtk/IntelRDFPMathLib20U1/LIBRARY/float128/op_system.h gtk/IntelRDFPMathLib20U1/LIBRARY/float128/architecture.h CXXFLAGS+= -Wno-c++11-narrowing -Wno-constant-conversion # to accommodate some code breaking with clang-50 BUILD_WRKSRC= ${WRKSRC}/gtk +VARIANTS= bin dec + +.for v in ${VARIANTS} +PLIST_FILES+= bin/${PORTNAME}${v} +.endfor + post-extract: @cd ${BUILD_WRKSRC} && tar xvfz ../inteldecimal/IntelRDFPMathLib20U1.tar.gz post-patch: - @${REINPLACE_CMD} -e 's|snprintf(free42dirname, FILENAMELEN, "%s/\.free42", home)|strcpy(free42dirname, "${DATADIR}")|' \ - ${BUILD_WRKSRC}/shell_main.cc + @${REINPLACE_CMD} -e 's|(free42dirname)|("${DATADIR}/skins")|' \ + ${BUILD_WRKSRC}/shell_skin.cc do-build: - @cd ${BUILD_WRKSRC} && \ +.for v in ${VARIANTS} + @${CP} -r ${BUILD_WRKSRC} ${BUILD_WRKSRC}-${v} + @cd ${BUILD_WRKSRC}-${v} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} cleaner && \ - ${SETENV} ${MAKE_ENV} ${MAKE_CMD} - # TODO do we need decimal fp arithmetic?: ${MAKE_CMD} BCD_MATH=1 SKIN_SYS_DIR="${DATADIR}" + ${SETENV} ${MAKE_ENV} ${v:S/dec/BCD_MATH=1/:S/bin//} ${MAKE_CMD} +.endfor do-install: - ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/free42bin ${STAGEDIR}${PREFIX}/bin/ - @cd ${WRKSRC} && ${COPYTREE_SHARE} skins ${STAGEDIR}${DATADIR} +.for v in ${VARIANTS} + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}-${v}/free42${v} ${STAGEDIR}${PREFIX}/bin/ +.endfor .include Index: head/misc/free42/files/patch-gtk_IntelRDFPMathLib20U1_LIBRARY_float128_architecture.h =================================================================== --- head/misc/free42/files/patch-gtk_IntelRDFPMathLib20U1_LIBRARY_float128_architecture.h (nonexistent) +++ head/misc/free42/files/patch-gtk_IntelRDFPMathLib20U1_LIBRARY_float128_architecture.h (revision 474484) @@ -0,0 +1,11 @@ +--- gtk/IntelRDFPMathLib20U1/LIBRARY/float128/architecture.h.orig 2018-07-12 01:32:53 UTC ++++ gtk/IntelRDFPMathLib20U1/LIBRARY/float128/architecture.h +@@ -364,7 +364,7 @@ + + + +-#elif (defined(_M_IX86) || defined(ix86) || defined(IX86) || defined(ia32) ) ++#elif (defined(_M_IX86) || defined(ix86) || defined(IX86) || defined(ia32) || defined(__i386__)) + + # undef vax + # undef mips Property changes on: head/misc/free42/files/patch-gtk_IntelRDFPMathLib20U1_LIBRARY_float128_architecture.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property