- Joined
- 16 Feb 2003
- Messages
- 2,725
Since XFree is seemingly going to disappear, here are the steps to install Xorg on FreeBSD. Here are the steps and the patch file you need to do it;
# pkg_deinstall -f XFree*
# pkg_deinstall -O wrapper-*
# cd /usr/ports/x11/xorg-libraries && make install clean
This will fail [fixed 6/2/04] becuase it looks for Wraphelp2.gz in the wrong location, so you need to copy the Wraphelp2.gz file to /usr/ports/distfiles
#cp /usr/ports/distfiles/xorg/Wraphelp.gz /usr/ports/distfiles/
# make install clean
# cd /usr/ports/x11-servers/xorg-server && make install clean
# cd /usr/ports/x11/wrapper
now you need to patch the Makefile, save in the directory as xorg.diff
# patch Makefile xorg.diff
# make install clean
# cd /usr/ports/x11/xorg-clients && make install clean
# portinstall xorg-fonts-*
# pkgdb -F
Fix up the dependencies,
XFree86-fontsScalable -> xorg-fonts-type1
XFree86-server -> xorg-server, you get the idea
That should be it. xorg will use your existing XF86Config, but you should cp to xorg.conf just to be thorough.
# pkg_deinstall -f XFree*
# pkg_deinstall -O wrapper-*
# cd /usr/ports/x11/xorg-libraries && make install clean
This will fail [fixed 6/2/04] becuase it looks for Wraphelp2.gz in the wrong location, so you need to copy the Wraphelp2.gz file to /usr/ports/distfiles
#cp /usr/ports/distfiles/xorg/Wraphelp.gz /usr/ports/distfiles/
# make install clean
# cd /usr/ports/x11-servers/xorg-server && make install clean
# cd /usr/ports/x11/wrapper
now you need to patch the Makefile, save in the directory as xorg.diff
Code:
*** Makefile Mon May 31 21:43:41 2004
--- Makefile.xorg Mon May 31 23:18:42 2004
***************
*** 13,21 ****
EXTRACT_SUFX= # intentionally left blank
MAINTAINER= [email]trevor@FreeBSD.org[/email]
! COMMENT= Wrapper for XFree86-4 server
! RUN_DEPENDS= XFree86:${PORTSDIR}/x11-servers/XFree86-4-Server
NO_WRKSUBDIR= yes
PLIST_FILES= bin/Xwrapper-4
--- 13,21 ----
EXTRACT_SUFX= # intentionally left blank
MAINTAINER= [email]trevor@FreeBSD.org[/email]
! COMMENT= Wrapper for Xorg-server
! RUN_DEPENDS= Xorg:${PORTSDIR}/x11-servers/xorg-server
NO_WRKSUBDIR= yes
PLIST_FILES= bin/Xwrapper-4
***************
*** 24,30 ****
do-fetch:
do-build:
! ${CC} ${CFLAGS} -DXSERVER_PATH=\"${X11BASE}/bin/XFree86\" -o ${WRKSRC}/Xwrapper-4 ${FILESDIR}/wrapper.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/Xwrapper-4 ${PREFIX}/bin
--- 24,30 ----
do-fetch:
do-build:
! ${CC} ${CFLAGS} -DXSERVER_PATH=\"${X11BASE}/bin/Xorg\" -o ${WRKSRC}/Xwrapper-4 ${FILESDIR}/wrapper.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/Xwrapper-4 ${PREFIX}/bin
# make install clean
# cd /usr/ports/x11/xorg-clients && make install clean
# portinstall xorg-fonts-*
# pkgdb -F
Fix up the dependencies,
XFree86-fontsScalable -> xorg-fonts-type1
XFree86-server -> xorg-server, you get the idea
That should be it. xorg will use your existing XF86Config, but you should cp to xorg.conf just to be thorough.