#!/bin/bash ## src2pkg script for: xorg-server ## Auto-generated by src2pkg-2.1 ## src2pkg - Copyright 2005-2009 Gilbert Ashley SOURCE_NAME='xorg-server-1.3.0.0.tar.bz2' NAME='xorg-server' # Use ALT_NAME to override guessed value ALT_VERSION='1.3.0' # Use ALT_VERSION to override guessed value # ARCH='' # BUILD='2' # PRE_FIX='usr' # Any extra options go here: # EXTRA_CONFIGS="" PATCHLIST='xorg-server-patches/x11.startwithblackscreen.diff.gz xorg-server-patches/xorgconfig.diff.gz xorg-server-patches/xorg-server.dpi.diff.gz xorg-server-patches/IF_MASK.diff' ENFORCE_DISABLE_STATIC="NO" CORRECT_LIBTOOL_FILES=NO SPLIT_PACKAGE=docs # Xorg-specific # Servers to build: BUILD_SERVERS="--enable-xorg --enable-vesa --enable-kdrive" # enabling kdrive may bring in extra depends: alsa-lib, esound, libX11, libXext, libiconv, libxcb, sdl, svgalib # --enable-kdrive SKIP_SERVERS="--enable-dmx=no --enable-xprint=no \ --enable-xvfb=no --enable-xnest=no \ --enable-xephyr=no --enable-xsdl=no" # BUILD_EXTENSIONS="--enable-xcalibrate" #SKIP_EXTENSIONS="--disable-config-dbus --disable-config-hal" # SKIP_DD_EXTENSIONS="--disable-mfb --disable-cfb --disable-afb" # by default this script looks for the unpacked mesa sources in the CWD MESA_VERSION=${MESA_VERSION:-6.5.2} # Optional function replaces configure_source, compile_source, fake_install # To use, uncomment and write/paste CODE between the {} brackets. # build() { CODE } # Get the functions and configs . /usr/libexec/src2pkg/FUNCTIONS ; # Execute the named packaging steps: pre_process find_source make_dirs unpack_source fix_source_perms # configure_source # ( cd $SRC_DIR LDFLAGS="$LDFLAGS" CFLAGS="$STD_FLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --disable-static \ --enable-xcsecurity \ --with-pic \ --with-int10=x86emu \ --with-default-font-path='/usr/share/fonts/TTF,/usr/share/fonts/OTF,/usr/share/fonts/Type1,/usr/share/fonts/misc,/usr/share/fonts/75dpi/:unscaled' \ --with-module-dir="/usr/lib${LIBDIRSUFFIX}/xorg/modules" \ --with-dri-driver-path="/usr/lib${LIBDIRSUFFIX}/xorg/modules/dri" \ --with-os-name='KISS 4.0' \ --with-os-vendor='Amigo Linux Project' \ --with-mesa-source=$CWD/Mesa-${MESA_VERSION} \ --with-xkb-path=/etc/X11/xkb \ --with-xkb-output=/var/lib/xkb \ $BUILD_SERVERS \ $SKIP_SERVERS \ $BUILD_EXTENSIONS \ $SKIP_EXTENSIONS \ $SKIP_DD_EXTENSIONS \ --build=${BUILD_OS} if [ "$ARCH" = "x86_64" ] ; then # To prevent the error 'No rule to make target -ldl'" sed -i -e 's#-ldl##' hw/xfree86/Makefile sed -i -e 's#-lm#-lm -ldl#' hw/xfree86/Makefile fi ) compile_source # If used, the 'build' function replaces these 3 fake_install # ( cd $PKG_DIR/usr/lib && rm -rf modules && ln -sf xorg/modules . ) rmdir $PKG_DIR/var/log fix_pkg_perms strip_bins create_docs compress_man_pages make_description make_doinst make_package post_process ## See the documentation for more help and examples. Below are some of # the most common Extras and Options for easy cut-and-paste use. # DOCLIST='' PATCHLIST='' INSTALL_TYPE='' # CONFIG_COMMAND='' MAKE_COMMAND='' INSTALL_LINE='' # When editing src2pkg scripts to add custom code, use these variables # to refer to the current directory, the sources or the package tree: # $CWD (current directory), $SRC_DIR (sources), $PKG_DIR (package tree) # Other commonly-used directories include: $DOC_DIR (document directory) # $MAN_DIR (man-page directory) $DATA_DIR (shared-data directory)