# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= video4linux VERSION= 1.24.1 REVISION= 1 KEYWORDS= multimedia VARIANTS= std SDESC[std]= Video device drivers HOMEPAGE= http://freshmeat.net/projects/libv4l CONTACT= nobody DOWNLOAD_GROUPS= main dvb SITES[main]= https://linuxtv.org/downloads/v4l-utils/ DISTFILE[1]= v4l-utils-1.24.1.tar.bz2:main DF_INDEX= 1 SPKGS[std]= set primary dev man nls OPTIONS_AVAILABLE= ARGP OPTIONS_STANDARD= ARGP OPT_ON[freebsd]= ARGP OPT_ON[sunos]= ARGP OPT_ON[netbsd]= ARGP OPT_ON[dragonfly]= ARGP OPT_ON[midnightbsd]= ARGP BUILD_DEPENDS= evdev-proto:single:std gettext:solinks:std USES= gmake jpeg libtool pkgconfig perl:build shebangfix gettext:build C_USES[linux]= autoreconf iconv c++:primary DISTNAME= v4l-utils-1.24.1 LICENSE= LGPL21+:primary LICENSE_TERMS= primary:{{WRKDIR}}/TERMS LICENSE_FILE= LGPL21+:{{WRKSRC}}/COPYING.libv4l LICENSE_AWK= TERMS:"__LIBV4L2_H" LICENSE_SOURCE= TERMS:{{WRKSRC}}/lib/include/libv4l2.h LICENSE_SCHEME= solo FPC_EQUIVALENT= multimedia/libv4l SHEBANG_GLOB= *.pl MUST_CONFIGURE= gnu CONFIGURE_ARGS= --disable-doxygen-doc INSTALL_TARGET= install-strip INSTALL_REQ_TOOLCHAIN= yes [ARGP].DESCRIPTION= Build with standalone version of argp from glibc [ARGP].BUILDRUN_DEPENDS_ON= argp-standalone:primary:std [ARGP].BUILD_DEPENDS_ON= argp-standalone:dev:std post-install-linux: ${MV} ${STAGEDIR}/lib/* ${STAGEDIR}${PREFIX}/lib ${RMDIR} ${STAGEDIR}/lib post-patch-dragonfly: ${REINPLACE_CMD} -e 's| -lrt||' \ ${WRKSRC}/lib/libv4lconvert/Makefile.in \ ${WRKSRC}/lib/libv4lconvert/libv4lconvert.pc.in ${TOUCH} ${WRKSRC}/lib/include/sys/sysmacros.h post-extract: ${REINPLACE_CMD} -e '/CPPFLAGS=.*freebsd/d' ${WRKSRC}/configure ${MKDIR} ${WRKSRC}/lib/include/sys post-patch-freebsd: ${REINPLACE_CMD} -e 's| -lrt||' \ ${WRKSRC}/lib/libv4lconvert/Makefile.in \ ${WRKSRC}/lib/libv4lconvert/libv4lconvert.pc.in ${TOUCH} ${WRKSRC}/lib/include/sys/sysmacros.h post-patch-midnightbsd: ${REINPLACE_CMD} -e 's| -lrt||' \ ${WRKSRC}/lib/libv4lconvert/Makefile.in \ ${WRKSRC}/lib/libv4lconvert/libv4lconvert.pc.in ${TOUCH} ${WRKSRC}/lib/include/sys/sysmacros.h [FILE:241:descriptions/desc.primary] The Video4Linux library is a wrapper library for accessing Video4Linux compliant video devices. It allows for transcoding of capture streams in user space instead of kernel space and creates a standard interface mechanism for video devices. [FILE:103:distinfo] cbb7fe8a6307f5ce533a05cded70bb93c3ba06395ab9b6d007eb53b75d805f5b 2238340 v4l-utils-1.24.1.tar.bz2 [FILE:3566:manifests/plist.primary] %%ONLY-LINUX%%@dir etc/rc_keymaps %%ONLY-LINUX%%bin/ cec-compliance cec-ctl cec-follower cx18-ctl decode_tm6000 dvb-fe-tool dvb-format-convert dvbv5-daemon dvbv5-scan dvbv5-zap ir-ctl ir-keytable ivtv-ctl media-ctl rds-ctl v4l2-compliance v4l2-ctl v4l2-sysfs-path %%ONLY-LINUX%%etc/rc_maps.cfg %%ONLY-LINUX%%lib/ libdvbv5.so.0 libdvbv5.so.0.0.0 %%ONLY-LINUX%%lib/udev/rc_keymaps/ adstech_dvb_t_pci.toml af9005.toml alink_dtu_m.toml allwinner_ba10_tv_box.toml allwinner_i12_a20_tv_box.toml anysee.toml apac_viewcomp.toml astrometa_t2hybrid.toml asus_pc39.toml asus_ps3_100.toml ati_tv_wonder_hd_600.toml ati_x10.toml avermedia.toml avermedia_a16d.toml avermedia_cardbus.toml avermedia_dvbt.toml avermedia_m135a.toml avermedia_m733a_rm_k6.toml avermedia_rm_ks.toml avertv_303.toml az6027.toml azurewave_ad_tu700.toml beelink_gs1.toml behold.toml behold_columbus.toml budget_ci_old.toml cec.toml cinergy.toml cinergy_1400.toml cinergyt2.toml ct_90405.toml d680_dmb.toml delock_61959.toml dib0700_nec.toml dib0700_rc5.toml dibusb.toml digitalnow_tinytwin.toml digittrade.toml digitv.toml dish_network.toml dm1105_nec.toml dntv_live_dvb_t.toml dntv_live_dvbt_pro.toml dtt200u.toml dvbsky.toml dvico_mce.toml dvico_portable.toml em_terratec.toml encore_enltv.toml encore_enltv2.toml encore_enltv_fm53.toml evga_indtube.toml eztv.toml flydvb.toml flyvideo.toml fusionhdtv_mce.toml gadmei_rm008z.toml geekbox.toml genius_tvgo_a11mce.toml gotview7135.toml haupp.toml hauppauge.toml hisi_poplar.toml hisi_tv_demo.toml imon_mce.toml imon_pad.toml imon_rsc.toml iodata_bctv7e.toml it913x_v1.toml it913x_v2.toml kaiomy.toml khadas.toml khamsin.toml kii_pro.toml kworld_315u.toml kworld_pc150u.toml kworld_plus_tv_analog.toml leadtek_y04g0051.toml lme2510.toml manli.toml mce_keyboard.toml mecool_kii_pro.toml mecool_kiii_pro.toml medion_x10.toml medion_x10_digitainer.toml medion_x10_or2x.toml megasky.toml minix_neo.toml msi_digivox_ii.toml msi_digivox_iii.toml msi_tvanywhere.toml msi_tvanywhere_plus.toml nebula.toml nec_terratec_cinergy_xs.toml norwood.toml npgtech.toml odroid.toml opera1.toml pctv_sedna.toml pine64.toml pinnacle310e.toml pinnacle_color.toml pinnacle_grey.toml pinnacle_pctv_hd.toml pixelview.toml pixelview_002t.toml pixelview_mk12.toml pixelview_new.toml powercolor_real_angel.toml proteus_2309.toml purpletv.toml pv951.toml rc6_mce.toml real_audio_220_32_keys.toml reddo.toml samsung_ak59_00125a.toml snapstream_firefly.toml streamzap.toml su3000.toml tanix_tx3mini.toml tanix_tx5max.toml tbs_nec.toml technisat_ts35.toml technisat_usb2.toml terratec_cinergy_c_pci.toml terratec_cinergy_s2_hd.toml terratec_cinergy_xs.toml terratec_slim.toml terratec_slim_2.toml tevii_nec.toml tivo.toml total_media_in_hand.toml total_media_in_hand_02.toml trekstor.toml tt_1500.toml tvwalkertwin.toml twinhan_dtv_cab_ci.toml twinhan_vp1027_dvbs.toml vega_s9x.toml videomate_k100.toml videomate_s350.toml videomate_tv_pvr.toml vp702x.toml wetek_hub.toml wetek_play2.toml winfast.toml winfast_usbii_deluxe.toml wobo_i5.toml x96max.toml xbox_dvd.toml zx_irdec.toml %%ONLY-LINUX%%lib/udev/rules.d/70-infrared.rules %%ONLY-LINUX%%sbin/v4l2-dbg lib/ libv4l1.so.0 libv4l1.so.0.0.0 libv4l2.so.0 libv4l2.so.0.0.0 libv4l2rds.so.0 libv4l2rds.so.0.0.0 libv4lconvert.so.0 libv4lconvert.so.0.0.0 lib/libv4l/ ov511-decomp ov518-decomp v4l1compat.so v4l2convert.so lib/libv4l/plugins/libv4l-mplane.so [FILE:1141:manifests/plist.dev] %%ONLY-LINUX%%include/libdvbv5/ atsc_eit.h atsc_header.h cat.h countries.h crc32.h desc_atsc_service_location.h desc_ca.h desc_ca_identifier.h desc_cable_delivery.h desc_event_extended.h desc_event_short.h desc_extension.h desc_frequency_list.h desc_hierarchy.h desc_isdbt_delivery.h desc_language.h desc_logical_channel.h desc_network_name.h desc_partial_reception.h desc_registration_id.h desc_sat.h desc_service.h desc_t2_delivery.h desc_terrestrial_delivery.h desc_ts_info.h descriptors.h dvb-demux.h dvb-dev.h dvb-fe.h dvb-file.h dvb-frontend.h dvb-log.h dvb-sat.h dvb-scan.h dvb-v5-std.h eit.h header.h libdvb-version.h mgt.h mpeg_es.h mpeg_pes.h mpeg_ts.h nit.h pat.h pmt.h sdt.h vct.h %%ONLY-LINUX%%lib/ libdvbv5.a libdvbv5.so %%ONLY-LINUX%%lib/pkgconfig/libdvbv5.pc include/ libv4l-plugin.h libv4l1-videodev.h libv4l1.h libv4l2.h libv4l2rds.h libv4lconvert.h lib/ libv4l1.a libv4l1.so libv4l2.a libv4l2.so libv4l2rds.a libv4l2rds.so libv4lconvert.a libv4lconvert.so v4l1compat.so v4l2convert.so lib/pkgconfig/ libv4l1.pc libv4l2.pc libv4l2rds.pc libv4lconvert.pc [FILE:236:manifests/plist.man] %%ONLY-LINUX%%share/man/man1/ cec-compliance.1 cec-ctl.1 cec-follower.1 dvb-fe-tool.1 dvb-format-convert.1 dvbv5-scan.1 dvbv5-zap.1 ir-ctl.1 ir-keytable.1 v4l2-compliance.1 v4l2-ctl.1 %%ONLY-LINUX%%share/man/man5/rc_keymap.5 [FILE:268:manifests/plist.nls] share/locale/ca/LC_MESSAGES/ libdvbv5.mo v4l-utils.mo share/locale/de/LC_MESSAGES/ libdvbv5.mo v4l-utils.mo share/locale/fr/LC_MESSAGES/v4l-utils.mo share/locale/pt_BR/LC_MESSAGES/ libdvbv5.mo v4l-utils.mo share/locale/uk/LC_MESSAGES/ libdvbv5.mo v4l-utils.mo [FILE:301:patches/patch-lib_libv4lconvert_control_libv4lcontrol.c] --- lib/libv4lconvert/control/libv4lcontrol.c.orig 2023-02-24 16:49:19 UTC +++ lib/libv4lconvert/control/libv4lcontrol.c @@ -20,7 +20,7 @@ */ #include -#ifndef __OpenBSD__ +#if !defined(__OpenBSD__) && !defined(__NetBSD__) #include #endif #include [FILE:1722:patches/patch-lib_libv4lconvert_libv4lsyscall-priv.h] --- lib/libv4lconvert/libv4lsyscall-priv.h.orig 2023-02-24 16:40:23 UTC +++ lib/libv4lconvert/libv4lsyscall-priv.h @@ -51,7 +51,7 @@ #endif #endif -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__NetBSD__) #include #include #include @@ -59,10 +59,27 @@ #define _IOC_NR(cmd) ((cmd) & 0xFF) #define _IOC_TYPE(cmd) IOCGROUP(cmd) #define _IOC_SIZE(cmd) IOCPARM_LEN(cmd) +# ifndef MAP_ANONYMOUS #define MAP_ANONYMOUS MAP_ANON +# endif #define MMAP2_PAGE_SHIFT 0 #endif +#ifdef __sun__ +#include +#include +#include +#include +# ifndef MAP_ANONYMOUS +#define MAP_ANONYMOUS MAP_ANON +# endif +#define MMAP2_PAGE_SHIFT 0 +#define _IOC_NR(cmd) ((cmd) & 0x1FFF) +#define _IOC_SIZE(cmd) (((cmd) >> 16) & 0x1FFF) +#define _IOC_TYPE(cmd) (((cmd) >> 8) & 0xFF) +typedef off_t __off_t; +#endif + #if defined(__OpenBSD__) #include #include @@ -98,11 +115,11 @@ #define SYS_WRITE(fd, buf, len) \ syscall(SYS_write, (int)(fd), (const void *)(buf), (size_t)(len)); -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined (__DragonFly__) || defined(__NetBSD__) #define SYS_MMAP(addr, len, prot, flags, fd, off) \ __syscall(SYS_mmap, (void *)(addr), (size_t)(len), \ (int)(prot), (int)(flags), (int)(fd), (off_t)(off)) -#elif defined(__FreeBSD_kernel__) +#elif defined(__FreeBSD_kernel__) || defined (__sun__) #define SYS_MMAP(addr, len, prot, flags, fd, off) \ syscall(SYS_mmap, (void *)(addr), (size_t)(len), \ (int)(prot), (int)(flags), (int)(fd), (off_t)(off))