[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kde on openbsd (howto)



I have a basic kde 1.0 running now. - still no audio - most ot the
other things are working.

- Get qt 1.40 (www.troll.no)
  Copy the attached openbsd-g++-shared over the original file.
  build ...kdesuppurt-1.0

- get kde 1.0 (www.kde.org)
  this packages are required:

kdesupport-1.0
kdelibs-1.0
kdeutils-1.0
kdebase-1.0
kdegames-1.0
kdegraphics-1.0
kdeadmin-1.0
kdemultimedia-1.0
kdenetwork-1.0

Read the docu and build them. I will submit the changes to troll
and the kde team when i have audio working.

Tom

PS: some of the screensaver require Mesa.

PPS: no flames about kde please, i just wanted to see it on 
OpenBSD.

-------------------------------------------------------------
Tom Knienieder                                 knee_(_at_)_enemy_(_dot_)_org
System && Graphics software     knienieder_(_at_)_natters_(_dot_)_netwing_(_dot_)_at
-------------------------------------------------------------
# Compiling
SYSCONF_CC		= g++

# Compiling with support libraries
SYSCONF_CFLAGS_X11	= -I/usr/X11R6/include
SYSCONF_CFLAGS_QT	= -I$(QTDIR)/include
SYSCONF_CFLAGS_OPENGL	= -I/usr/X11R6/include

# Compiline YACC output
SYSCONF_CFLAGS_YACC     = -Wno-unused -Wno-parentheses

# Linking with support libraries
# X11
SYSCONF_LFLAGS_X11	= -L/usr/X11R6/lib
SYSCONF_LIBS_X11	= -lX11
# Qt, Qt+OpenGL
SYSCONF_LFLAGS_QT	= -L$(QTDIR)/lib
SYSCONF_LIBS_QT		= -lqt
SYSCONF_LIBS_QT_OPENGL	= -lqgl
# OpenGL
SYSCONF_LFLAGS_OPENGL	= -L/usr/X11R6/lib
SYSCONF_LIBS_OPENGL	= -lMesaGL -lMesaGLU -lXmu -lXext -lm

# Linking applications
SYSCONF_LINK		= g++
SYSCONF_LFLAGS		= 
SYSCONF_LIBS		= 

# Link flags shared objects
SYSCONF_LFLAGS_SHOBJ	= -shared

# Meta-object compiler
SYSCONF_MOC		= $(QTDIR)/bin/moc

# Linking shared libraries
#   - Build the $(TARGET) library, eg. lib$(TARGET).so.0.0
#   - Place target in $(DESTDIR) - which has a trailing /
#   - Usually needs to incorporate $(VER_MAJ) and $(VER_MIN)
#
SYSCONF_LINK_SHLIB	= ld
SYSCONF_LINK_TARGET_SHARED	= lib$(TARGET).so.$(VER_MAJ).$(VER_MIN)
SYSCONF_LINK_LIB_SHARED		= ar cr lib$(TARGET)_pic.a $(OBJECTS) $(OBJMOC); \
				ranlib lib$(TARGET)_pic.a; \
				$(SYSCONF_LINK_SHLIB) -x -Bshareable -Bforcearchive -o lib$(TARGET).so.$(VER_MAJ).$(VER_MIN) lib$(TARGET)_pic.a $(LIBS) ;\
				 mv $(SYSCONF_LINK_TARGET_SHARED) $(DESTDIR); \
				 cd $(DESTDIR); \
				 rm -f lib$(TARGET).so lib$(TARGET).so.$(VER_MAJ); \
				 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so; \
				 ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so.$(VER_MAJ)

# Linking static libraries
#   - Build the $(TARGET) library, eg. lib$(TARGET).a
#   - Place target in $(DESTDIR) - which has a trailing /
#
SYSCONF_AR		= ar cqs
SYSCONF_LINK_TARGET_STATIC = lib$(TARGET).a
SYSCONF_LINK_LIB_STATIC	= rm -f $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC);  \
				 $(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS) $(OBJMOC)
# Compiling application source
SYSCONF_CFLAGS		= -O2 -fno-strength-reduce
# Compiling library source
SYSCONF_CFLAGS_LIB	= -O2 -fno-strength-reduce -fPIC
# Compiling shared-object source
SYSCONF_CFLAGS_SHOBJ	= -O2 -fno-strength-reduce -fPIC
# Default link type (stati linking is still be used where required)
SYSCONF_LINK_LIB	= $(SYSCONF_LINK_LIB_SHARED)
SYSCONF_LINK_TARGET	= $(SYSCONF_LINK_TARGET_SHARED)

Visit your host, monkey.org