Skip to content

GNUstep, blocks, GCD install on PCBSD 9.1

July 6, 2013

Here is the recipe I used to install GNUstep into a ports jail in PCBSD 9.1.

The process below is required because FreeBSD GNUstep packages are currently compiled with GCC. It is expected that by the time FreeBSD 10 and PCBSD 9.1 are released, all the GNUstep packages will be compiled with clang. That being the case, this guide won’t be required, and GNUstep with GCD with blocks will just work out of the box.

(A previous post has more detail).

Create a new jail in PCBSD 9.1, include ports

portsnap fetch update
#vipw  ->
#  make /usr/local/bin/bash the shell of the "toor" account
#  add new account "devel" also with bash shell
#passwd toor -> set root passwd
#su - toor   	# need to install sudo...

pgk_add -r vim bash portmaster subversion libdispatch
cd /usr/ports

portmaster /usr/ports/lang/clang33

# gnustep sources
mkdir /usr/local/src
svn co svn:// gnustep

# check what packages could be required to install gnustep...
pkg_add -n -r gnustep-base gnustep-back
#(showed following packages required: libsndfile flac libao libvorbis
#  libogg aspell libxslt libgcrypt gnutls libpg libGLU libGL libdrm
#  libpciaccess giflib libXmu p11-kit mDNSResponder gmp nettle mpfr
#  libgpg libgcrypt xf86vidmodeproto dri2proto pciids libXxf86vm

# install recommended packages prior compilation
portmaster textproc/libxml      # pulled in ports for libgpg libgcrypt
				#pkgconf libxml2 libxslt
portmaster devel/icu
portmaster devel/cmake		# pulled in port for cmake-modules

export CC=/usr/local/bin/clang33
export CXX=/usr/local/bin/clang++33
# gnustep-make; required for libobc2 build
cd /usr/local/src/gnustep/core/make/
gmake install
. /usr/local/share/GNUstep/Makefiles/

# build libobjc2
cd ../../dev-libs/libobjc2
mkdir Build
cd Build
cmake .. -DCMAKE_C_COMPILER=/usr/local/bin/clang33 -DCMAKE_CXX_COMPILER=/usr/local/bin/clang++33
make install

#find / -name*
#  /usr/local/lib/
#ldd /usr/local/lib/
#  /usr/local/lib/
# => /lib/ (0x801235000)
# => /usr/local/lib/ (0x801458000)
# => /usr/lib/ (0x80166a000)
# => /lib/ (0x80197a000)
# => /lib/ (0x801b9b000)
# => /lib/ (0x80081b000)
# => /usr/lib/ (0x801da8000)

# install gnustep-make again
gmake install
# source GNUstep again
. /usr/local/share/GNUstep/Makefiles/

# gnustep-base
cd ../base
gmake install

# gnustep-gui
# Note: all of "tiff jpeg png giflib aspell" packages are already installed
cd ../gui
gmake install

# gnustep-back
# Note: cairo already installed, but libGL is not.
cd ../back
gmake install

From → GNUstep

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: