#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2015 Alexander Pyhalov
#

set name=pkg.fmri value=pkg:/x11/server/xorg@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)

license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'

<transform file -> add pkg.depend.bypass-generate libGL\.so\.1>

file config/x11-input.fdi path=etc/hal/fdi/preprobe/10osvendor/10-x11-input.fdi
file hw/xfree86/man/xorgcfg.1 path=usr/share/man/man1/xorgcfg.1
file hw/xfree86/man/xorgconfig.1 path=usr/share/man/man1/xorgconfig.1

dir path=etc/X11/xorg.conf.d
dir path=etc/X11/xorg.conf.avail
file files/90-zap.conf path=etc/X11/xorg.conf.avail/90-zap.conf

# this file is made from installed xorg-server.h by 
# including 64/32-bit ifdef and commenting out "#define XF86DRI 1"
file files/xorg-server.h path=usr/include/xorg/xorg-server.h

link path=usr/X11/bin/Xorg target=../../bin/Xorg
link path=usr/X11/bin/cvt target=../../bin/cvt
link path=usr/X11/bin/gtf target=../../bin/gtf
link path=usr/X11/include/xorg target=../../include/xorg

file build/$(MACH64)/xorg-server.pc path=usr/lib/$(MACH64)/pkgconfig/xorg-server.pc

file hw/xfree86/os-support/bus/xf86Sbus.h path=usr/include/xorg/xf86Sbus.h

# libglx was moved from xorg to mesa
depend type=optional fmri=x11/library/mesa@7.4.4,5.11-2014.1.3.0

# Required dependencies
depend fmri=service/opengl/ogl-select type=require
depend type=require fmri=x11/keyboard/data-xkb
depend type=require fmri=x11/keyboard/xkbcomp
depend type=require fmri=system/keyboard/kbd_mode

# Follow solaris-xorg 
depend type=group fmri=x11/server/xorg/driver/xorg-input-keyboard
depend type=group fmri=x11/server/xorg/driver/xorg-input-mouse

file path=usr/bin/Xorg mode=4555
file path=usr/bin/cvt
file path=usr/bin/gtf
file path=usr/include/xorg/BT.h
file path=usr/include/xorg/IBM.h
file path=usr/include/xorg/TI.h
file path=usr/include/xorg/XIstubs.h
file path=usr/include/xorg/Xprintf.h
file path=usr/include/xorg/callback.h
file path=usr/include/xorg/client.h
file path=usr/include/xorg/closestr.h
file path=usr/include/xorg/closure.h
file path=usr/include/xorg/colormap.h
file path=usr/include/xorg/colormapst.h
file path=usr/include/xorg/compiler.h
file path=usr/include/xorg/compositeext.h
file path=usr/include/xorg/cursor.h
file path=usr/include/xorg/cursorstr.h
file path=usr/include/xorg/damage.h
file path=usr/include/xorg/damagestr.h
file path=usr/include/xorg/dbestruct.h
file path=usr/include/xorg/dgaproc.h
file path=usr/include/xorg/displaymode.h
file path=usr/include/xorg/dix.h
file path=usr/include/xorg/dixaccess.h
file path=usr/include/xorg/dixevents.h
file path=usr/include/xorg/dixfont.h
file path=usr/include/xorg/dixfontstr.h
file path=usr/include/xorg/dixgrabs.h
file path=usr/include/xorg/dixstruct.h
file path=usr/include/xorg/dri.h
file path=usr/include/xorg/dri2.h
file path=usr/include/xorg/dri3.h
file path=usr/include/xorg/dristruct.h
file path=usr/include/xorg/edid.h
file path=usr/include/xorg/events.h
file path=usr/include/xorg/exa.h
file path=usr/include/xorg/exevents.h
file path=usr/include/xorg/extension.h
file path=usr/include/xorg/extinit.h
file path=usr/include/xorg/extnsionst.h
file path=usr/include/xorg/fb.h
file path=usr/include/xorg/fbdevhw.h
file path=usr/include/xorg/fboverlay.h
file path=usr/include/xorg/fbpict.h
file path=usr/include/xorg/fbrop.h
file path=usr/include/xorg/fourcc.h
file path=usr/include/xorg/gc.h
file path=usr/include/xorg/gcstruct.h
file path=usr/include/xorg/geext.h
file path=usr/include/xorg/geint.h
file path=usr/include/xorg/globals.h
file path=usr/include/xorg/glx_extinit.h
file path=usr/include/xorg/glyphstr.h
file path=usr/include/xorg/hotplug.h
file path=usr/include/xorg/i2c_def.h
file path=usr/include/xorg/input.h
file path=usr/include/xorg/inputstr.h
file path=usr/include/xorg/list.h
file path=usr/include/xorg/mi.h
file path=usr/include/xorg/micmap.h
file path=usr/include/xorg/micoord.h
file path=usr/include/xorg/migc.h
file path=usr/include/xorg/miline.h
file path=usr/include/xorg/mioverlay.h
file path=usr/include/xorg/mipict.h
file path=usr/include/xorg/mipointer.h
file path=usr/include/xorg/mipointrst.h
file path=usr/include/xorg/misc.h
file path=usr/include/xorg/miscstruct.h
file path=usr/include/xorg/mistruct.h
file path=usr/include/xorg/misync.h
file path=usr/include/xorg/misyncfd.h
file path=usr/include/xorg/misyncshm.h
file path=usr/include/xorg/misyncstr.h
file path=usr/include/xorg/mizerarc.h
file path=usr/include/xorg/nonsdk_extinit.h
file path=usr/include/xorg/opaque.h
file path=usr/include/xorg/optionstr.h
file path=usr/include/xorg/os.h
file path=usr/include/xorg/panoramiX.h
file path=usr/include/xorg/panoramiXsrv.h
file path=usr/include/xorg/picture.h
file path=usr/include/xorg/picturestr.h
file path=usr/include/xorg/pixmap.h
file path=usr/include/xorg/pixmapstr.h
file path=usr/include/xorg/present.h
file path=usr/include/xorg/presentext.h
file path=usr/include/xorg/privates.h
file path=usr/include/xorg/property.h
file path=usr/include/xorg/propertyst.h
file path=usr/include/xorg/ptrveloc.h
file path=usr/include/xorg/randrstr.h
file path=usr/include/xorg/region.h
file path=usr/include/xorg/regionstr.h
file path=usr/include/xorg/registry.h
file path=usr/include/xorg/resource.h
file path=usr/include/xorg/rgb.h
file path=usr/include/xorg/rrtransform.h
file path=usr/include/xorg/sarea.h
file path=usr/include/xorg/screenint.h
file path=usr/include/xorg/scrnintstr.h
file path=usr/include/xorg/selection.h
file path=usr/include/xorg/servermd.h
file path=usr/include/xorg/shadow.h
file path=usr/include/xorg/shadowfb.h
file path=usr/include/xorg/shmint.h
file path=usr/include/xorg/site.h
file path=usr/include/xorg/solaris-amd64.il
file path=usr/include/xorg/syncsdk.h
file path=usr/include/xorg/validate.h
file path=usr/include/xorg/vbe.h
file path=usr/include/xorg/vbeModes.h
file path=usr/include/xorg/vgaHW.h
file path=usr/include/xorg/wfbrename.h
file path=usr/include/xorg/window.h
file path=usr/include/xorg/windowstr.h
file path=usr/include/xorg/xaarop.h
file path=usr/include/xorg/xace.h
file path=usr/include/xorg/xacestr.h
file path=usr/include/xorg/xf86.h
file path=usr/include/xorg/xf86Crtc.h
file path=usr/include/xorg/xf86Cursor.h
file path=usr/include/xorg/xf86DDC.h
file path=usr/include/xorg/xf86Modes.h
file path=usr/include/xorg/xf86Module.h
file path=usr/include/xorg/xf86Opt.h
file path=usr/include/xorg/xf86Optionstr.h
file path=usr/include/xorg/xf86Optrec.h
file path=usr/include/xorg/xf86Parser.h
file path=usr/include/xorg/xf86Pci.h
file path=usr/include/xorg/xf86PciInfo.h
file path=usr/include/xorg/xf86Priv.h
file path=usr/include/xorg/xf86Privstr.h
file path=usr/include/xorg/xf86RamDac.h
file path=usr/include/xorg/xf86RandR12.h
file path=usr/include/xorg/xf86VGAarbiter.h
file path=usr/include/xorg/xf86Xinput.h
file path=usr/include/xorg/xf86_OSlib.h
file path=usr/include/xorg/xf86_OSproc.h
file path=usr/include/xorg/xf86cmap.h
file path=usr/include/xorg/xf86fbman.h
file path=usr/include/xorg/xf86i2c.h
file path=usr/include/xorg/xf86int10.h
file path=usr/include/xorg/xf86platformBus.h
file path=usr/include/xorg/xf86sbusBus.h
file path=usr/include/xorg/xf86str.h
file path=usr/include/xorg/xf86xv.h
file path=usr/include/xorg/xf86xvmc.h
file path=usr/include/xorg/xf86xvpriv.h
file path=usr/include/xorg/xisb.h
file path=usr/include/xorg/xkbfile.h
file path=usr/include/xorg/xkbrules.h
file path=usr/include/xorg/xkbsrv.h
file path=usr/include/xorg/xkbstr.h
#file path=usr/include/xorg/xorg-server.h
file path=usr/include/xorg/xorgVersion.h
file path=usr/include/xorg/xserver-properties.h
file path=usr/include/xorg/xserver_poll.h
file path=usr/include/xorg/xvdix.h
file path=usr/include/xorg/xvmcext.h
file usr/lib/xorg/modules/$(MACH64)/drivers/modesetting_drv.so path=usr/lib/xorg/modules/drivers/$(MACH64)/modesetting_drv.so
file usr/lib/xorg/modules/$(MACH64)/extensions/libglx.so path=usr/lib/mesa/modules/extensions/$(MACH64)/libglx.so
file path=usr/lib/xorg/modules/$(MACH64)/libexa.so
file path=usr/lib/xorg/modules/$(MACH64)/libfb.so
file path=usr/lib/xorg/modules/$(MACH64)/libfbdevhw.so
file path=usr/lib/xorg/modules/$(MACH64)/libint10.so
file path=usr/lib/xorg/modules/$(MACH64)/libshadow.so
file path=usr/lib/xorg/modules/$(MACH64)/libshadowfb.so
file path=usr/lib/xorg/modules/$(MACH64)/libvbe.so
file path=usr/lib/xorg/modules/$(MACH64)/libvgahw.so
file path=usr/lib/xorg/modules/$(MACH64)/libwfb.so
file path=usr/share/aclocal/xorg-server.m4
file path=usr/share/doc/xorg-server/Xserver-DTrace.xml
#file path=usr/share/man/man1/Xephyr.1
file path=usr/share/man/man1/Xorg.1
#file path=usr/share/man/man1/Xserver.1
#file path=usr/share/man/man1/Xvfb.1
file path=usr/share/man/man1/cvt.1
file path=usr/share/man/man1/gtf.1
file path=usr/share/man/man4/exa.4
file path=usr/share/man/man4/fbdevhw.4
file path=usr/share/man/man4/modesetting.4
file path=usr/share/man/man5/xorg.conf.5
file path=usr/share/man/man5/xorg.conf.d.5
#file path=var/run/xkb/README.compiled