BSD Ports

converters/xml2c 20151019_3 FreeBSD

Convert an XML file into C struct/string declarations

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD2CLAUSE
Categories
converters
Package size
8.2 KiB, 13.8 KiB installed

Description

xml2c reads in an XML file and produces equivalent C source code, suitable for #including in your program. The C version is probably easier deal with in your code. You don't have to read and parse the XML file and then look for the nodes you want; instead you just loop through a bunch of structs. Or maybe you just don't want to distribute extra files with your app, and would rather build them into the executable.

In the other systems

SystemPortVersion
FreeBSDconverters/xml2c20151019_3
DragonFlyconverters/xml2c20151019_2
MidnightBSDconverters/xml2c20151019_1
HardenedBSDconverters/xml2c20151019_3
GhostBSDconverters/xml2c20151019_3

Install

Binary package:

pkg install xml2c

From the ports tree:

cd /usr/ports/converters/xml2c/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	xml2c>0:converters/xml2c

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest20151019_320151019_320151019_220151019_320151019_3
FreeBSD:14:quarterly20151019_320151019_3n/a20151019_320151019_3
FreeBSD:15:latest20151019_320151019_3n/a20151019_320151019_3
FreeBSD:15:quarterly20151019_320151019_3n/an/an/a
FreeBSD:16:latest20151019_320151019_3n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 3
Run dependencies 3

No port depends on this one.

Configuration

No options to configure.

USES
gnome
Service scripts
none

Files

distinfo 1
FileSizeSHA256
xml2c_19Oct2015.tar.gz671629129966413119e1a070ac3495368e992eb2f99dda6be9143fd96265a6ac183d
Master sites 1
  • https://acme.com/software/xml2c/

Commit history 0

No commits in the history this site was built from.