Skip to content
Snippets Groups Projects
Commit 5c56a80a authored by David Nusinow's avatar David Nusinow
Browse files

Copy over Debian packaging from 6.4.1

parents d0bac317 db4236fe
No related branches found
No related tags found
No related merge requests found
Showing
with 948 additions and 0 deletions
include $(TOP)/configs/default
CONFIG_NAME = debian
CC = cc
CXX = c++
DEBIAN_COMMON_CPPFLAGS = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include
DEBIAN_COMMON_CFLAGS = -ansi -pedantic -Wall -fPIC -std=c99
DEBIAN_COMMON_CXXFLAGS = -ansi -pedantic -Wall -fPIC
DEBIAN_OPT_CFLAGS = -O2
CFLAGS = $(DEBIAN_COMMON_CPPFLAGS) $(DEBIAN_COMMON_CFLAGS) $(DEBIAN_OPT_CFLAGS)
CXXFLAGS = $(DEBIAN_COMMON_CPPFLAGS) $(DEBIAN_COMMON_CXXFLAGS) $(DEBIAN_OPT_CFLAGS)
GLW_SOURCES += GLwMDrawA.c
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11 -lXm
include $(TOP)/configs/debian
CONFIG_NAME = debian-debug
DEBIAN_COMMON_CPPFLAGS += -DDEBUG -DMESA_DEBUG
DEBIAN_OPT_CFLAGS =
include $(TOP)/configs/debian-debug
CONFIG_NAME = debian-debug-i386
DEBIAN_OPT_CFLAGS = -march=i686 -msse -mfpmath=sse -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
ASM_SOURCES = $(X86_SOURCES) $(X86_API)
include $(TOP)/configs/debian
CONFIG_NAME = debian-directfb
GL_LIB_DEPS = -lm -lpthread
DRIVER_DIRS = directfb
include $(TOP)/configs/debian
CONFIG_NAME = debian-dri
DEBIAN_COMMON_CPPFLAGS += -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DDEFAULT_DRIVER_DIR=\"/usr/lib/dri\"
LIBDRM_LIB = `pkg-config --libs libdrm`
DRI_LIB_DEPS = -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lm -lpthread -ldl $(LIBDRM_LIB)
USING_EGL=0
# Directories
ifeq ($(USING_EGL), 1)
override SRC_DIRS = egl glx/x11 mesa
PROGRAM_DIRS = egl
else
override SRC_DIRS = glx/x11 mesa
PROGRAM_DIRS =
endif
DRIVER_DIRS = dri
WINDOW_SYSTEM=dri
DRI_DIRS = i810 i830 i915 mach64 mga r128 r200 r300 radeon s3v savage sis tdfx trident unichrome ffb
include $(TOP)/configs/debian-dri
CONFIG_NAME = debian-dri-amd64
DRI_DIRS = i915 mach64 mga r128 r200 r300 radeon savage tdfx unichrome
include $(TOP)/configs/debian-dri
CONFIG_NAME = debian-dri-i386
DRI_DIRS = i810 i830 i915 mach64 mga r128 r200 r300 radeon s3v savage sis tdfx trident unichrome
include $(TOP)/configs/debian-dri
CONFIG_NAME = debian-dri-powerpc
DRI_DIRS = mach64 r128 r200 r300 radeon tdfx
include $(TOP)/configs/debian
CONFIG_NAME = debian-glide
DEBIAN_COMMON_CPPFLAGS += -DFX -I/usr/include/glide3
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lglide3x -lm -lpthread
include $(TOP)/configs/debian-i386
CONFIG_NAME = debian-glide-i386
DEBIAN_COMMON_CPPFLAGS += -DFX -I/usr/include/glide3
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lglide3x -lm -lpthread
include $(TOP)/configs/debian
CONFIG_NAME = debian-osmesa16
DEBIAN_COMMON_CPPFLAGS += -DCHAN_BITS=16 -DDEFAULT_SOFTWARE_DEPTH_BITS=31
OSMESA_LIB = OSMesa16
OSMESA_LIB_NAME = libOSMesa16.so
SRC_DIRS = mesa glu
DRIVER_DIRS = osmesa
PROGRAM_DIRS =
OSMESA_LIB_DEPS = -lm -lpthread
APP_LIB_DEPS = -lOSMesa16
include $(TOP)/configs/debian-static
CONFIG_NAME = debian-osmesa16-static
DEBIAN_COMMON_CPPFLAGS += -DCHAN_BITS=16 -DDEFAULT_SOFTWARE_DEPTH_BITS=31
OSMESA_LIB = OSMesa16
OSMESA_LIB_NAME = libOSMesa16.a
SRC_DIRS = mesa glu
DRIVER_DIRS = osmesa
PROGRAM_DIRS =
APP_LIB_DEPS = -lOSMesa16
include $(TOP)/configs/debian
CONFIG_NAME = debian-osmesa32
DEBIAN_COMMON_CPPFLAGS += -DCHAN_BITS=32 -DDEFAULT_SOFTWARE_DEPTH_BITS=31
OSMESA_LIB = OSMesa32
OSMESA_LIB_NAME = libOSMesa32.so
SRC_DIRS = mesa glu
DRIVER_DIRS = osmesa
PROGRAM_DIRS =
OSMESA_LIB_DEPS = -lm -lpthread
APP_LIB_DEPS = -lOSMesa32
include $(TOP)/configs/debian-static
CONFIG_NAME = debian-osmesa32-static
DEBIAN_COMMON_CPPFLAGS += -DCHAN_BITS=32 -DDEFAULT_SOFTWARE_DEPTH_BITS=31
OSMESA_LIB = OSMesa32
OSMESA_LIB_NAME = libOSMesa32.a
SRC_DIRS = mesa glu
DRIVER_DIRS = osmesa
PROGRAM_DIRS =
APP_LIB_DEPS = -lOSMesa32
include $(TOP)/configs/default
CONFIG_NAME = debian-static
CC = cc
CXX = c++
DEBIAN_COMMON_CPPFLAGS = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include
DEBIAN_COMMON_CFLAGS = -ansi -pedantic -Wall
DEBIAN_COMMON_CXXFLAGS = -ansi -pedantic -Wall
DEBIAN_OPT_CFLAGS = -O2
CFLAGS = $(DEBIAN_COMMON_CPPFLAGS) $(DEBIAN_COMMON_CFLAGS) $(DEBIAN_OPT_CFLAGS)
CXXFLAGS = $(DEBIAN_COMMON_CPPFLAGS) $(DEBIAN_COMMON_CXXFLAGS) $(DEBIAN_OPT_CFLAGS)
GLW_SOURCES += GLwMDrawA.c
MKLIB_OPTIONS = -static
GL_LIB_NAME = libGL.a
GLU_LIB_NAME = libGLU.a
GLW_LIB_NAME = libGLw.a
OSMESA_LIB_NAME = libOSMesa.a
GL_LIB_DEPS =
OSMESA_LIB_DEPS =
GLU_LIB_DEPS =
GLW_LIB_DEPS =
APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lpthread -lm -lstdc++
include $(TOP)/configs/debian-static
CONFIG_NAME = debian-static-i386
DEBIAN_OPT_CFLAGS = -O3 -march=i686 -msse -mfpmath=sse -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
ASM_SOURCES = $(X86_SOURCES) $(X86_API)
include $(TOP)/configs/debian
CONFIG_NAME = debian-i386
DEBIAN_OPT_CFLAGS = -O3 -march=i686 -msse -mfpmath=387 -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
ASM_SOURCES = $(X86_SOURCES) $(X86_API)
I have added a few new configuration files to the configs directory:
There's a base configuration, debian, which sets things up for
building in a debian environment.
There's also a debian-static configuration, which is for static
building.
All the others are derived from one of these two configurations.
The platform-specific optimizations go into a debian-foo_ARCH file, like
debian_i386 or debian_sparc. You can name this files whatever you want,
but the last token must be a debian arch name. Note the "_"! These
will be picked up automatically by the debian/rules.
In order to actually install the new files, you need to edit
debian/libdir.map, the format is:
target-name libdir package package-dev
The architecture optimized libraries should go under
/usr/lib/<something>, where <something> matches the optimizations used,
e.g. "mmx" or "v9".
Only packages listed in the control file *and* libdir.map are actually
built. That means that even if debian/libdir.map lists
libgl1-random-stuff, if libgl1-random-stuff is *not* listed in
debian/control it *won't* be built. The other way around, if
libgl1-random-stuff is listed in debian/control but there's no entry for
it in debian/libdir.map it *won't* be built.
For architectures where glide3 is available an extra package is built
(iff this is the mesa-legacy source package). The list of supported
architectures in found in the control file.
There's an alioth project for this package:
http://alioth.debian.org/projects/pkg-mesa/
This diff is collapsed.
4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment