2013-09-20 19:36:33 +02:00
|
|
|
# Created by: gmarco@giovannelli.it
|
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
|
2013-11-05 01:50:18 +01:00
|
|
|
COMMENT= 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
|
|
|
|
|
2012-06-12 18:35:45 +02:00
|
|
|
OPTIONS_MULTI= INT
|
|
|
|
OPTIONS_MULTI_INT= CURSES SERVER X11
|
|
|
|
OPTIONS_DEFINE= ICWS94 OPTIMIZED_CFLAGS PERMUTATE SMALLMEM DOCS
|
|
|
|
OPTIONS_DEFAULT= CURSES ICWS94 OPTIMIZED_CFLAGS PERMUTATE SERVER X11
|
|
|
|
CURSES_DESC= Build the console (graphical) interface
|
|
|
|
ICWS94_DESC= Enable ICWS'94 support
|
|
|
|
PERMUTATE_DESC= Enable the -P switch
|
|
|
|
SERVER_DESC= Build the command-line interface
|
|
|
|
SMALLMEM_DESC= Use 16-bit addresses (smaller)
|
2005-07-31 21:33:40 +02:00
|
|
|
|
2013-11-05 01:50:18 +01:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2005-07-31 21:33:40 +02:00
|
|
|
MAKE_ARGS+= CFLAGS+="${CFLAGS}" \
|
|
|
|
CFLAGS+="-fno-builtin"
|
|
|
|
|
2013-11-05 01:50:18 +01:00
|
|
|
ICWS94_MAKE_ARGS= CFLAGS+="-DEXT94"
|
|
|
|
OPTIMIZED_CFLAGS_MAKE_ARGS= CFLAGS+="-O3 -fomit-frame-pointer"
|
|
|
|
PERMUTATE_MAKE_ARGS= CFLAGS+="-DPERMUTATE"
|
|
|
|
SMALLMEM_MAKE_ARGS= CFLAGS+="-DSMALLMEM"
|
2005-07-31 21:33:40 +02:00
|
|
|
|
2012-06-12 18:35:45 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2005-07-31 21:33:40 +02:00
|
|
|
|
2012-06-12 18:35:45 +02:00
|
|
|
.if ${PORT_OPTIONS:MCURSES}
|
2006-04-24 23:08:18 +02:00
|
|
|
TARGETS+= curses
|
|
|
|
CURSES_ARGS+= CFLAGS+="-DGRAPHX" \
|
|
|
|
LIB+="-lcurses"
|
2005-07-31 21:33:40 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-12 18:35:45 +02:00
|
|
|
.if ${PORT_OPTIONS:MSERVER}
|
2005-10-04 19:11:27 +02:00
|
|
|
TARGETS+= server
|
|
|
|
SERVER_ARGS+= CFLAGS+="-DSERVER"
|
2006-04-24 23:08:18 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-12 18:35:45 +02:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
- 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
|
|
|
.endif
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
.for f in ${TARGETS}
|
2014-05-05 11:45:36 +02:00
|
|
|
@(cd ${BUILD_WRKSRC}; ${MAKE} ${MAKE_ARGS} ${${f:tu}_ARGS} \
|
2005-10-04 19:11:27 +02:00
|
|
|
${ALL_TARGET} clean)
|
|
|
|
@(cd ${BUILD_WRKSRC}; ${MV} ${PORTNAME} ${PORTNAME}-${f})
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.for f in ${TARGETS}
|
2013-11-05 01:50:18 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-${f} ${STAGEDIR}${PREFIX}/bin
|
2005-10-04 19:11:27 +02:00
|
|
|
.endfor
|
2013-11-05 01:50:18 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/../doc/pmars.6 ${STAGEDIR}${PREFIX}/man/man6
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2005-10-04 19:11:27 +02:00
|
|
|
. for f in README config doc warriors
|
2013-11-05 01:50:18 +01:00
|
|
|
${CP} -R ${WRKSRC}/../${f} ${STAGEDIR}${DOCSDIR}
|
2005-10-04 19:11:27 +02:00
|
|
|
. endfor
|
2005-07-31 21:33:40 +02:00
|
|
|
|
2012-06-12 18:35:45 +02:00
|
|
|
.include <bsd.port.mk>
|