pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/posix_headers Add pkgtools/posix_headers vers...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4df5263f62ac
branches:  trunk
changeset: 528209:4df5263f62ac
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Tue Apr 24 19:35:46 2007 +0000

description:
Add pkgtools/posix_headers version 0.4:
This package attempts to resolve deficiencies in system headers.
These deficiencies are commonly found on older operating system releases.
When use of posix_headers has been enabled on a platform, this package will
become a compile-time dependency for every package. It will provide customized
header files that take preference over some system provided ones (that may
not even exist). This happens transparently through use of buildlink3.

diffstat:

 pkgtools/posix_headers/DESCR              |   6 +++++
 pkgtools/posix_headers/Makefile           |  32 +++++++++++++++++++++++++++++++
 pkgtools/posix_headers/buildlink3.mk      |  22 +++++++++++++++++++++
 pkgtools/posix_headers/files/math.h       |  18 +++++++++++++++++
 pkgtools/posix_headers/files/stdint.h     |  12 +++++++++++
 pkgtools/posix_headers/files/sys/select.h |   9 ++++++++
 6 files changed, 99 insertions(+), 0 deletions(-)

diffs (123 lines):

diff -r 6beb460e45ee -r 4df5263f62ac pkgtools/posix_headers/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/posix_headers/DESCR      Tue Apr 24 19:35:46 2007 +0000
@@ -0,0 +1,6 @@
+This package attempts to resolve deficiencies in system headers.
+These deficiencies are commonly found on older operating system releases.
+When use of posix_headers has been enabled on a platform, this package will
+become a compile-time dependency for every package. It will provide customized
+header files that take preference over some system provided ones (that may
+not even exist). This happens transparently through use of buildlink3.
diff -r 6beb460e45ee -r 4df5263f62ac pkgtools/posix_headers/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/posix_headers/Makefile   Tue Apr 24 19:35:46 2007 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/04/24 19:35:46 tnn Exp $
+
+DISTNAME=              posix_headers-0.4
+CATEGORIES=            pkgtools
+MASTER_SITES=          # empty
+DISTFILES=             # empty
+
+MAINTAINER=            tnn%NetBSD.org@localhost
+HOMEPAGE=              http://www.pkgsrc.org/
+COMMENT=               POSIX compatibility headers
+
+NO_PKGTOOLS_REQD_CHECK=        yes
+NO_CHECKSUM=           yes
+NO_MTREE=              yes
+NO_CONFIGURE=          yes
+NO_BUILD=              yes
+USE_LANGUAGES=
+ONLY_FOR_PLATFORM=     HPUX-11.11-* # add more as needed
+
+PLIST_SRC=             ${WRKDIR}/PLIST_SRC
+
+POSIX_HEADERS.HPUX=    sys/select.h stdint.h math.h
+
+BUILDING_POSIX_HEADERS=        yes
+
+do-install:
+       for h in ${POSIX_HEADERS.${OPSYS}}; do \
+               ${INSTALL_DATA} ${FILESDIR}/"$$h" ${PREFIX}/include/"$$h"; \
+               ${ECHO} include/"$$h" >> ${PLIST_SRC}; \
+       done
+
+.include "../../mk/bsd.pkg.mk"
diff -r 6beb460e45ee -r 4df5263f62ac pkgtools/posix_headers/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/posix_headers/buildlink3.mk      Tue Apr 24 19:35:46 2007 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/04/24 19:35:46 tnn Exp $
+
+BUILD_DEPENDS+=                posix_headers>=0.4:../../pkgtools/posix_headers
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
+POSIX_HEADERS_BUILDLINK3_MK:=  ${POSIX_HEADERS_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+#BUILDLINK_DEPENDS+=   # intentionally left blank.
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nposix_headers}
+BUILDLINK_PACKAGES+=   posix_headers
+BUILDLINK_ORDER:=      ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}posix_headers
+
+.if !empty(POSIX_HEADERS_BUILDLINK3_MK:M+)
+BUILDLINK_API_DEPENDS.posix_headers+=  posix_headers>=0.1bogus
+BUILDLINK_ABI_DEPENDS.posix_headers+=  posix_headers>=0.1bogus
+BUILDLINK_PKGSRCDIR.posix_headers?=    ../../pkgtools/posix_headers
+.endif # POSIX_HEADERS_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH:S/+$//}
diff -r 6beb460e45ee -r 4df5263f62ac pkgtools/posix_headers/files/math.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/posix_headers/files/math.h       Tue Apr 24 19:35:46 2007 +0000
@@ -0,0 +1,18 @@
+/* $NetBSD: math.h,v 1.1.1.1 2007/04/24 19:35:46 tnn Exp $ */
+#ifndef _PKGSRC_MATH_H_
+#define _PKGSRC_MATH_H_
+#include "/usr/include/math.h"
+#ifdef __hpux
+/* Floatified math functions are not available. */
+#define floorf(x)      ((float)floor (x))
+#define ceilf(x)       ((float)ceil (x))
+#define sinf(x)                ((float)sin (x))
+#define cosf(x)                ((float)cos (x))
+#define tanf(x)                ((float)tan (x))
+#define asinf(x)       ((float)asin (x))
+#define acosf(x)       ((float)acos (x))
+#define atanf(x)       ((float)atan (x))
+#define atan2f(x,y)    ((float)atan2 (x, y))
+#define sqrtf(x)       ((float)sqrt (y))
+#endif /* __hpux */
+#endif /* _PKGSRC_MATH_H_ */
diff -r 6beb460e45ee -r 4df5263f62ac pkgtools/posix_headers/files/stdint.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/posix_headers/files/stdint.h     Tue Apr 24 19:35:46 2007 +0000
@@ -0,0 +1,12 @@
+/* $NetBSD: stdint.h,v 1.1.1.1 2007/04/24 19:35:46 tnn Exp $ */
+#ifndef _PKGSRC_STDINT_H_
+#define _PKGSRC_STDINT_H_
+#ifdef __hpux
+#include <inttypes.h>
+#ifndef UINT_FAST32_MAX
+#define UINT_FAST32_MAX 0xffffffffU
+#endif /* UINT_FAST32_MAX */
+#else
+#error No support for this platform.
+#endif /* __hpux */
+#endif /* _PKGSRC_STDINT_H_ */
diff -r 6beb460e45ee -r 4df5263f62ac pkgtools/posix_headers/files/sys/select.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/posix_headers/files/sys/select.h Tue Apr 24 19:35:46 2007 +0000
@@ -0,0 +1,9 @@
+/* $NetBSD: select.h,v 1.1.1.1 2007/04/24 19:35:46 tnn Exp $ */
+#ifndef _PKGSRC_SYS_SELECT_H_
+#define _PKGSRC_SYS_SELECT_H_
+#ifdef __hpux
+#include <sys/time.h>
+#else
+#error This header file only applies to HP-UX.
+#endif /* __hpux */
+#endif /* _PKGSRC_SYS_SELECT_H_ */



Home | Main Index | Thread Index | Old Index