Index: head/games/newkind/Makefile =================================================================== --- head/games/newkind/Makefile (revision 66447) +++ head/games/newkind/Makefile (revision 66448) @@ -1,56 +1,54 @@ # New ports collection makefile for: Elite - The New Kind # Date created: 23 October 2001 # Whom: Johann Visagie # # $FreeBSD$ # PORTNAME= newkind PORTVERSION= 1.0 CATEGORIES= games MASTER_SITES= http://home.clara.net/cjpinder/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= ${PORTNAME}${EXTRACT_SUFX} ${PORTNAME}b${EXTRACT_SUFX} -MAINTAINER= wjv@FreeBSD.org +MAINTAINER= ports@FreeBSD.org -# It doesn't seem possible to construct a LIB_DEPENDS for Allegro(?) -# The dependence on the version number is also sub-optimal. -BUILD_DEPENDS= allegro-config:${PORTSDIR}/devel/allegro -RUN_DEPENDS= allegro-config:${PORTSDIR}/devel/allegro +LIB_DEPENDS= alleg.4:${PORTSDIR}/devel/allegro +BROKEN= Does not build with version of devel/allegro currently in ports NO_CDROM= Reverse-engineered version of copyrighted abandonware NO_PACKAGE= ${NO_CDROM} USE_ZIP= yes EXTRACT_BEFORE_ARGS= -oq NO_WRKSUBDIR= yes USE_GMAKE= yes MAKEFILE= makefile ALL_TARGET= -SHAREDIR= ${PREFIX}/share/${PORTNAME} +NK_SCRIPT= ${WRKSRC}/newkind # Currently, everything required to run newkind (including the binary) is -# installed to ${SHAREDIR}. A shell script wrapper is then installed to +# installed to ${DATADIR}. A shell script wrapper is then installed to # ${PREFIX}/bin. A more elegant installation to the standard directory # hierarchy under ${PREFIX} would require extensive patching of source files, # which will have to be maintained across future versions. If anyone feels # up to it, you're more than welcome... :-) do-install: - @ ${MKDIR} ${SHAREDIR}/data - @ ${INSTALL_PROGRAM} ${WRKSRC}/newkind.exe ${SHAREDIR} + @ ${MKDIR} ${DATADIR}/data + @ ${INSTALL_PROGRAM} ${WRKSRC}/newkind.exe ${DATADIR} @ ${INSTALL_DATA} ${WRKSRC}/elite.dat ${WRKSRC}/*.cfg \ - ${WRKSRC}/*.bmp ${WRKSRC}/*.wav ${SHAREDIR} - @ ${INSTALL_DATA} ${WRKSRC}/data/* ${SHAREDIR}/data + ${WRKSRC}/*.bmp ${WRKSRC}/*.wav ${DATADIR} + @ ${INSTALL_DATA} ${WRKSRC}/data/* ${DATADIR}/data @ ${MKDIR} ${PREFIX}/bin - @ ${ECHO_CMD} "#!${SH}" > ${WRKSRC}/newkind - @ ${ECHO_CMD} "cd ${SHAREDIR} && exec \"./newkind.exe\" \"\$$@\"" \ - >> ${WRKSRC}/newkind - @ ${INSTALL_SCRIPT} ${WRKSRC}/newkind ${PREFIX}/bin + @ ${ECHO_CMD} "#!${SH}" > ${NK_SCRIPT} + @ ${ECHO_CMD} "cd ${DATADIR} && exec \"./newkind.exe\" \"\$$@\"" \ + >> ${NK_SCRIPT} + @ ${INSTALL_SCRIPT} ${NK_SCRIPT} ${PREFIX}/bin post-install: .if !defined(NOPORTDOCS) @ ${MKDIR} ${DOCSDIR} @ ${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR} .endif .include Property changes on: head/games/newkind/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.2 \ No newline at end of property +1.3 \ No newline at end of property Index: head/games/newkind/files/patch-makefile =================================================================== --- head/games/newkind/files/patch-makefile (revision 66447) +++ head/games/newkind/files/patch-makefile (revision 66448) @@ -1,32 +1,34 @@ --- makefile.orig Fri Jul 6 21:29:04 2001 -+++ makefile Tue Oct 23 17:40:09 2001 -@@ -2,25 +2,20 @@ ++++ makefile Mon Sep 16 17:03:26 2002 +@@ -2,26 +2,24 @@ # Makefile for Elite - The New Kind. # -CC = gcc --WRES = windres -- --LIBS = -s -mwindows -lalleg_s -lkernel32 -lgdi32 -lcomdlg32 -luser32 -lole32 -lddraw -ldxguid -lwinmm -ldsound -ldinput --CFLAGS = -mpentium -O2 -funroll-loops -Wall -DALLEGRO_STATICLINK +CC ?= gcc -+LIBS = -L/usr/local/lib -lalleg-3.9.34 -lalleg_unsharable -+CFLAGS += -mpentium -O2 -funroll-loops -Wall -DALLEGRO_STATICLINK -I/usr/local/include + WRES = windres +-LIBS = -s -mwindows -lalleg_s -lkernel32 -lgdi32 -lcomdlg32 -luser32 -lole32 -lddraw -ldxguid -lwinmm -ldsound -ldinput ++LOCALBASE ?= /usr/local ++LIBS = -L$(LOCALBASE)/lib -L$(LOCALBASE)/lib/allegro/4.0 -lalleg + CFLAGS = -mpentium -O2 -funroll-loops -Wall -DALLEGRO_STATICLINK ++CFLAGS += -I$(LOCALBASE)/include -I$(LOCALBASE)/include/allegro + OBJS = alg_gfx.o alg_main.o docked.o elite.o\ intro.o planet.o shipdata.o shipface.o sound.o space.o\ swat.o threed.o vector.o random.o trade.o options.o \ - stars.o missions.o nkres.o pilot.o file.o keyboard.o + stars.o missions.o pilot.o file.o keyboard.o .c.o: $(CC) $(CFLAGS) -c $< newkind.exe: $(OBJS) $(CC) -o newkind.exe $(OBJS) $(LIBS) - -nkres.o: nkres.rc - $(WRES) nkres.rc nkres.o +- - alg_gfx.o: alg_gfx.c alg_data.h config.h elite.h planet.h gfx.h + Property changes on: head/games/newkind/files/patch-makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property