1999-04-02 06:10:14 +02:00
|
|
|
# New ports collection makefile for: games/pmars
|
|
|
|
# Date created: 15 Feb 1999
|
1999-11-12 22:04:56 +01:00
|
|
|
# Whom: gmarco@giovannelli.it
|
1999-04-02 06:10:14 +02:00
|
|
|
#
|
1999-08-25 08:06:33 +02:00
|
|
|
# $FreeBSD$
|
1999-04-02 06:10:14 +02:00
|
|
|
#
|
|
|
|
|
2000-04-14 14:28:40 +02:00
|
|
|
PORTNAME= pmars
|
2005-07-31 21:33:40 +02:00
|
|
|
PORTVERSION= 0.9.2
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
PORTREVISION= 3
|
1999-04-02 06:10:14 +02:00
|
|
|
CATEGORIES= games
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/corewar/pMARS/${PORTVERSION}
|
1999-04-02 06:10:14 +02:00
|
|
|
|
2011-02-27 05:54:41 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 13:06:51 +01:00
|
|
|
COMMENT= A portable corewar system with ICWS'94 extensions
|
1999-04-02 06:10:14 +02:00
|
|
|
|
2005-07-31 21:33:40 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
|
2005-10-04 19:11:27 +02:00
|
|
|
OPTIONS= CURSES "Build the console (graphical) interface" on \
|
2005-07-31 21:33:40 +02:00
|
|
|
ICWS94 "Enable ICWS'94 support" on \
|
|
|
|
OPTIMIZED_CFLAGS "Enable compilation optimizations" on \
|
|
|
|
PERMUTATE "Enable the -P switch" on \
|
2005-10-04 19:11:27 +02:00
|
|
|
SERVER "Build the command-line interface" on \
|
|
|
|
SMALLMEM "Use 16-bit addresses (smaller)" off \
|
|
|
|
X11 "Build the X11 (graphical) interface" on
|
2005-07-31 21:33:40 +02:00
|
|
|
|
|
|
|
MAKE_ARGS+= CFLAGS+="${CFLAGS}" \
|
|
|
|
CFLAGS+="-fno-builtin"
|
|
|
|
|
2005-10-04 19:11:27 +02:00
|
|
|
MAN6= pmars.6
|
2005-07-31 21:33:40 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-04-24 23:08:18 +02:00
|
|
|
.if defined(WITHOUT_CURSES) && defined(WITHOUT_SERVER) && defined(WITHOUT_X11)
|
|
|
|
IGNORE= needs at least one interface (CURSES, SERVER or X11)
|
2005-07-31 21:33:40 +02:00
|
|
|
.endif
|
|
|
|
|
2006-04-24 23:08:18 +02:00
|
|
|
.if !defined(WITHOUT_CURSES)
|
|
|
|
TARGETS+= curses
|
|
|
|
CURSES_ARGS+= CFLAGS+="-DGRAPHX" \
|
|
|
|
LIB+="-lcurses"
|
|
|
|
PLIST_SUB+= CURSES=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= CURSES="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_ICWS94)
|
2005-07-31 21:33:40 +02:00
|
|
|
MAKE_ARGS+= CFLAGS+="-DEXT94"
|
|
|
|
.endif
|
|
|
|
|
2006-04-24 23:08:18 +02:00
|
|
|
.if !defined(WITHOUT_OPTIMIZED_CFLAGS)
|
2005-07-31 21:33:40 +02:00
|
|
|
MAKE_ARGS+= CFLAGS+="-O3 -fomit-frame-pointer"
|
|
|
|
.endif
|
|
|
|
|
2006-04-24 23:08:18 +02:00
|
|
|
.if !defined(WITHOUT_PERMUTATE)
|
2005-07-31 21:33:40 +02:00
|
|
|
MAKE_ARGS+= CFLAGS+="-DPERMUTATE"
|
|
|
|
.endif
|
|
|
|
|
2006-04-24 23:08:18 +02:00
|
|
|
.if !defined(WITHOUT_SERVER)
|
2005-10-04 19:11:27 +02:00
|
|
|
TARGETS+= server
|
|
|
|
SERVER_ARGS+= CFLAGS+="-DSERVER"
|
|
|
|
PLIST_SUB+= SERVER=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SERVER="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-04-24 23:08:18 +02:00
|
|
|
.if defined(WITH_SMALLMEM)
|
|
|
|
MAKE_ARGS+= CFLAGS+="-DSMALLMEM"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_X11)
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11
|
2005-10-04 19:11:27 +02:00
|
|
|
TARGETS+= x11
|
|
|
|
X11_ARGS+= CFLAGS+="-DXWINGRAPHX" \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CFLAGS+="-I${LOCALBASE}/include" \
|
|
|
|
LIB+="-L${LOCALBASE}/lib -lX11"
|
2005-10-04 19:11:27 +02:00
|
|
|
PLIST_SUB+= X11=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= X11="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
.for f in ${TARGETS}
|
|
|
|
@(cd ${BUILD_WRKSRC}; ${MAKE} ${MAKE_ARGS} ${${f:U}_ARGS} \
|
|
|
|
${ALL_TARGET} clean)
|
|
|
|
@(cd ${BUILD_WRKSRC}; ${MV} ${PORTNAME} ${PORTNAME}-${f})
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.for f in ${TARGETS}
|
2006-04-24 23:08:18 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-${f} ${PREFIX}/bin
|
2005-10-04 19:11:27 +02:00
|
|
|
.endfor
|
2008-08-10 16:50:20 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/../doc/pmars.6 ${PREFIX}/man/man6
|
2005-10-04 19:11:27 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-04-24 23:08:18 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2005-10-04 19:11:27 +02:00
|
|
|
. for f in README config doc warriors
|
2006-04-24 23:08:18 +02:00
|
|
|
${CP} -R ${WRKSRC}/../${f} ${DOCSDIR}
|
2005-10-04 19:11:27 +02:00
|
|
|
. endfor
|
2005-07-31 21:33:40 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|