mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
cc3a266bd3
socklen_t to int for 3.x, and no -fno-exceptions for 3.x g++) Bothered by: Barry Irwin <bvi@rucus.ru.ac.za> Bothered by: Matthew West <mwest@uct.ac.za>
114 lines
2.1 KiB
Plaintext
114 lines
2.1 KiB
Plaintext
# bzflag
|
|
# Copyright 1993-1999, Chris Schoeneman
|
|
#
|
|
# This package is free software; you can redistribute it and/or
|
|
# modify it under the terms of the license found in the file
|
|
# named LICENSE that should have accompanied this file.
|
|
#
|
|
# THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
|
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
|
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
#
|
|
# configuration for generic linux
|
|
#
|
|
CONFIG = linux
|
|
|
|
#
|
|
# use XF86 vidmode extension (comment out to disable)
|
|
#
|
|
XF86VIDMODE_DEF = -DXF86VIDMODE_EXT
|
|
XF86VIDMODE_LIB = -lXxf86vm
|
|
|
|
#
|
|
# install locations
|
|
#
|
|
INSTALL_DATA_DIR = ${PORTPREFIX}/share/bzflag/data
|
|
|
|
#
|
|
# tools
|
|
#
|
|
AR = /usr/bin/ar cru
|
|
CC = /usr/bin/gcc
|
|
CXX = /usr/bin/g++
|
|
CD = cd
|
|
CP = /bin/cp
|
|
LD = /usr/bin/ld
|
|
MKDIR = /bin/mkdir
|
|
NROFF = /usr/bin/nroff
|
|
RM = /bin/rm -f
|
|
RMR = $(RM) -r
|
|
SHELL = /bin/sh
|
|
ECHO = echo
|
|
|
|
#
|
|
# compiler definitions
|
|
#
|
|
PCDEFS = -D_BSD_SOURCE -DHALF_RATE_AUDIO \
|
|
$(XF86VIDMODE_DEF)
|
|
PCXXDEFS = -D_BSD_SOURCE -DHALF_RATE_AUDIO \
|
|
$(XF86VIDMODE_DEF)
|
|
|
|
#
|
|
# compiler options
|
|
#
|
|
PCOPTS = -Wall -W -ansi $(ACOPTS)
|
|
.if defined(OSVERSION) && ${OSVERSION} < 400000
|
|
PCXXOPTS = -Wall -W -fno-rtti $(ACXXOPTS)
|
|
COPT = -DNDEBUG ${PORTCFLAGS} -DAddrLen='int'
|
|
CXXOPT = -DNDEBUG ${PORTCXXFLAGS} -ffast-math -fomit-frame-pointer -fnonnull-objects \
|
|
-fexpensive-optimizations -DAddrLen='int'
|
|
.else
|
|
PCXXOPTS = -Wall -W -fno-exceptions -fno-rtti $(ACXXOPTS)
|
|
COPT = -DNDEBUG ${PORTCFLAGS} -DAddrLen='socklen_t'
|
|
CXXOPT = -DNDEBUG ${PORTCXXFLAGS} -ffast-math -fomit-frame-pointer -fnonnull-objects \
|
|
-fexpensive-optimizations -DAddrLen='socklen_t'
|
|
.endif
|
|
CDEBUG = -DDEBUG -g
|
|
CXXDEBUG = -DDEBUG -g
|
|
CWOFF =
|
|
CXXWOFF =
|
|
|
|
#
|
|
# search paths
|
|
#
|
|
PCINCS = -I/usr/include -I/usr/X11R6/include
|
|
PCXXINCS = -I/usr/include -I/usr/X11R6/include
|
|
|
|
#
|
|
# linker options
|
|
#
|
|
PLDOPTS = -L/usr/X11R6/lib
|
|
|
|
#
|
|
# dirt
|
|
#
|
|
PDIRT = *.[eou] a.out core ar.tmp.*
|
|
|
|
#
|
|
# libraries
|
|
#
|
|
AUDIO_LIBS = \
|
|
$(NULL)
|
|
|
|
DISPLAY_LIBS = \
|
|
$(XF86VIDMODE_LIB) \
|
|
$(NULL)
|
|
|
|
GL_LIBS = \
|
|
-lGLU \
|
|
-lGL \
|
|
$(NULL)
|
|
|
|
IMAGE_LIBS = \
|
|
$(NULL)
|
|
|
|
NETWORK_LIBS = \
|
|
$(NULL)
|
|
|
|
WINDOW_LIBS = \
|
|
-lXext \
|
|
-lX11 \
|
|
$(NULL)
|
|
|