summaryrefslogtreecommitdiff
path: root/net/papaya-plugins
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2001-12-19 09:48:32 +0000
committerPete Fritchman <petef@FreeBSD.org>2001-12-19 09:48:32 +0000
commit91e2db011f1023828a2a64980beeadfc05157815 (patch)
tree2b539619905ed0ddd14309f0bdc3de5e9195ccf9 /net/papaya-plugins
parentAdd papaya 0.90, graphical GTK mud client with plugin support. (diff)
Add papaya-plugins 0.90, plugins for papaya, a graphical GTK mud
client. PR: 32958 Submitted by: Edwin Groothuis <edwin@mavetju.org>
Notes
Notes: svn path=/head/; revision=51809
Diffstat (limited to 'net/papaya-plugins')
-rw-r--r--net/papaya-plugins/Makefile49
-rw-r--r--net/papaya-plugins/distinfo1
-rw-r--r--net/papaya-plugins/files/patch-Makefile.in19
-rw-r--r--net/papaya-plugins/pkg-comment1
-rw-r--r--net/papaya-plugins/pkg-descr8
-rw-r--r--net/papaya-plugins/scripts/add-plugins10
-rw-r--r--net/papaya-plugins/scripts/configure.papaya-plugins45
7 files changed, 133 insertions, 0 deletions
diff --git a/net/papaya-plugins/Makefile b/net/papaya-plugins/Makefile
new file mode 100644
index 000000000000..a1b09809736a
--- /dev/null
+++ b/net/papaya-plugins/Makefile
@@ -0,0 +1,49 @@
+# New ports collection makefile for: papaya-plugins
+# Date created: 23 August 2001
+# Whom: Edwin Groothuis <edwin@mavetju.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= papaya-plugins
+PORTVERSION= 0.90
+CATEGORIES= net
+MASTER_SITES= http://www.gtk-papaya.org/downloads/plugins/source/
+DISTNAME= papaya-plugins-src-${PORTVERSION}
+
+MAINTAINER= edwin@mavetju.org
+
+# We need the source for papaya to build the plugins.
+BUILD_DEPENDS= ${PORTSDIR}/net/papaya/work/papaya-src-${PORTVERSION}/src/h:${PORTSDIR}/net/papaya
+RUN_DEPENDS= papaya:${PORTSDIR}/net/papaya
+
+IS_INTERACTIVE= yes
+USE_GMAKE= yes
+USE_GNOMELIBS= yes
+USE_GTK= yes
+GNU_CONFIGURE= yes
+MAKE_ARGS+= CXX="${CXX}"
+
+PLIST= ${WRKSRC}/pkg-plist
+
+post-patch:
+ @${PERL} -pi -e 's,g\+\+,${CXX},g' ${WRKSRC}/Makefile.in
+ @${PERL} -pi -e 's,malloc.h,stdlib.h,' ${WRKSRC}/PythonPlugin.cpp \
+ ${WRKSRC}/TurfProtocol.cpp
+ @${PERL} -pi -e 's,stdint.h,sys/types.h,' ${WRKSRC}/SpellStacker.h
+
+pre-configure:
+ @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.papaya-plugins
+ ${RM} ${WRKSRC}/config.cache
+
+post-configure:
+ ${LN} -fs ${PORTSDIR}/net/papaya/work/papaya-src-${PORTVERSION}/src/h ${WRKSRC}/h
+
+post-build:
+ @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/add-plugins
+
+.include <bsd.port.mk>
+
+.if exists(${WRKDIR}/Makefile.inc)
+.include "${WRKDIR}/Makefile.inc"
+.endif
diff --git a/net/papaya-plugins/distinfo b/net/papaya-plugins/distinfo
new file mode 100644
index 000000000000..55dce286dfa6
--- /dev/null
+++ b/net/papaya-plugins/distinfo
@@ -0,0 +1 @@
+MD5 (papaya-plugins-src-0.90.tar.gz) = 4d89921d9d91fbb6aba3e774bbbc8c8b
diff --git a/net/papaya-plugins/files/patch-Makefile.in b/net/papaya-plugins/files/patch-Makefile.in
new file mode 100644
index 000000000000..bc6f02561bd6
--- /dev/null
+++ b/net/papaya-plugins/files/patch-Makefile.in
@@ -0,0 +1,19 @@
+$FreeBSD$
+
+--- Makefile.in.orig Fri Aug 31 14:39:08 2001
++++ Makefile.in Wed Dec 19 04:19:31 2001
+@@ -1,4 +1,4 @@
+-CC = g++
++CC = ${CXX}
+
+ # Commonly used modules that don't require TurfProtocol
+ COMMONMODULES = o/Speedwalk.so o/MudLog.so o/PromptPlugin.so \
+@@ -47,7 +47,7 @@
+ # should select the correct LFLAGS line.
+ ##
+
+-C++FLAGS = -I/usr/local/include $(POSTGRES_INC) `glib-config --cflags` `gtk-config --cflags` -fno-exceptions -fno-rtti -fno-inline @DEBUG@ -DUNIX -Wall $(MIDI) -Ih `gnome-config --cflags gnomeui`
++C++FLAGS = -I/usr/local/include $(POSTGRES_INC) `${GLIB_CONFIG} --cflags` `${GTK_CONFIG} --cflags` -fno-exceptions -fno-rtti -fno-inline @DEBUG@ -DUNIX -Wall $(MIDI) -Ih `gnome-config --cflags gnomeui` ${CXXFLAGS}
+
+ all: $(MODULES)
+
diff --git a/net/papaya-plugins/pkg-comment b/net/papaya-plugins/pkg-comment
new file mode 100644
index 000000000000..5ac8fd7f984b
--- /dev/null
+++ b/net/papaya-plugins/pkg-comment
@@ -0,0 +1 @@
+Plugins for papaya, a graphical GTK mud client
diff --git a/net/papaya-plugins/pkg-descr b/net/papaya-plugins/pkg-descr
new file mode 100644
index 000000000000..c9f5c96ff045
--- /dev/null
+++ b/net/papaya-plugins/pkg-descr
@@ -0,0 +1,8 @@
+Papaya is a MUD client. A MUD client is a program like telnet, but
+customised for playing MUDs with. Papaya has a number of features
+designed to make playing MUDs more enjoyable. Papaya makes use of
+Gnome to provide a graphical interface.
+
+This section is only the plugins.
+
+WWW: http://www.gtk-papaya.org/
diff --git a/net/papaya-plugins/scripts/add-plugins b/net/papaya-plugins/scripts/add-plugins
new file mode 100644
index 000000000000..23df157c0079
--- /dev/null
+++ b/net/papaya-plugins/scripts/add-plugins
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+files=`ls ${WRKSRC}/o/ | sed -e 's/^.*\/o\///g'`
+
+> pkg-plist
+for f in $files; do
+ echo share/papaya/plugins/$f >> ${WRKSRC}/pkg-plist
+done
+
+echo "@dirrm share/papaya/plugins" >> ${WRKSRC}/pkg-plist
diff --git a/net/papaya-plugins/scripts/configure.papaya-plugins b/net/papaya-plugins/scripts/configure.papaya-plugins
new file mode 100644
index 000000000000..d76e65adac71
--- /dev/null
+++ b/net/papaya-plugins/scripts/configure.papaya-plugins
@@ -0,0 +1,45 @@
+#!/bin/sh
+# $FreeBSD$
+
+tempfile=`mktemp -t checklist`
+
+if [ "${BATCH}" = "yes" ]; then
+ set \"common\"
+else
+ /usr/bin/dialog --title "Postfix configuration options" --clear \
+ --checklist "\n\
+Please select desired options:" -1 -1 8 \
+common "Enable common generic plugins" ON \
+extra "Enable extra generic plugins" OFF \
+turf "Enable the TurfProtocol plugin" OFF \
+turf-common "Enable common Turf plugins" OFF \
+turf-extra "Enable extra Turf plugins" OFF \
+python "Enable the Python interpreter" OFF \
+all "Overrides above" OFF \
+debugging "Compile with debugging symbols" OFF \
+2> $tempfile
+
+ retval=$?
+
+ if [ -s $tempfile ]; then
+ set `cat $tempfile`
+ fi
+ rm -f $tempfile
+
+ case $retval in
+ 0) if [ -z "$*" ]; then
+ echo "Nothing selected"
+ fi
+ ;;
+ 1) echo "Cancel pressed."
+ exit 1
+ ;;
+ esac
+fi
+
+exec > ${WRKDIR}/Makefile.inc
+
+while [ "$1" ]; do
+ echo "CONFIGURE_ARGS+= --enable-`echo $1 | sed -e 's/"//g'`"
+ shift
+done