summaryrefslogtreecommitdiff
path: root/emulators/free42
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2014-03-10 08:38:25 +0000
committerhe <he@pkgsrc.org>2014-03-10 08:38:25 +0000
commit0b4b989ffc1ead6b995509d20175badcd10282e4 (patch)
treea8d76018dc62c132fe88b9d08203b6b82b0ba6ad /emulators/free42
parent00afd3b6aeaf7e05f41998cecbbc7f475b2a458f (diff)
downloadpkgsrc-0b4b989ffc1ead6b995509d20175badcd10282e4.tar.gz
Add emulators/free42, an HP-42S RPN calulator emulator.
Diffstat (limited to 'emulators/free42')
-rw-r--r--emulators/free42/DESCR8
-rw-r--r--emulators/free42/Makefile46
-rw-r--r--emulators/free42/PLIST4
-rw-r--r--emulators/free42/distinfo8
-rw-r--r--emulators/free42/options.mk14
-rw-r--r--emulators/free42/patches/patch-README15
-rw-r--r--emulators/free42/patches/patch-gtk_Makefile18
-rw-r--r--emulators/free42/patches/patch-gtk_README15
8 files changed, 128 insertions, 0 deletions
diff --git a/emulators/free42/DESCR b/emulators/free42/DESCR
new file mode 100644
index 00000000000..aea57d3e45c
--- /dev/null
+++ b/emulators/free42/DESCR
@@ -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 --git a/emulators/free42/Makefile b/emulators/free42/Makefile
new file mode 100644
index 00000000000..9a091a980a2
--- /dev/null
+++ b/emulators/free42/Makefile
@@ -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
+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 --git a/emulators/free42/PLIST b/emulators/free42/PLIST
new file mode 100644
index 00000000000..7f8b1d7f04e
--- /dev/null
+++ b/emulators/free42/PLIST
@@ -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 --git a/emulators/free42/distinfo b/emulators/free42/distinfo
new file mode 100644
index 00000000000..b2c1987c9fe
--- /dev/null
+++ b/emulators/free42/distinfo
@@ -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 --git a/emulators/free42/options.mk b/emulators/free42/options.mk
new file mode 100644
index 00000000000..45f893ffd76
--- /dev/null
+++ b/emulators/free42/options.mk
@@ -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 --git a/emulators/free42/patches/patch-README b/emulators/free42/patches/patch-README
new file mode 100644
index 00000000000..e72da542327
--- /dev/null
+++ b/emulators/free42/patches/patch-README
@@ -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 --git a/emulators/free42/patches/patch-gtk_Makefile b/emulators/free42/patches/patch-gtk_Makefile
new file mode 100644
index 00000000000..1aa4d020ae2
--- /dev/null
+++ b/emulators/free42/patches/patch-gtk_Makefile
@@ -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 --git a/emulators/free42/patches/patch-gtk_README b/emulators/free42/patches/patch-gtk_README
new file mode 100644
index 00000000000..18b0648f662
--- /dev/null
+++ b/emulators/free42/patches/patch-gtk_README
@@ -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