Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153521200
D56404.id175611.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
6 KB
Referenced Files
None
Subscribers
None
D56404.id175611.diff
View Options
diff --git a/etc/mtree/BSD.usr.dist b/etc/mtree/BSD.usr.dist
--- a/etc/mtree/BSD.usr.dist
+++ b/etc/mtree/BSD.usr.dist
@@ -26,6 +26,8 @@
..
..
..
+ pkgconf tags=package=libpkgconf-dev
+ ..
samplerate tags=package=sound-dev
..
sqlite3 tags=package=libsqlite3-dev
diff --git a/lib/Makefile b/lib/Makefile
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -188,6 +188,7 @@
SUBDIR.${MK_KERBEROS}+= libcom_err
.endif
SUBDIR.${MK_LDNS}+= libldns
+SUBDIR.${MK_PKGCONF}+= libpkgconf
SUBDIR.${MK_STATS}+= libstats
# The libraries under libclang_rt can only be built by clang.
diff --git a/lib/libpkgconf/Makefile b/lib/libpkgconf/Makefile
new file mode 100644
--- /dev/null
+++ b/lib/libpkgconf/Makefile
@@ -0,0 +1,27 @@
+PKGCONFDIR= ${SRCTOP}/contrib/pkgconf
+
+PACKAGE= pkgconf
+PRIVATELIB= yes
+LIB= pkgconf
+MAN= pkg.m4.7
+MANNODEV= pc.5
+MANNODEV+= pkgconf-personality.5
+
+SRCS= audit.c buffer.c cache.c client.c pkg.c bsdstubs.c fragment.c
+SRCS+= argvsplit.c fileio.c tuple.c dependency.c queue.c
+SRCS+= path.c personality.c parser.c
+INCS= bsdstubs.h iter.h libpkgconf-api.h libpkgconf.h stdinc.h
+
+CFLAGS+= -Wno-error=cast-align
+CFLAGS+= -Wno-error=cast-qual
+CFLAGS+= -Wno-error=incompatible-pointer-types-discards-qualifiers
+CFLAGS+= -DPERSONALITY_PATH=\"/usr/share/pkgconfig/personality.d:/etc/pkgconfig/personality.d:/usr/local/etc/pkgconfig/personality.d\"
+CFLAGS+= -DPKG_DEFAULT_PATH=\"/usr/local/libdata/pkgconfig:/usr/libdata/pkgconfig:/usr/local/share/pkgconfig\"
+CFLAGS+= -DSYSTEM_INCLUDEDIR=\"/usr/include\"
+CFLAGS+= -DSYSTEM_LIBDIR=\"/usr/lib\"
+CFLAGS+= -I${SRCTOP}/lib/libpkgconf -I${PKGCONFDIR}
+
+.PATH: ${PKGCONFDIR}/libpkgconf
+.PATH: ${PKGCONFDIR}/man
+
+.include <bsd.lib.mk>
diff --git a/lib/libpkgconf/libpkgconf/config.h b/lib/libpkgconf/libpkgconf/config.h
new file mode 100644
--- /dev/null
+++ b/lib/libpkgconf/libpkgconf/config.h
@@ -0,0 +1,77 @@
+/* libpkgconf/config.h.in. Generated from configure.ac by autoheader. */
+
+/* Define to 1 if you have the `strlcat' function. */
+#define HAVE_STRLCAT 1
+
+/* Define to 1 if you have the `strlcpy' function. */
+#define HAVE_STRLCPY 1
+
+/* Define to 1 if you have the `strndup' function. */
+#define HAVE_STRNDUP 1
+
+/* Define to 1 if you have the `reallocarray' function. */
+#define HAVE_REALLOCARRAY 1
+
+/* Define to 1 if you have the `strlcat' function. */
+#define HAVE_DECL_STRLCAT 1
+
+/* Define to 1 if you have the `strlcpy' function. */
+#define HAVE_DECL_STRLCPY 1
+
+/* Define to 1 if you have the `strndup' function. */
+#define HAVE_DECL_STRNDUP 1
+
+/* Define to 1 if you have the `reallocarray' function. */
+#define HAVE_DECL_REALLOCARRAY 1
+
+/* Define to 1 if you have the `pledge' function. */
+/* #undef HAVE_DECL_PLEDGE */
+
+/* Define to 1 if you have the `unveil' function. */
+/* #undef HAVE_DECL_UNVEIL */
+
+/* Name of package */
+#define PACKAGE "pkgconf"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "https://github.com/pkgconf/pkgconf/issues/new"
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "pkgconf"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "pkgconf 2.5.1"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "pkgconf"
+
+/* Define to the home page for this package. */
+#define PACKAGE_URL ""
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "2.5.1"
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Version number of package */
+#define VERSION "2.5.1"
+
+/* Enable large inode numbers on Mac OS X 10.5. */
+#ifndef _DARWIN_USE_64_BIT_INODE
+# define _DARWIN_USE_64_BIT_INODE 1
+#endif
+
+/* Number of bits in a file offset, on hosts where this is settable. */
+/* #undef _FILE_OFFSET_BITS */
+
+/* Define for large files, on AIX-style hosts. */
+/* #undef _LARGE_FILES */
+
+/* Number of bits in time_t, on hosts where this is settable. */
+/* #undef _TIME_BITS */
+
+/* Enable Solaris extensions. */
+#ifndef __EXTENSIONS__
+# define __EXTENSIONS__ 1
+#endif
diff --git a/share/mk/bsd.libnames.mk b/share/mk/bsd.libnames.mk
--- a/share/mk/bsd.libnames.mk
+++ b/share/mk/bsd.libnames.mk
@@ -137,6 +137,7 @@
LIBPANELW?= ${LIBDESTDIR}${LIBDIR_BASE}/libpanelw.a
LIBPCAP?= ${LIBDESTDIR}${LIBDIR_BASE}/libpcap.a
LIBPJDLOG?= ${LIBDESTDIR}${LIBDIR_BASE}/libpjdlog.a
+LIBPKGCONF?= ${LIBDESTDIR}${LIBDIR_BASE}/libpkgconf.a
LIBPMC?= ${LIBDESTDIR}${LIBDIR_BASE}/libpmc.a
LIBPROC?= ${LIBDESTDIR}${LIBDIR_BASE}/libproc.a
LIBPROCSTAT?= ${LIBDESTDIR}${LIBDIR_BASE}/libprocstat.a
diff --git a/share/mk/bsd.opts.mk b/share/mk/bsd.opts.mk
--- a/share/mk/bsd.opts.mk
+++ b/share/mk/bsd.opts.mk
@@ -63,6 +63,7 @@
NIS \
NLS \
OPENSSH \
+ PKGCONF \
RELRO \
SSP \
TESTS \
diff --git a/share/mk/src.libnames.mk b/share/mk/src.libnames.mk
--- a/share/mk/src.libnames.mk
+++ b/share/mk/src.libnames.mk
@@ -30,6 +30,7 @@
kldelf \
ldns \
opencsd \
+ pkgconf \
samplerate \
sqlite3 \
ssh \
diff --git a/usr.bin/Makefile b/usr.bin/Makefile
--- a/usr.bin/Makefile
+++ b/usr.bin/Makefile
@@ -234,6 +234,8 @@
SUBDIR.${MK_NIS}+= ypmatch
SUBDIR.${MK_NIS}+= ypwhich
SUBDIR.${MK_OPENSSH}+= ssh-copy-id
+SUBDIR.${MK_PKGCONF}+= bomtool
+SUBDIR.${MK_PKGCONF}+= pkgconf
SUBDIR.${MK_QUOTAS}+= quota
SUBDIR.${MK_SENDMAIL}+= vacation
SUBDIR.${MK_SOUND}+= beep
diff --git a/usr.bin/bomtool/Makefile b/usr.bin/bomtool/Makefile
new file mode 100644
--- /dev/null
+++ b/usr.bin/bomtool/Makefile
@@ -0,0 +1,20 @@
+PACKAGE= pkgconf
+
+PROG= bomtool
+SRCS= main.c
+SRCS+= getopt_long.c
+
+LIBADD= pkgconf
+
+PKGCONFDIR= ${SRCTOP}/contrib/pkgconf
+
+CFLAGS+= -Wno-error=missing-variable-declarations
+CFLAGS+= -Wno-error=incompatible-pointer-types-discards-qualifiers
+CFLAGS+= -Wno-error=cast-qual
+CFLAGS+= -I${SRCTOP}/lib/libpkgconf -I${PKGCONFDIR} -I${PKGCONFDIR}/cli
+
+.PATH: ${PKGCONFDIR}/cli/bomtool
+.PATH: ${PKGCONFDIR}/cli
+.PATH: ${PKGCONFDIR}/man
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/pkgconf/Makefile b/usr.bin/pkgconf/Makefile
new file mode 100644
--- /dev/null
+++ b/usr.bin/pkgconf/Makefile
@@ -0,0 +1,23 @@
+PACKAGE= pkgconf
+
+PROG= pkgconf
+SRCS= main.c
+SRCS+= getopt_long.c
+SRCS+= renderer-msvc.c
+
+LIBADD= pkgconf
+
+SYMLINKS= pkgconf ${BINDIR}/pkg-config
+
+PKGCONFDIR= ${SRCTOP}/contrib/pkgconf
+
+CFLAGS+= -Wno-error=missing-variable-declarations
+CFLAGS+= -Wno-error=incompatible-pointer-types-discards-qualifiers
+CFLAGS+= -Wno-error=cast-qual
+CFLAGS+= -DSYSTEM_INCLUDEDIR=\"/usr/include\" -DSYSTEM_LIBDIR=\"/usr/lib\"
+CFLAGS+= -I${SRCTOP}/lib/libpkgconf -I${PKGCONFDIR}
+
+.PATH: ${PKGCONFDIR}/cli
+.PATH: ${PKGCONFDIR}/man
+
+.include <bsd.prog.mk>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 2:54 PM (15 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31986027
Default Alt Text
D56404.id175611.diff (6 KB)
Attached To
Mode
D56404: pkgconf: import into the base system
Attached
Detach File
Event Timeline
Log In to Comment