summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--games/powerpak/Makefile50
-rw-r--r--games/powerpak/distinfo1
-rw-r--r--games/powerpak/files/Makefile.FreeBSD87
-rw-r--r--games/powerpak/pkg-comment1
-rw-r--r--games/powerpak/pkg-descr3
-rw-r--r--games/powerpak/pkg-plist41
6 files changed, 183 insertions, 0 deletions
diff --git a/games/powerpak/Makefile b/games/powerpak/Makefile
new file mode 100644
index 000000000000..8d44767e2b1b
--- /dev/null
+++ b/games/powerpak/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: PowerPak
+# Version required: 990818
+# Date created: 19 August 1999
+# Whom: Andrey Zakhvatov
+#
+# $Id$
+#
+
+DISTNAME= PowerPak
+PKGNAME= powerpak-990818
+CATEGORIES= games
+MASTER_SITES= http://www.angelfire.com/va/powerpakgsdk/images/
+
+MAINTAINER= andy@icc.surw.chel.su
+
+LIB_DEPENDS= SDL.0:${PORTSDIR}/devel/sdl
+
+MAKEFILE= Makefile.FreeBSD
+
+pre-build:
+ @ ${CP} ${FILESDIR}/Makefile.FreeBSD ${WRKSRC}
+
+do-install:
+ @ ${INSTALL_DATA} ${WRKSRC}/libPP.a ${PREFIX}/lib
+ @ ${INSTALL_DATA} ${WRKSRC}/libPP.so ${PREFIX}/lib
+ @ ${MKDIR} ${PREFIX}/include/PowerPak
+.for file in IMG.h powerpak.h PowerDraw/gfx.h PowerDraw/powerdraw.h PowerDraw/primitives.h PowerDraw/sprites.h PowerDraw/truetype.h PowerInput/keyboard.h PowerInput/mouse.h PowerInput/powerinput.h
+ @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/include/PowerPak
+.endfor
+ @ ${MKDIR} ${PREFIX}/share/examples/PowerPak/PowerDraw
+ @ ${INSTALL_DATA} ${WRKSRC}/PowerDraw/examples/Makefile.UNIX ${PREFIX}/share/examples/PowerPak/PowerDraw/Makefile
+.for file in crackman.ttf crackman.txt ex1.c ex2.c ex3.c ex4.c ex4.pcx ex5.c ex5-1.pcx ex5-2.pcx ex6.c ex7.c
+ @ ${INSTALL_DATA} ${WRKSRC}/PowerDraw/examples/${file} ${PREFIX}/share/examples/PowerPak/PowerDraw
+.endfor
+ @ ${MKDIR} ${PREFIX}/share/examples/PowerPak/PowerInput
+ @ ${INSTALL_DATA} ${WRKSRC}/PowerInput/examples/Makefile.UNIX ${PREFIX}/share/examples/PowerPak/PowerInput/Makefile
+.for file in ex1.c ex2.c ex3.c ex4.c
+ @ ${INSTALL_DATA} ${WRKSRC}/PowerInput/examples/${file} ${PREFIX}/share/examples/PowerPak/PowerInput
+.endfor
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @ ${MKDIR} ${PREFIX}/share/doc/PowerPak
+.for file in ASCII-Logo CHANGELOG LICENSE README.IMG.h
+ @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/PowerPak
+.endfor
+.endif
+ @ ${LDCONFIG} -m ${PREFIX}/lib
+
+.include <bsd.port.mk>
diff --git a/games/powerpak/distinfo b/games/powerpak/distinfo
new file mode 100644
index 000000000000..0bf0738c2407
--- /dev/null
+++ b/games/powerpak/distinfo
@@ -0,0 +1 @@
+MD5 (PowerPak.tar.gz) = a2e7522e45ac9f257e7a6fce9bad258d
diff --git a/games/powerpak/files/Makefile.FreeBSD b/games/powerpak/files/Makefile.FreeBSD
new file mode 100644
index 000000000000..36d93f9b984c
--- /dev/null
+++ b/games/powerpak/files/Makefile.FreeBSD
@@ -0,0 +1,87 @@
+CC?=gcc
+LOCALBASE?=/usr/local
+CFLAGS+=-Wall -I${LOCALBASE}/include
+LIBS=-L${LOCALBASE}/lib -lm -lSDL -lttf
+OBJECTS=powerpak.o img.o img_gif.o img_ppm.o img_tif.o img_pcx.o img_bmp.o img_png.o img_jpg.o img_xxx.o \
+PowerDraw/powerdraw.o PowerDraw/gfx.o PowerDraw/primitives.o PowerDraw/sprites.o PowerDraw/truetype.o \
+PowerInput/keyboard.o PowerInput/mouse.o PowerInput/powerinput.o
+
+
+all: splash libPP.a libPP.so
+
+PowerDraw/powerdraw.o: PowerDraw/powerdraw.c
+ ${CC} -o ${.TARGET} ${CFLAGS} -c ${.ALLSRC}
+
+PowerDraw/gfx.o: PowerDraw/gfx.c
+ ${CC} -o ${.TARGET} ${CFLAGS} -c ${.ALLSRC}
+
+PowerDraw/primitives.o: PowerDraw/primitives.c
+ ${CC} -o ${.TARGET} ${CFLAGS} -c ${.ALLSRC}
+
+PowerDraw/sprites.o: PowerDraw/sprites.c
+ ${CC} -o ${.TARGET} ${CFLAGS} -c ${.ALLSRC}
+
+PowerDraw/truetype.o: PowerDraw/truetype.c
+ ${CC} -o ${.TARGET} ${CFLAGS} -c ${.ALLSRC}
+
+PowerInput/keyboard.o: PowerInput/keyboard.c
+ ${CC} -o ${.TARGET} ${CFLAGS} -c ${.ALLSRC}
+
+PowerInput/mouse.o: PowerInput/mouse.c
+ ${CC} -o ${.TARGET} ${CFLAGS} -c ${.ALLSRC}
+
+PowerInput/powerinput.o: PowerInput/powerinput.c
+ ${CC} -o ${.TARGET} ${CFLAGS} -c ${.ALLSRC}
+
+upgrade:splash installdirs
+ @echo "Deleting old libs from /usr/lib"
+ @rm -rf /usr/lib/libPP*
+ @rm -rf /usr/lib/libPD*
+ @rm -rf /usr/lib/libPI*
+ @echo "Deleting old headers from /usr/include/PowerPak"
+ @rm -rf /usr/include/PowerPak/*
+ @echo "Copying libraries to /usr/lib"
+ @cp *.a *.so /usr/lib/
+ @echo "Copying headers to /usr/include/PowerPak"
+ @cp *.h /usr/include/PowerPak/
+ @cp ./PowerDraw/*.h /usr/include/PowerPak/
+ @cp ./PowerInput/*.h /usr/include/PowerPak/
+
+install: all installdirs
+ @echo "Copying libraries to /usr/lib"
+ @cp *.so *.a /usr/lib/
+ @echo "Copying headers to /usr/include/PowerPak"
+ @cp *.h /usr/include/PowerPak/
+ @cp ./PowerDraw/*.h /usr/include/PowerPak/
+ @cp ./PowerInput/*.h /usr/include/PowerPak/
+
+uninstall: splash
+ @echo "Deleting libPP libs from /usr/lib"
+ @rm -rf /usr/lib/libPP*
+ @echo "Deleting headers from /usr/include/PowerPak"
+ @rm /usr/include/PowerPak/*
+ @echo "Removing directory /usr/include/PowerPak"
+ @rmdir /usr/include/PowerPak
+
+clean:
+ @rm -rf *.o *.a *.so
+ @rm -rf ./PowerDraw/*.o
+ @rm -rf ./PowerInput/*.o
+
+libPP.a: $(OBJECTS)
+ @echo "Building static library (libPP.a)"
+ @ar rvs libPP.a $(OBJECTS)
+
+libPP.so: $(OBJECTS)
+ @echo "Building dynamic library (libPP.so)"
+ @$(CC) -D_REENTRANT -pthread -fpic -fPIC -shared -o libPP.so $(OBJECTS) $(LIBS)
+
+splash:
+ @echo ""
+ @echo "Building PowerPak"
+ @echo ""
+ @cat ASCII-Logo
+ @echo ""
+
+installdirs: mkinstalldirs
+ @./mkinstalldirs /usr/include/PowerPak
diff --git a/games/powerpak/pkg-comment b/games/powerpak/pkg-comment
new file mode 100644
index 000000000000..1657694e6a05
--- /dev/null
+++ b/games/powerpak/pkg-comment
@@ -0,0 +1 @@
+SDL-based Game Software Development Kit
diff --git a/games/powerpak/pkg-descr b/games/powerpak/pkg-descr
new file mode 100644
index 000000000000..7f686625ed93
--- /dev/null
+++ b/games/powerpak/pkg-descr
@@ -0,0 +1,3 @@
+PowerPak is a Game Software Development Kit
+
+WWW: http://www.angelfire.com/va/powerpakgsdk/
diff --git a/games/powerpak/pkg-plist b/games/powerpak/pkg-plist
new file mode 100644
index 000000000000..f0991561de2e
--- /dev/null
+++ b/games/powerpak/pkg-plist
@@ -0,0 +1,41 @@
+include/PowerPak/IMG.h
+include/PowerPak/gfx.h
+include/PowerPak/keyboard.h
+include/PowerPak/mouse.h
+include/PowerPak/powerdraw.h
+include/PowerPak/powerinput.h
+include/PowerPak/powerpak.h
+include/PowerPak/primitives.h
+include/PowerPak/sprites.h
+include/PowerPak/truetype.h
+lib/libPP.a
+lib/libPP.so
+@exec /sbin/ldconfig -m %B
+@unexec /sbin/ldconfig -R
+share/doc/PowerPak/ASCII-Logo
+share/doc/PowerPak/CHANGELOG
+share/doc/PowerPak/LICENSE
+share/doc/PowerPak/README.IMG.h
+share/examples/PowerPak/PowerDraw/Makefile
+share/examples/PowerPak/PowerDraw/crackman.ttf
+share/examples/PowerPak/PowerDraw/crackman.txt
+share/examples/PowerPak/PowerDraw/ex1.c
+share/examples/PowerPak/PowerDraw/ex2.c
+share/examples/PowerPak/PowerDraw/ex3.c
+share/examples/PowerPak/PowerDraw/ex4.c
+share/examples/PowerPak/PowerDraw/ex4.pcx
+share/examples/PowerPak/PowerDraw/ex5-1.pcx
+share/examples/PowerPak/PowerDraw/ex5-2.pcx
+share/examples/PowerPak/PowerDraw/ex5.c
+share/examples/PowerPak/PowerDraw/ex6.c
+share/examples/PowerPak/PowerDraw/ex7.c
+share/examples/PowerPak/PowerInput/Makefile
+share/examples/PowerPak/PowerInput/ex1.c
+share/examples/PowerPak/PowerInput/ex2.c
+share/examples/PowerPak/PowerInput/ex3.c
+share/examples/PowerPak/PowerInput/ex4.c
+@dirrm include/PowerPak
+@dirrm share/doc/PowerPak
+@dirrm share/examples/PowerPak/PowerDraw
+@dirrm share/examples/PowerPak/PowerInput
+@dirrm share/examples/PowerPak