diff options
author | Max Brazhnikov <makc@FreeBSD.org> | 2011-04-07 18:54:28 +0000 |
---|---|---|
committer | Max Brazhnikov <makc@FreeBSD.org> | 2011-04-07 18:54:28 +0000 |
commit | 4a89dc207d0a5457968d4c6978fa1e7ee9eaba6d (patch) | |
tree | 6343af9bcac2c9e6e872a9834e9f5c1e8b70a697 /games/pinedit | |
parent | e1c7061f838296925e2b95f3bacb4fb510d3117a (diff) | |
download | ports-4a89dc207d0a5457968d4c6978fa1e7ee9eaba6d.tar.gz ports-4a89dc207d0a5457968d4c6978fa1e7ee9eaba6d.zip |
Notes
Diffstat (limited to 'games/pinedit')
-rw-r--r-- | games/pinedit/Makefile | 29 | ||||
-rw-r--r-- | games/pinedit/distinfo | 2 | ||||
-rw-r--r-- | games/pinedit/files/patch-configure | 33 | ||||
-rw-r--r-- | games/pinedit/files/patch-pinedit__fileutil.h | 20 | ||||
-rw-r--r-- | games/pinedit/files/patch-pinedit__pineditdoc.h | 10 | ||||
-rw-r--r-- | games/pinedit/files/patch-pinedit__polygonview.cpp | 29 | ||||
-rw-r--r-- | games/pinedit/pkg-descr | 4 | ||||
-rw-r--r-- | games/pinedit/pkg-plist | 56 |
8 files changed, 183 insertions, 0 deletions
diff --git a/games/pinedit/Makefile b/games/pinedit/Makefile new file mode 100644 index 000000000000..08d10bf03fed --- /dev/null +++ b/games/pinedit/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: pinedit +# Date created: 2011-04-02 +# Whom: Stephen Hurd <shurd@sasktel.net> +# +# $FreeBSD$ +# + +PORTNAME= pinedit +PORTVERSION= 0.3.1 +CATEGORIES= games +MASTER_SITES= SF/pinball/${PORTNAME}/${PORTNAME}-${PORTVERSION} + +MAINTAINER= shurd@sasktel.net +COMMENT= Editor for Emilia Pinball + +BUILD_DEPENDS= ${LOCALBASE}/lib/pinball/libemilia_pin.a:${PORTSDIR}/games/pinball + +USE_QT_VER= 3 +USE_SDL= sdl image mixer +USE_GL= gl +USE_GMAKE= yes +USE_PERL5_BUILD= yes +USE_AUTOTOOLS= libtool + +CONFIGURE_ARGS= --prefix=${PREFIX} --without-debug +CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${LOCALBASE}/lib/pinball" +CPPFLAGS= -DRZR_LIBSTATIC + +.include <bsd.port.mk> diff --git a/games/pinedit/distinfo b/games/pinedit/distinfo new file mode 100644 index 000000000000..abe5686c1531 --- /dev/null +++ b/games/pinedit/distinfo @@ -0,0 +1,2 @@ +SHA256 (pinedit-0.3.1.tar.gz) = 14c818e539c0ffa49868f5e7a92858038df91bd38610b38743946f9183538aa1 +SIZE (pinedit-0.3.1.tar.gz) = 1244070 diff --git a/games/pinedit/files/patch-configure b/games/pinedit/files/patch-configure new file mode 100644 index 000000000000..1ea5a3fb579b --- /dev/null +++ b/games/pinedit/files/patch-configure @@ -0,0 +1,33 @@ +--- configure.orig 2003-12-10 03:57:52.000000000 -0800 ++++ configure 2011-04-02 03:34:59.000000000 -0700 +@@ -10710,7 +10710,7 @@ + else + QT_IS_STATIC="yes" + fi +- if test x$QT_IS_STATIC = xno ; then ++ if test "x$QT_IS_STATIC" = "xno" ; then + QT_IS_DYNAMIC=`ls $QTDIR/lib/*.so 2> /dev/null` + if test "x$QT_IS_DYNAMIC" = x; then + { { echo "$as_me:$LINENO: error: *** Couldn't find any Qt libraries" >&5 +@@ -10758,10 +10758,10 @@ + fi + ;; + +- *linux*) ++ *freebsd*) + QT_LIBS="$QT_LIB" + if test $QT_IS_STATIC = yes && test $QT_IS_EMBEDDED = no; then +- QT_LIBS="$QT_LIBS -L$x_libraries -lXext -lX11 -lm -lSM -lICE -ldl -ljpeg" ++ QT_LIBS="$QT_LIBS -lXext -lX11 -lm -lSM -lICE -ljpeg" + fi + ;; + +@@ -10814,7 +10814,7 @@ + + if test x$QT_IS_STATIC = xyes ; then + OLDLIBS="$LIBS" +- LIBS="$QT_LDADD" ++ LIBS="$LIBS $QT_LDADD" + echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5 + echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6 + if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then diff --git a/games/pinedit/files/patch-pinedit__fileutil.h b/games/pinedit/files/patch-pinedit__fileutil.h new file mode 100644 index 000000000000..24ce5d02d5f4 --- /dev/null +++ b/games/pinedit/files/patch-pinedit__fileutil.h @@ -0,0 +1,20 @@ +--- ./pinedit/fileutil.h.orig 2003-03-30 22:44:13.000000000 +0400 ++++ ./pinedit/fileutil.h 2011-04-07 10:30:29.996841054 +0400 +@@ -36,14 +36,14 @@ + int writeGroup(QTextStream & file, Group * Group); + int writeShape(QTextStream & file, Shape3D * shape); + int writeBehavior(QTextStream & file, Behavior * beh); +- inline void FileUtil::incIndent() { ++ inline void incIndent() { + ++m_iIndent; + }; +- inline void FileUtil::decIndent() { ++ inline void decIndent() { + --m_iIndent; + if (m_iIndent < 0) m_iIndent = 0; + }; +- inline void FileUtil::resetIndent() { ++ inline void resetIndent() { + m_iIndent = 0; + }; + PinEditDoc * p_Doc; diff --git a/games/pinedit/files/patch-pinedit__pineditdoc.h b/games/pinedit/files/patch-pinedit__pineditdoc.h new file mode 100644 index 000000000000..af1de4cecba2 --- /dev/null +++ b/games/pinedit/files/patch-pinedit__pineditdoc.h @@ -0,0 +1,10 @@ +--- ./pinedit/pineditdoc.h.orig 2003-06-14 10:42:39.000000000 +0400 ++++ ./pinedit/pineditdoc.h 2011-04-07 10:30:29.998840211 +0400 +@@ -19,6 +19,7 @@ + + using namespace std; + // general includes ++#include <cassert> + #include <vector> + #include <map> + #include <deque> diff --git a/games/pinedit/files/patch-pinedit__polygonview.cpp b/games/pinedit/files/patch-pinedit__polygonview.cpp new file mode 100644 index 000000000000..a06ee2f5205a --- /dev/null +++ b/games/pinedit/files/patch-pinedit__polygonview.cpp @@ -0,0 +1,29 @@ +--- ./pinedit/polygonview.cpp.orig 2003-04-17 12:20:04.000000000 +0400 ++++ ./pinedit/polygonview.cpp 2011-04-07 10:30:30.076905694 +0400 +@@ -45,7 +45,7 @@ + #include "TextureUtil.h" + + #define INT2OBJ(a) ((void*)((a)+1)) +-#define OBJ2INT(a) (((int)(a))-1) ++#define OBJ2INT(a) (((intptr_t)(a))-1) + + PolygonView::PolygonView(PinEditDoc * doc, QWidget * parent, const char * name, WFlags f) + : QWidget(parent, name, f) { +@@ -347,7 +347,7 @@ + for (; iter.current(); ++iter) { + if (iter.current()->isSelected()) { + if (((ListItem*)iter.current())->getObjectType() == LISTITEM_VERTEX) { +- int vtxindex = OBJ2INT(((ListItem*)iter.current())->getObject()); ++ intptr_t vtxindex = OBJ2INT(((ListItem*)iter.current())->getObject()); + p_Polygon->moveUp(p_Polygon->includes(vtxindex)); + this->setPolygon(p_Shape, p_Polygon); + } +@@ -365,7 +365,7 @@ + for (; iter.current(); ++iter) { + if (iter.current()->isSelected()) { + if (((ListItem*)iter.current())->getObjectType() == LISTITEM_VERTEX) { +- int vtxindex = OBJ2INT(((ListItem*)iter.current())->getObject()); ++ intptr_t vtxindex = OBJ2INT(((ListItem*)iter.current())->getObject()); + p_Polygon->moveDown(p_Polygon->includes(vtxindex)); + this->setPolygon(p_Shape, p_Polygon); + } diff --git a/games/pinedit/pkg-descr b/games/pinedit/pkg-descr new file mode 100644 index 000000000000..bb9508ad0d6b --- /dev/null +++ b/games/pinedit/pkg-descr @@ -0,0 +1,4 @@ +Emilia Pinball is a free pinball game. This port installs editor +for Emilia Pinball. + +WWW: http://pinball.sourceforge.net/ diff --git a/games/pinedit/pkg-plist b/games/pinedit/pkg-plist new file mode 100644 index 000000000000..f530504768d1 --- /dev/null +++ b/games/pinedit/pkg-plist @@ -0,0 +1,56 @@ +bin/pinedit +bin/pinball-template +%%DATADIR%%/audio/bumphard.wav +%%DATADIR%%/audio/bumpsoft.wav +%%DATADIR%%/audio/bump.wav +%%DATADIR%%/audio/flip.wav +%%DATADIR%%/audio/gameover.wav +%%DATADIR%%/audio/lock.wav +%%DATADIR%%/audio/loop.wav +%%DATADIR%%/audio/nudge.wav +%%DATADIR%%/audio/opentux.wav +%%DATADIR%%/audio/shoot.wav +%%DATADIR%%/audio/up.wav +%%DATADIR%%/template/ModuleScript.cpp +%%DATADIR%%/template/pinball.pbl +%%DATADIR%%/template/Make-template +%%DATADIR%%/template/libtool +%%DATADIR%%/objects/left_arm.pbl +%%DATADIR%%/objects/right_arm.pbl +%%DATADIR%%/objects/bumper.pbl +%%DATADIR%%/objects/lock1.pbl +%%DATADIR%%/objects/lock2.pbl +%%DATADIR%%/objects/releaselock.pbl +%%DATADIR%%/objects/floor.pbl +%%DATADIR%%/objects/stopper.pbl +%%DATADIR%%/doc/manual.html +%%DATADIR%%/doc/tutorial.html +%%DATADIR%%/doc/fileopen.xpm +%%DATADIR%%/doc/workdeletepolygon.xpm +%%DATADIR%%/doc/workextrude.xpm +%%DATADIR%%/doc/workflip.xpm +%%DATADIR%%/doc/workloadgroup.xpm +%%DATADIR%%/doc/workmovegroup.xpm +%%DATADIR%%/doc/workmove.xpm +%%DATADIR%%/doc/worknewgroup.xpm +%%DATADIR%%/doc/worknewpolygon.xpm +%%DATADIR%%/doc/worknewshape.xpm +%%DATADIR%%/doc/workselect.xpm +%%DATADIR%%/doc/ss10.jpg +%%DATADIR%%/doc/ss11.jpg +%%DATADIR%%/doc/ss12.jpg +%%DATADIR%%/doc/ss13.jpg +%%DATADIR%%/doc/ss1.jpg +%%DATADIR%%/doc/ss2.jpg +%%DATADIR%%/doc/ss3.jpg +%%DATADIR%%/doc/ss4.jpg +%%DATADIR%%/doc/ss5.jpg +%%DATADIR%%/doc/ss6.jpg +%%DATADIR%%/doc/ss7.jpg +%%DATADIR%%/doc/ss8.jpg +%%DATADIR%%/doc/ss9.jpg +@dirrm %%DATADIR%%/audio +@dirrm %%DATADIR%%/template +@dirrm %%DATADIR%%/objects +@dirrm %%DATADIR%%/doc +@dirrm %%DATADIR%% |