LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 03-21-2014, 06:50 AM   #16
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad W520
Posts: 4,676

Rep: Reputation: 1237Reputation: 1237Reputation: 1237Reputation: 1237Reputation: 1237Reputation: 1237Reputation: 1237Reputation: 1237Reputation: 1237

Quote:
Originally Posted by comet.berkeley View Post
Maybe some day Slackware can provide a libx11-dev package like Debian?
My crystal bowl tells me: don't hold your breath
 
Old 07-25-2014, 04:18 PM   #17
comet.berkeley
Member
 
Registered: Dec 2009
Location: California
Distribution: Slackware current
Posts: 153

Original Poster
Rep: Reputation: Disabled
I created a script to build the 4 static x11 libraries from the Slackware source code. I called it make-x11-static.

Code:
#! /bin/sh
# For Slackware, create x11-static packages from the original x11 package source
# for libX11 libXau libXdmcp and libxcb

set -e

# >>>> EDIT THESE! <<<<<

#set the from and to directories
SLACKDIR="/home/ftp/pub/slackware/slackware64-current/source/x"
BUILDDIR="/home/slackbuilds"

# Change the build number each time
BUILD=${BUILD:-1-static}

# >>>> SHOULD NOT NEED TO CHANGE ANYTHING BELOW HERE <<<<

# destination directory
PKGDIR="$BUILDDIR/x11-static"

# copy the original x11 package source to x11-static
rm -rf              $PKGDIR
cp -a $SLACKDIR/x11 $PKGDIR

# create new configuration files and
# replace all --disable-static with --disable-loadable-xcursor
cd $PKGDIR

for APKG in configure libX11 libXau libXdmcp libxcb ; do
  if  [ -r $PKGDIR/configure/$APKG ]; then
    mv -f  $PKGDIR/configure/$APKG \
           $PKGDIR/configure/$APKG-orig
    sed -e "s/--disable-static /--disable-loadable-xcursor /" \
         < $PKGDIR/configure/$APKG-orig \
         > $PKGDIR/configure/$APKG
  fi
done

# build each sub package
BUILD=$BUILD ./x11.SlackBuild lib libX11
BUILD=$BUILD ./x11.SlackBuild lib libXau
BUILD=$BUILD ./x11.SlackBuild lib libXdmcp
BUILD=$BUILD ./x11.SlackBuild xcb libxcb

exit 0

Last edited by comet.berkeley; 07-27-2014 at 09:54 AM. Reason: put full SLACKDIR directory path at top of script
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error in libX11 in blfs ankit0301 Linux From Scratch 26 05-02-2012 01:36 AM
install libX11 error! (xproto) totallybored Linux - Software 6 11-18-2010 04:46 AM
error: *** libX11 not found. when installing GTK+-2.18.7 Prisp Linux - Newbie 4 02-23-2010 09:39 AM
KDevelop Executable->static link library lucky6969b Programming 1 02-13-2006 05:01 PM
Building executable for RH Ent 3 smallest Programming 1 06-09-2005 02:45 PM


All times are GMT -5. The time now is 04:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration