This is a port of PowerPak-990818, a Game Software Development Kit. WWW: http://www.angelfire.com/va/powerpakgsdk/ # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # PowerPak-990818 # PowerPak-990818/Makefile # PowerPak-990818/files # PowerPak-990818/files/md5 # PowerPak-990818/files/Makefile.FreeBSD # PowerPak-990818/patches # PowerPak-990818/patches/patch-aa # PowerPak-990818/patches/patch-ab # PowerPak-990818/patches/patch-ba # PowerPak-990818/patches/patch-ca # PowerPak-990818/pkg # PowerPak-990818/pkg/COMMENT # PowerPak-990818/pkg/PLIST # PowerPak-990818/pkg/DESCR # echo c - PowerPak-990818 mkdir -p PowerPak-990818 > /dev/null 2>&1 echo x - PowerPak-990818/Makefile sed 's/^X//' >PowerPak-990818/Makefile << 'END-of-PowerPak-990818/Makefile' X# New ports collection makefile for: PowerPak X# Version required: 990818 X# Date created: 19 August 1999 X# Whom: Andrey Zakhvatov X# X# $Id$ X# X XDISTNAME= PowerPak XPKGNAME= PowerPak-990818 XCATEGORIES= devel XMASTER_SITES= http://www.angelfire.com/va/powerpakgsdk/images/ X XMAINTAINER= andy@icc.surw.chel.su X XLIB_DEPENDS= SDL.0:${PORTSDIR}/devel/sdl X XMAKEFILE= Makefile.FreeBSD X Xpre-build: X @ ${CP} ${FILESDIR}/Makefile.FreeBSD ${WRKSRC} X Xdo-install: X @ ${INSTALL_DATA} ${WRKSRC}/libPP.a ${PREFIX}/lib X @ ${INSTALL_DATA} ${WRKSRC}/libPP.so ${PREFIX}/lib X @ ${MKDIR} ${PREFIX}/include/PowerPak X.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 X @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/include/PowerPak X.endfor X @ ${MKDIR} ${PREFIX}/share/examples/PowerPak/PowerDraw X @ ${INSTALL_DATA} ${WRKSRC}/PowerDraw/examples/Makefile.UNIX ${PREFIX}/share/examples/PowerPak/PowerDraw/Makefile X.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 X @ ${INSTALL_DATA} ${WRKSRC}/PowerDraw/examples/${file} ${PREFIX}/share/examples/PowerPak/PowerDraw X.endfor X @ ${MKDIR} ${PREFIX}/share/examples/PowerPak/PowerInput X @ ${INSTALL_DATA} ${WRKSRC}/PowerInput/examples/Makefile.UNIX ${PREFIX}/share/examples/PowerPak/PowerInput/Makefile X.for file in ex1.c ex2.c ex3.c ex4.c X @ ${INSTALL_DATA} ${WRKSRC}/PowerInput/examples/${file} ${PREFIX}/share/examples/PowerPak/PowerInput X.endfor X Xpost-install: X.if !defined(NOPORTDOCS) X @ ${MKDIR} ${PREFIX}/share/doc/PowerPak X.for file in ASCII-Logo CHANGELOG LICENSE README.IMG.h X @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/PowerPak X.endfor X.endif X @ ${LDCONFIG} -m ${PREFIX}/lib X X.include <bsd.port.mk> END-of-PowerPak-990818/Makefile echo c - PowerPak-990818/files mkdir -p PowerPak-990818/files > /dev/null 2>&1 echo x - PowerPak-990818/files/md5 sed 's/^X//' >PowerPak-990818/files/md5 << 'END-of-PowerPak-990818/files/md5' XMD5 (PowerPak.tar.gz) = a2e7522e45ac9f257e7a6fce9bad258d END-of-PowerPak-990818/files/md5 echo x - PowerPak-990818/files/Makefile.FreeBSD sed 's/^X//' >PowerPak-990818/files/Makefile.FreeBSD << 'END-of-PowerPak-990818/files/Makefile.FreeBSD' XCC?=gcc XLOCALBASE?=/usr/local XCFLAGS+=-Wall -I${LOCALBASE}/include XLIBS=-L${LOCALBASE}/lib -lm -lSDL -lttf XOBJECTS=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 \ XPowerDraw/powerdraw.o PowerDraw/gfx.o PowerDraw/primitives.o PowerDraw/sprites.o PowerDraw/truetype.o \ XPowerInput/keyboard.o PowerInput/mouse.o PowerInput/powerinput.o X X Xall: splash libPP.a libPP.so X XPowerDraw/powerdraw.o: PowerDraw/powerdraw.c X ${CC} -o ${.TARGET} ${CFLAGS} -c ${.ALLSRC} X XPowerDraw/gfx.o: PowerDraw/gfx.c X ${CC} -o ${.TARGET} ${CFLAGS} -c ${.ALLSRC} X XPowerDraw/primitives.o: PowerDraw/primitives.c X ${CC} -o ${.TARGET} ${CFLAGS} -c ${.ALLSRC} X XPowerDraw/sprites.o: PowerDraw/sprites.c X ${CC} -o ${.TARGET} ${CFLAGS} -c ${.ALLSRC} X XPowerDraw/truetype.o: PowerDraw/truetype.c X ${CC} -o ${.TARGET} ${CFLAGS} -c ${.ALLSRC} X XPowerInput/keyboard.o: PowerInput/keyboard.c X ${CC} -o ${.TARGET} ${CFLAGS} -c ${.ALLSRC} X XPowerInput/mouse.o: PowerInput/mouse.c X ${CC} -o ${.TARGET} ${CFLAGS} -c ${.ALLSRC} X XPowerInput/powerinput.o: PowerInput/powerinput.c X ${CC} -o ${.TARGET} ${CFLAGS} -c ${.ALLSRC} X Xupgrade:splash installdirs X @echo "Deleting old libs from /usr/lib" X @rm -rf /usr/lib/libPP* X @rm -rf /usr/lib/libPD* X @rm -rf /usr/lib/libPI* X @echo "Deleting old headers from /usr/include/PowerPak" X @rm -rf /usr/include/PowerPak/* X @echo "Copying libraries to /usr/lib" X @cp *.a *.so /usr/lib/ X @echo "Copying headers to /usr/include/PowerPak" X @cp *.h /usr/include/PowerPak/ X @cp ./PowerDraw/*.h /usr/include/PowerPak/ X @cp ./PowerInput/*.h /usr/include/PowerPak/ X Xinstall: all installdirs X @echo "Copying libraries to /usr/lib" X @cp *.so *.a /usr/lib/ X @echo "Copying headers to /usr/include/PowerPak" X @cp *.h /usr/include/PowerPak/ X @cp ./PowerDraw/*.h /usr/include/PowerPak/ X @cp ./PowerInput/*.h /usr/include/PowerPak/ X Xuninstall: splash X @echo "Deleting libPP libs from /usr/lib" X @rm -rf /usr/lib/libPP* X @echo "Deleting headers from /usr/include/PowerPak" X @rm /usr/include/PowerPak/* X @echo "Removing directory /usr/include/PowerPak" X @rmdir /usr/include/PowerPak X Xclean: X @rm -rf *.o *.a *.so X @rm -rf ./PowerDraw/*.o X @rm -rf ./PowerInput/*.o X XlibPP.a: $(OBJECTS) X @echo "Building static library (libPP.a)" X @ar rvs libPP.a $(OBJECTS) X XlibPP.so: $(OBJECTS) X @echo "Building dynamic library (libPP.so)" X @$(CC) -D_REENTRANT -pthread -fpic -fPIC -shared -o libPP.so $(OBJECTS) $(LIBS) X Xsplash: X @echo "" X @echo "Building PowerPak" X @echo "" X @cat ASCII-Logo X @echo "" X Xinstalldirs: mkinstalldirs X @./mkinstalldirs /usr/include/PowerPak END-of-PowerPak-990818/files/Makefile.FreeBSD echo c - PowerPak-990818/patches mkdir -p PowerPak-990818/patches > /dev/null 2>&1 echo x - PowerPak-990818/patches/patch-aa sed 's/^X//' >PowerPak-990818/patches/patch-aa << 'END-of-PowerPak-990818/patches/patch-aa' X--- PowerDraw/powerdraw.c Thu Aug 5 17:57:58 1999 X+++ /home/andy/tmp/wrk/PowerDraw/powerdraw.c Thu Aug 19 14:03:26 1999 X@@ -15,6 +15,9 @@ X */ X X #include <stdlib.h> X+#ifdef __FreeBSD__ X+#include <string.h> X+#endif X X #include "SDL/SDL.h" X #include "powerdraw.h" END-of-PowerPak-990818/patches/patch-aa echo x - PowerPak-990818/patches/patch-ab sed 's/^X//' >PowerPak-990818/patches/patch-ab << 'END-of-PowerPak-990818/patches/patch-ab' X--- PowerDraw/truetype.c Thu Aug 5 17:58:45 1999 X+++ /home/andy/tmp/wrk/PowerDraw/truetype.c Thu Aug 19 14:04:22 1999 X@@ -14,6 +14,9 @@ X * See LICENSE.TXT for more LGPL info X */ X #include <stdlib.h> X+#ifdef __FreeBSD__ X+#include <string.h> X+#endif X X #include "SDL/SDL.h" X #include "powerdraw.h" END-of-PowerPak-990818/patches/patch-ab echo x - PowerPak-990818/patches/patch-ba sed 's/^X//' >PowerPak-990818/patches/patch-ba << 'END-of-PowerPak-990818/patches/patch-ba' X--- PowerDraw/examples/Makefile.UNIX Tue Aug 17 21:34:35 1999 X+++ /home/andy/tmp/wrk/PowerDraw/examples/Makefile.UNIX Fri Aug 20 08:29:52 1999 X@@ -1,6 +1,6 @@ X-CC=gcc X-CFLAGS=-Wall -O6 X-LIBS=-lPP X+CC=cc X+CFLAGS+=-Wall -pthread -I/usr/local/include X+LIBS=-L/usr/local/lib -lPP X X X all: ex1 ex2 ex3 ex4 ex5 ex6 ex7 X@@ -10,28 +10,28 @@ X X ex1: X @echo "Building example 1" X- @$(CC) ex1.c -o ex1 $(LIBS) X+ $(CC) ex1.c -o ex1 $(CFLAGS) $(LIBS) X X ex2: X @echo "Building example 2" X- @$(CC) ex2.c -o ex2 $(LIBS) X+ $(CC) ex2.c -o ex2 $(CFLAGS) $(LIBS) X X ex3: X @echo "Building example 3" X- @$(CC) ex3.c -o ex3 $(LIBS) X+ $(CC) ex3.c -o ex3 $(CFLAGS) $(LIBS) X X ex4: X @echo "Building example 4" X- @$(CC) ex4.c -o ex4 $(LIBS) X+ $(CC) ex4.c -o ex4 $(CFLAGS) $(LIBS) X X ex5: X @echo "Building example 5" X- @$(CC) ex5.c -o ex5 $(LIBS) X+ $(CC) ex5.c -o ex5 $(CFLAGS) $(LIBS) X X ex6: X @echo "Building example 6" X- @$(CC) ex6.c -o ex6 $(LIBS) X+ $(CC) ex6.c -o ex6 $(CFLAGS) $(LIBS) X X ex7: X @echo "Building example 7" X- @$(CC) ex7.c -o ex7 $(LIBS) X+ $(CC) ex7.c -o ex7 $(CFLAGS) $(LIBS) END-of-PowerPak-990818/patches/patch-ba echo x - PowerPak-990818/patches/patch-ca sed 's/^X//' >PowerPak-990818/patches/patch-ca << 'END-of-PowerPak-990818/patches/patch-ca' X--- PowerInput/examples/Makefile.UNIX Tue Aug 17 20:05:13 1999 X+++ /home/andy/tmp/wrk/PowerInput/examples/Makefile.UNIX Fri Aug 20 08:33:08 1999 X@@ -1,6 +1,6 @@ X-CC=gcc X-CFLAGS=-Wall -O6 X-LIBS=-lPP X+CC=cc X+CFLAGS+=-Wall -pthread -I/usr/local/include X+LIBS=-L/usr/local/lib -lPP X X X all: ex1 ex2 ex3 ex4 X@@ -10,16 +10,16 @@ X X ex1: X @echo "Building example 1" X- @$(CC) ex1.c -o ex1 $(LIBS) X+ $(CC) ex1.c -o ex1 $(CFLAGS) $(LIBS) X X ex2: X @echo "Building example 2" X- @$(CC) ex2.c -o ex2 $(LIBS) X+ $(CC) ex2.c -o ex2 $(CFLAGS) $(LIBS) X X ex3: X @echo "Building example 3" X- @$(CC) ex3.c -o ex3 $(LIBS) X+ $(CC) ex3.c -o ex3 $(CFLAGS) $(LIBS) X X ex4: X @echo "Building example 4" X- @$(CC) ex4.c -o ex4 $(LIBS) X+ $(CC) ex4.c -o ex4 $(CFLAGS) $(LIBS) END-of-PowerPak-990818/patches/patch-ca echo c - PowerPak-990818/pkg mkdir -p PowerPak-990818/pkg > /dev/null 2>&1 echo x - PowerPak-990818/pkg/COMMENT sed 's/^X//' >PowerPak-990818/pkg/COMMENT << 'END-of-PowerPak-990818/pkg/COMMENT' XSDL-based Game Software Development Kit END-of-PowerPak-990818/pkg/COMMENT echo x - PowerPak-990818/pkg/PLIST sed 's/^X//' >PowerPak-990818/pkg/PLIST << 'END-of-PowerPak-990818/pkg/PLIST' Xinclude/PowerPak/IMG.h Xinclude/PowerPak/gfx.h Xinclude/PowerPak/keyboard.h Xinclude/PowerPak/mouse.h Xinclude/PowerPak/powerdraw.h Xinclude/PowerPak/powerinput.h Xinclude/PowerPak/powerpak.h Xinclude/PowerPak/primitives.h Xinclude/PowerPak/sprites.h Xinclude/PowerPak/truetype.h Xlib/libPP.a Xlib/libPP.so X@exec /sbin/ldconfig -m %B X@unexec /sbin/ldconfig -R Xshare/doc/PowerPak/ASCII-Logo Xshare/doc/PowerPak/CHANGELOG Xshare/doc/PowerPak/LICENSE Xshare/doc/PowerPak/README.IMG.h Xshare/examples/PowerPak/PowerDraw/Makefile Xshare/examples/PowerPak/PowerDraw/crackman.ttf Xshare/examples/PowerPak/PowerDraw/crackman.txt Xshare/examples/PowerPak/PowerDraw/ex1.c Xshare/examples/PowerPak/PowerDraw/ex2.c Xshare/examples/PowerPak/PowerDraw/ex3.c Xshare/examples/PowerPak/PowerDraw/ex4.c Xshare/examples/PowerPak/PowerDraw/ex4.pcx Xshare/examples/PowerPak/PowerDraw/ex5-1.pcx Xshare/examples/PowerPak/PowerDraw/ex5-2.pcx Xshare/examples/PowerPak/PowerDraw/ex5.c Xshare/examples/PowerPak/PowerDraw/ex6.c Xshare/examples/PowerPak/PowerDraw/ex7.c Xshare/examples/PowerPak/PowerInput/Makefile Xshare/examples/PowerPak/PowerInput/ex1.c Xshare/examples/PowerPak/PowerInput/ex2.c Xshare/examples/PowerPak/PowerInput/ex3.c Xshare/examples/PowerPak/PowerInput/ex4.c X@dirrm include/PowerPak X@dirrm share/doc/PowerPak X@dirrm share/examples/PowerPak/PowerDraw X@dirrm share/examples/PowerPak/PowerInput X@dirrm share/examples/PowerPak END-of-PowerPak-990818/pkg/PLIST echo x - PowerPak-990818/pkg/DESCR sed 's/^X//' >PowerPak-990818/pkg/DESCR << 'END-of-PowerPak-990818/pkg/DESCR' XPowerPak is a Game Software Development Kit X XWWW: http://www.angelfire.com/va/powerpakgsdk/ END-of-PowerPak-990818/pkg/DESCR exit Fix: Please, check and commit this port.
* XCATEGORIES= devel If this is specialized for games, it should be in category "games". -PW
State Changed From-To: open->closed New port committed, thanks!