mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-21 19:32:30 +00:00
make install now works (caused by a flakey install-sh), as does build_rpm.
Also, there was a bug in configure.in that caused glx not to be built at all on my system. NOTE: I changed SRC_DIR to srcdir (GNU `standard'), though I'm beginning to wonder if that was so good.
This commit is contained in:
parent
1dfc12ebf5
commit
2800c2856e
9 changed files with 52 additions and 27 deletions
|
@ -1,4 +1,4 @@
|
||||||
SRC_DIR = @srcdir@
|
srcdir = @srcdir@
|
||||||
HAVE_UDP = @HAVE_UDP@
|
HAVE_UDP = @HAVE_UDP@
|
||||||
|
|
||||||
ifeq ($(HAVE_UDP),yes)
|
ifeq ($(HAVE_UDP),yes)
|
||||||
|
@ -43,12 +43,12 @@ changelog:
|
||||||
|
|
||||||
# Code to automatically re-configure, only runs if you are compiling in the
|
# Code to automatically re-configure, only runs if you are compiling in the
|
||||||
# source directory
|
# source directory
|
||||||
ifeq ($(SRC_DIR),.)
|
ifeq ($(srcdir),.)
|
||||||
configure: configure.in acconfig.h
|
configure: configure.in acconfig.h
|
||||||
./bootstrap
|
./bootstrap
|
||||||
|
|
||||||
CONFIG_SRC = Makefile.in qw_client/Makefile.in qw_server/Makefile.in \
|
CONFIG_SRC = Makefile.in Rules.mk.in qw_client/Makefile.in \
|
||||||
uquake/Makefile.in common/Makefile.in \
|
qw_server/Makefile.in uquake/Makefile.in common/Makefile.in \
|
||||||
rpm/build_rpm.in rpm/quakeforge.spec.in
|
rpm/build_rpm.in rpm/quakeforge.spec.in
|
||||||
|
|
||||||
$(patsubst %.in,%,$(CONFIG_SRC)): configure $(CONFIG_SRC)
|
$(patsubst %.in,%,$(CONFIG_SRC)): configure $(CONFIG_SRC)
|
||||||
|
|
|
@ -12,7 +12,7 @@ CC := @CC@
|
||||||
|
|
||||||
|
|
||||||
LDFLAGS += @LDFLAGS@ @LIBS@
|
LDFLAGS += @LDFLAGS@ @LIBS@
|
||||||
INCLUDES += -I$(SRC_DIR) -I$(COMMON_DIR) @OGL_INCLUDES@ -I$(top_builddir)/common
|
INCLUDES += -I$(srcdir) -I$(COMMON_DIR) @OGL_INCLUDES@ -I$(top_builddir)/common
|
||||||
CFLAGS += @CFLAGS@ $(INCLUDES)
|
CFLAGS += @CFLAGS@ $(INCLUDES)
|
||||||
|
|
||||||
MAKE_SURE_DIR = if test -d "$$DIR"; then \
|
MAKE_SURE_DIR = if test -d "$$DIR"; then \
|
||||||
|
@ -52,11 +52,11 @@ endif
|
||||||
# Compilation rules
|
# Compilation rules
|
||||||
#
|
#
|
||||||
|
|
||||||
$(OBJ_PATTERN): $(SRC_DIR)/%.c
|
$(OBJ_PATTERN): $(srcdir)/%.c
|
||||||
@DIR=$(@D); $(MAKE_SURE_DIR)
|
@DIR=$(@D); $(MAKE_SURE_DIR)
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
$(OBJ_PATTERN): $(SRC_DIR)/%.s
|
$(OBJ_PATTERN): $(srcdir)/%.s
|
||||||
@DIR=$(@D); $(MAKE_SURE_DIR)
|
@DIR=$(@D); $(MAKE_SURE_DIR)
|
||||||
$(CC) $(CFLAGS) -x assembler-with-cpp -o $@ -c $<
|
$(CC) $(CFLAGS) -x assembler-with-cpp -o $@ -c $<
|
||||||
|
|
||||||
|
|
|
@ -309,7 +309,7 @@ if test "x$HAS_OGL" != xno; then
|
||||||
OGL_INCLUDES="-I${x_includes:-.}"
|
OGL_INCLUDES="-I${x_includes:-.}"
|
||||||
fi
|
fi
|
||||||
save_CPPFLAGS="$CPPFLAGS"
|
save_CPPFLAGS="$CPPFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS $OGL_CFLAGS"
|
CPPFLAGS="$CPPFLAGS $OGL_INCLUDES"
|
||||||
AC_CHECK_HEADER(GL/gl.h, HAS_OGL=yes, HAS_OGL=no)
|
AC_CHECK_HEADER(GL/gl.h, HAS_OGL=yes, HAS_OGL=no)
|
||||||
if test "x$HAS_OGL" != xno; then
|
if test "x$HAS_OGL" != xno; then
|
||||||
AC_CHECK_HEADER(GL/xmesa.h, HAS_XMESA=yes, HAS_XMESA=no)
|
AC_CHECK_HEADER(GL/xmesa.h, HAS_XMESA=yes, HAS_XMESA=no)
|
||||||
|
|
|
@ -43,7 +43,7 @@ mkdirprog="${MKDIRPROG-mkdir}"
|
||||||
|
|
||||||
transformbasename=""
|
transformbasename=""
|
||||||
transform_arg=""
|
transform_arg=""
|
||||||
instcmd="$mvprog"
|
instcmd="$cpprog"
|
||||||
chmodcmd="$chmodprog 0755"
|
chmodcmd="$chmodprog 0755"
|
||||||
chowncmd=""
|
chowncmd=""
|
||||||
chgrpcmd=""
|
chgrpcmd=""
|
||||||
|
|
|
@ -3,10 +3,18 @@
|
||||||
# Quake general stuff
|
# Quake general stuff
|
||||||
#
|
#
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
bindir = @bindir@
|
||||||
|
datadir = @datadir@
|
||||||
|
|
||||||
top_builddir = ..
|
top_builddir = ..
|
||||||
PROJECT_DIR := @top_srcdir@
|
PROJECT_DIR := ${top_srcdir}
|
||||||
BIN_PREFIX := qw-client
|
BIN_PREFIX := qw-client
|
||||||
SRC_DIR := @srcdir@
|
|
||||||
MODULE := qw_client
|
MODULE := qw_client
|
||||||
OBJ_PATTERN = $(BUILD_DIR)/common_lib/%.@OBJEXT@ $(BUILD_DIR)/%.@OBJEXT@
|
OBJ_PATTERN = $(BUILD_DIR)/common_lib/%.@OBJEXT@ $(BUILD_DIR)/%.@OBJEXT@
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,18 @@
|
||||||
# Quake general stuff
|
# Quake general stuff
|
||||||
#
|
#
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
bindir = @bindir@
|
||||||
|
datadir = @datadir@
|
||||||
|
|
||||||
top_builddir = ..
|
top_builddir = ..
|
||||||
PROJECT_DIR := @top_srcdir@
|
PROJECT_DIR := ${top_srcdir}
|
||||||
BIN_PREFIX := qw-server
|
BIN_PREFIX := qw-server
|
||||||
SRC_DIR := @srcdir@
|
|
||||||
MODULE := qw_server
|
MODULE := qw_server
|
||||||
OBJ_PATTERN = $(BUILD_DIR)/%.@OBJEXT@
|
OBJ_PATTERN = $(BUILD_DIR)/%.@OBJEXT@
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ if [ "$srcdir" = "." ]; then
|
||||||
srcdir=..
|
srcdir=..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm -rf BUILD SPECS RPMS SOURCES SRPMS
|
||||||
mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS
|
mkdir -p BUILD SPECS RPMS/{noarch,i386,i686} SOURCES SRPMS
|
||||||
rm -rf ${temp_dir}/quakeforge-${version}
|
rm -rf ${temp_dir}/quakeforge-${version}
|
||||||
cp -a $srcdir ${temp_dir}/quakeforge-${version}
|
cp -a $srcdir ${temp_dir}/quakeforge-${version}
|
||||||
|
|
|
@ -35,12 +35,12 @@ Requires: quakeforge
|
||||||
%description server
|
%description server
|
||||||
|
|
||||||
%if "%{HAS_OGL}"=="'yes'"
|
%if "%{HAS_OGL}"=="'yes'"
|
||||||
%package gl
|
%package glx
|
||||||
Summary: OpenGL(tm) support
|
Summary: OpenGL(tm) support
|
||||||
Group: Amusements/Games
|
Group: Amusements/Games
|
||||||
Requires: quakeforge
|
Requires: quakeforge
|
||||||
|
|
||||||
%description gl
|
%description glx
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{HAS_TDFXGL}"=="'yes'"
|
%if "%{HAS_TDFXGL}"=="'yes'"
|
||||||
|
@ -128,49 +128,49 @@ make DESTDIR="$RPM_BUILD_ROOT" install
|
||||||
/usr/bin/qw-server
|
/usr/bin/qw-server
|
||||||
|
|
||||||
%if "%{HAS_OGL}"=="'yes'"
|
%if "%{HAS_OGL}"=="'yes'"
|
||||||
%files gl
|
%files glx
|
||||||
/usr/bin/quake-gl
|
/usr/bin/uquake-glx
|
||||||
/usr/bin/qw-client-gl
|
/usr/bin/qw-client-glx
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{HAS_TDFXGL}"=="'yes'"
|
%if "%{HAS_TDFXGL}"=="'yes'"
|
||||||
%files 3dfx
|
%files 3dfx
|
||||||
/usr/bin/quake-3dfx
|
/usr/bin/uquake-3dfx
|
||||||
/usr/bin/qw-client-3dfx
|
/usr/bin/qw-client-3dfx
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{HAS_X11}"=="'yes'"
|
%if "%{HAS_X11}"=="'yes'"
|
||||||
%files x11
|
%files x11
|
||||||
/usr/bin/quake-x11
|
/usr/bin/uquake-x11
|
||||||
/usr/bin/qw-client-x11
|
/usr/bin/qw-client-x11
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{HAS_SVGA}"=="'yes'"
|
%if "%{HAS_SVGA}"=="'yes'"
|
||||||
%files svga
|
%files svga
|
||||||
/usr/bin/quake-svga
|
/usr/bin/uquake-svga
|
||||||
/usr/bin/qw-client-svga
|
/usr/bin/qw-client-svga
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{HAS_VGA}"=="'yes'"
|
%if "%{HAS_VGA}"=="'yes'"
|
||||||
%files vga
|
%files vga
|
||||||
/usr/bin/quake-vga
|
/usr/bin/uquake-vga
|
||||||
/usr/bin/qw-client-vga
|
/usr/bin/qw-client-vga
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{HAS_MGL}"=="'yes'"
|
%if "%{HAS_MGL}"=="'yes'"
|
||||||
%files gml
|
%files gml
|
||||||
/usr/bin/quake-mgl
|
/usr/bin/uquake-mgl
|
||||||
/usr/bin/qw-client-mgl
|
/usr/bin/qw-client-mgl
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{HAS_GGI}"=="'yes'"
|
%if "%{HAS_GGI}"=="'yes'"
|
||||||
%files ggi
|
%files ggi
|
||||||
/usr/bin/quake-ggi
|
/usr/bin/uquake-ggi
|
||||||
/usr/bin/qw-client-ggi
|
/usr/bin/qw-client-ggi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{HAS_SDL}"=="'yes'"
|
%if "%{HAS_SDL}"=="'yes'"
|
||||||
%files sdl
|
%files sdl
|
||||||
/usr/bin/quake-sdl
|
/usr/bin/uquake-sdl
|
||||||
/usr/bin/qw-client-sdl
|
/usr/bin/qw-client-sdl
|
||||||
%endif
|
%endif
|
||||||
|
|
|
@ -3,10 +3,18 @@
|
||||||
# Quake general stuff
|
# Quake general stuff
|
||||||
#
|
#
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
bindir = @bindir@
|
||||||
|
datadir = @datadir@
|
||||||
|
|
||||||
top_builddir = ..
|
top_builddir = ..
|
||||||
PROJECT_DIR := @top_srcdir@
|
PROJECT_DIR := ${top_srcdir}
|
||||||
BIN_PREFIX := uquake
|
BIN_PREFIX := uquake
|
||||||
SRC_DIR := @srcdir@
|
|
||||||
MODULE := uquake
|
MODULE := uquake
|
||||||
OBJ_PATTERN = $(BUILD_DIR)/common_lib/%.@OBJEXT@ $(BUILD_DIR)/%.@OBJEXT@
|
OBJ_PATTERN = $(BUILD_DIR)/common_lib/%.@OBJEXT@ $(BUILD_DIR)/%.@OBJEXT@
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue