DELTA 420417 0 40 SVN  d-edidENDREP DELTA SVNJLJJ# Created by: Alexey Dokuchaev # $FreeBSD$ PORTNAME= read-edid PORTVERSION= 3.0.2 CATEGORIES= sysutils MASTER_SITES= http://www.polypux.org/projects/${PORTNAME}/ MAINTAINER= danfe@FreeBSD.org COMMENT= Tools for reading the EDID from a monitor LIB_DEPENDS= libx86.so:devel/libx86 USES= cmake localbase PLIST_FILES= bin/get-edid bin/parse-edid man/man1/get-edid.1.gz PORTDOCS= AUTHORS ChangeLog LICENSE README .include ENDREP DELTA SVN " TIMESTAMP = 1430271430 SHA256 (read-edid-3.0.2.tar.gz) = c7c6d8440f5b90f98e276829271ccea5b2ff5a3413df8a0f87ec09f834af186f SIZE (read-edid-3.0.2.tar.gz) = 17508 ENDREP DELTA SVN--- CMakeLists.txt.orig 2014-02-05 16:27:26 UTC +++ CMakeLists.txt @@ -12,6 +12,6 @@ if (I2CBUILD OR CLASSICBUILD) endif () add_subdirectory (parse-edid) -INSTALL(FILES get-edid.1 DESTINATION share/man/man1) -INSTALL(FILES AUTHORS ChangeLog COPYING README DESTINATION +INSTALL(FILES get-edid.1 DESTINATION man/man1) +INSTALL(FILES AUTHORS ChangeLog LICENSE README DESTINATION share/doc/read-edid) ENDREP DELTA SVNFx^mo@M;b[2%K\x M ~{}d\<IQURdoBBO}2 tLFwSuX |n' Av $x:PB|.JɅD/hɨQ/Rk7<("MxrO拙v:8Oc>J%8f ykp%?UK5u_So }-ÓHHD&y ½Pp,Z;Dف<B%t͘v1$bˍM<ݐxӋ{Cpld.o G߱\]&[Hdg˯A<%jG{sRi$r*` %;Kk3{1QWK󛴤f1&=3$2qqEiENDREP DELTA SVN " --- get-edid/i2c-dev.h.orig 2011-10-04 19:57:18 UTC +++ get-edid/i2c-dev.h @@ -25,9 +25,17 @@ #ifndef LIB_I2CDEV_H #define LIB_I2CDEV_H -#include +#include #include +#if defined(__FreeBSD__) +typedef int8_t __s8; +typedef int16_t __s16; +typedef int32_t __s32; +typedef uint8_t __u8; +typedef uint16_t __u16; +typedef uint32_t __u32; +#endif /* -- i2c.h -- */ ENDREP DELTA SVN1311--- get-edid/i2c.c.orig 2014-11-21 11:52:13 UTC +++ get-edid/i2c.c @@ -24,7 +24,13 @@ int open_i2c_dev(int i2cbus) { char filename[16]; unsigned long funcs; - sprintf(filename, "/dev/i2c-%d", i2cbus); + sprintf(filename, +#if defined(__linux__) + "/dev/i2c-%d", +#elif defined(__FreeBSD__) + "/dev/iic%d", +#endif + i2cbus); i2cfile = open(filename, O_RDWR); if (i2cfile < 0 && errno == ENOENT) { ENDREP DELTA SVNikiiread-edid is a pair of tools (originally by John Fremlin) for reading the EDID from a monitor. It should work with most monitors made since 1996, assuming the video card supports the standard read commands (most do). Two tools are provided: get-edid, which gets the raw EDID information from the monitor, and parse-edid, which turns the raw binary information into a xorg.conf-compatible monitor section (or xrandr-compatible modelines). WWW: http://www.polypux.org/projects/read-edid/ ENDREP DELTA SVN<><