1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- OptionsNG

- Trim header
This commit is contained in:
Dmitry Marakasov 2013-02-28 16:31:12 +00:00
parent 24d0fd2500
commit db49378d4b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=313105

View File

@ -1,9 +1,5 @@
# New ports collection makefile for: sauerbraten # Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# Date created: 2006-02-01
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= redeclipse PORTNAME= redeclipse
PORTVERSION= 1.3.1 PORTVERSION= 1.3.1
@ -35,9 +31,12 @@ SUB_FILES= reclient reserver
PORTDATA= * PORTDATA= *
OPTIONS= CLIENT "Build client" on \ OPTIONS_DEFINE= OPTIMIZED_CFLAGS
DEDICATED "Build dedicated server" on \ OPTIONS_MULTI= COMPONENTS
OPTIMIZED_CFLAGS "Enabled additional optimizations" on OPTIONS_MULTI_COMPONENTS=CLIENT DEDICATED
OPTIONS_DEFAULT=CLIENT DEDICATED OPTIMIZED_CFLAGS
CLIENT_DESC= Build client
DEDICATED_DESC= Build dedicated server
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
@ -45,11 +44,7 @@ OPTIONS= CLIENT "Build client" on \
BROKEN= does not build on sparc64 BROKEN= does not build on sparc64
.endif .endif
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_DEDICATED) .if ${PORT_OPTIONS:MCLIENT}
IGNORE= needs at least one executable (CLIENT or DEDICATED)
.endif
.if !defined(WITHOUT_CLIENT)
USE_GL= yes USE_GL= yes
USE_SDL= image mixer sdl USE_SDL= image mixer sdl
PLIST_FILES+= bin/reclient libexec/reclient share/pixmaps/redeclipse.ico PLIST_FILES+= bin/reclient libexec/reclient share/pixmaps/redeclipse.ico
@ -63,12 +58,12 @@ DESKTOP_ENTRIES="Red Eclipse" \
false false
.endif .endif
.if !defined(WITHOUT_DEDICATED) .if ${PORT_OPTIONS:MDEDICATED}
PLIST_FILES+= bin/reserver libexec/reserver PLIST_FILES+= bin/reserver libexec/reserver
BINARIES+= server BINARIES+= server
.endif .endif
.if defined(WITH_OPTIMIZED_CFLAGS) .if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
CFLAGS+= -O3 -fomit-frame-pointer CFLAGS+= -O3 -fomit-frame-pointer
CXXFLAGS+= -O3 -fomit-frame-pointer CXXFLAGS+= -O3 -fomit-frame-pointer
.endif .endif
@ -82,7 +77,7 @@ do-install:
${MKDIR} ${DATADIR} ${MKDIR} ${DATADIR}
cd ${WRKSRC}/data && ${COPYTREE_SHARE} "." ${DATADIR}/ cd ${WRKSRC}/data && ${COPYTREE_SHARE} "." ${DATADIR}/
.endif .endif
.if !defined(WITHOUT_CLIENT) .if ${PORT_OPTIONS:MCLIENT}
${INSTALL_DATA} ${WRKSRC}/src/redeclipse.ico ${PREFIX}/share/pixmaps/ ${INSTALL_DATA} ${WRKSRC}/src/redeclipse.ico ${PREFIX}/share/pixmaps/
.endif .endif