pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/free42 Add emulators/free42, an HP-42S RPN c...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7655e529936f
branches: trunk
changeset: 631552:7655e529936f
user: he <he%pkgsrc.org@localhost>
date: Mon Mar 10 08:38:25 2014 +0000
description:
Add emulators/free42, an HP-42S RPN calulator emulator.
diffstat:
emulators/free42/DESCR | 8 +++++
emulators/free42/Makefile | 46 +++++++++++++++++++++++++++++
emulators/free42/PLIST | 4 ++
emulators/free42/distinfo | 8 +++++
emulators/free42/options.mk | 14 ++++++++
emulators/free42/patches/patch-README | 15 +++++++++
emulators/free42/patches/patch-gtk_Makefile | 18 +++++++++++
emulators/free42/patches/patch-gtk_README | 15 +++++++++
8 files changed, 128 insertions(+), 0 deletions(-)
diffs (160 lines):
diff -r 18d45b08272e -r 7655e529936f emulators/free42/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/free42/DESCR Mon Mar 10 08:38:25 2014 +0000
@@ -0,0 +1,8 @@
+Free42 is a software clone of the Hewlett-Packard 42S calculator. If you know
+how to use an HP-42S, you know how to use Free42.
+If you're new to the HP-42S and its clones, you may want to take a peek at the
+manual. You can get a scan of the original manual, wrapped in a rather large
+PDF file, by ordering the HP Museum CD/DVD-ROM set (highly recommended for any
+HP calculator enthusiast). Go to http://hpmuseum.org/ to learn more.
+Alternatively, you can get a free manual for the HP-42S and Free42 at
+http://thomasokken.com/free42/42s.pdf
diff -r 18d45b08272e -r 7655e529936f emulators/free42/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/free42/Makefile Mon Mar 10 08:38:25 2014 +0000
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.1 2014/03/10 08:38:25 he Exp $
+
+DISTNAME= free42
+PKGVERSION= 1.4.78
+PKGNAME= ${DISTNAME}-${PKGVERSION}
+DIST_SUBDIR= ${PKGNAME_NOREV}
+CATEGORIES= emulators
+MASTER_SITES= http://thomasokken.com/free42/download/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://thomasokken.com/free42/
+COMMENT= HP42S Calculator Simulator
+LICENSE= gnu-gpl-v2
+
+#WRKSRC= ${WRKDIR}/free42/gtk/
+USE_TOOLS+= gmake
+USE_LANGUAGES+= c++
+BUILD_DIRS= gtk
+
+.include "options.mk"
+
+BUILD_TARGET= free42${VARIANT}
+
+.include "../../mk/bsd.prefs.mk"
+
+.if (${OPSYS} == NetBSD)
+CXXFLAGS+= -DNO_SINCOS
+.elif (${OPSYS} == Linux)
+MAKE_ENV+= AUDIO_ALSA=1
+.endif
+
+INSTALLATION_DIRS+= bin
+INSTALLATION_DIRS+= share/doc/free42
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${BUILD_DIRS}/${BUILD_TARGET} \
+ ${DESTDIR}/${PREFIX}/bin/free42
+ ${INSTALL_DATA} ${WRKSRC}/README \
+ ${DESTDIR}/${PREFIX}/share/doc/free42
+ ${INSTALL_DATA} ${WRKSRC}/${BUILD_DIRS}/README \
+ ${DESTDIR}/${PREFIX}/share/doc/free42/README.gtk
+
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../x11/libXmu/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 18d45b08272e -r 7655e529936f emulators/free42/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/free42/PLIST Mon Mar 10 08:38:25 2014 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2014/03/10 08:38:25 he Exp $
+bin/free42
+share/doc/free42/README
+share/doc/free42/README.gtk
diff -r 18d45b08272e -r 7655e529936f emulators/free42/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/free42/distinfo Mon Mar 10 08:38:25 2014 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2014/03/10 08:38:25 he Exp $
+
+SHA1 (free42-1.4.78/free42.tgz) = 4b5caada89dbe8adac31b0ef67fddb572663a514
+RMD160 (free42-1.4.78/free42.tgz) = 3f4cc40dc42d0cdee7ec89201566e196f3ce2431
+Size (free42-1.4.78/free42.tgz) = 10707178 bytes
+SHA1 (patch-README) = 4e1311b272c1334a1ddbb6d7043d90805516b681
+SHA1 (patch-gtk_Makefile) = 472361dc7e7b7d5b6869eb83198b6924b98ca7aa
+SHA1 (patch-gtk_README) = 83ab97efb8f9046cba6056798344b76128562d5d
diff -r 18d45b08272e -r 7655e529936f emulators/free42/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/free42/options.mk Mon Mar 10 08:38:25 2014 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2014/03/10 08:38:25 he Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.free42
+PKG_SUPPORTED_OPTIONS= bcd_math
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mbcd_math)
+MAKE_ENV+= BCD_MATH=1
+VARIANT= dec
+.else
+VARIANT= bin
+.endif
diff -r 18d45b08272e -r 7655e529936f emulators/free42/patches/patch-README
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/free42/patches/patch-README Mon Mar 10 08:38:25 2014 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-README,v 1.1 2014/03/10 08:38:25 he Exp $
+
+Fix URL to alternative HP-42S manual.
+
+--- README.orig 2013-12-09 00:49:30.000000000 +0000
++++ README
+@@ -6,7 +6,7 @@ manual. You can get a scan of the origin
+ PDF file, by ordering the HP Museum CD/DVD-ROM set (highly recommended for any
+ HP calculator enthusiast). Go to http://hpmuseum.org/ to learn more.
+ Alternatively, you can get a free manual for the HP-42S and Free42 at
+-http://joselauro.com/42s.pdf.
++http://thomasokken.com/free42/42s.pdf
+
+ The remainder of this README file covers some miscellaneous tidbits that I had
+ no other decent place to put.
diff -r 18d45b08272e -r 7655e529936f emulators/free42/patches/patch-gtk_Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/free42/patches/patch-gtk_Makefile Mon Mar 10 08:38:25 2014 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-gtk_Makefile,v 1.1 2014/03/10 08:38:25 he Exp $
+
+Remove references to X11 headers and libs, allow them to
+be controlled by pkgsrc. Also allow CXXFLAGS to be added to.
+
+--- gtk/Makefile.orig 2013-12-09 00:49:20.000000000 +0000
++++ gtk/Makefile
+@@ -15,8 +15,8 @@
+ # along with this program; if not, see http://www.gnu.org/licenses/.
+ ###############################################################################
+
+-CXXFLAGS := -MMD -Wall -Wno-parentheses -Wno-write-strings -g -I/usr/X11R6/include -fno-exceptions -fno-rtti $(shell pkg-config --cflags gtk+-2.0) -DVERSION="\"$(shell cat ../VERSION)\""
+-LDFLAGS = -L/usr/X11R6/lib
++CXXFLAGS_PRE := -MMD -Wall -Wno-parentheses -Wno-write-strings -g -fno-exceptions -fno-rtti $(shell pkg-config --cflags gtk+-2.0) -DVERSION="\"$(shell cat ../VERSION)\""
++CXXFLAGS += ${CXXFLAGS_PRE}
+ LIBS := -lXmu $(shell pkg-config --libs gtk+-2.0)
+
+ ifeq "$(shell uname -s)" "Linux"
diff -r 18d45b08272e -r 7655e529936f emulators/free42/patches/patch-gtk_README
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/free42/patches/patch-gtk_README Mon Mar 10 08:38:25 2014 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-gtk_README,v 1.1 2014/03/10 08:38:25 he Exp $
+
+Fix URL to alternative HP-42S manual.
+
+--- gtk/README.orig 2013-12-09 00:49:20.000000000 +0000
++++ gtk/README
+@@ -39,7 +39,7 @@ The ultimate documentation for Free42 is
+ obtain this manual in PDF format by purchasing the CD or DVD set from The
+ Museum of HP Calculators (http://hpmuseum.org/). Alternatively, there is an
+ independently written HP-42S/Free42 manual, by Jose Lauro Strapasson, which
+-you can download free at http://joselauro.com/42s.pdf.
++you can download free at http://thomasokken.com/free42/42s.pdf
+
+
+ Keyboard Mapping
Home |
Main Index |
Thread Index |
Old Index