diff options
author | tnn <tnn> | 2007-04-24 19:35:46 +0000 |
---|---|---|
committer | tnn <tnn> | 2007-04-24 19:35:46 +0000 |
commit | b1a19491223a55f1c0ddce5856a10627e436dbe0 (patch) | |
tree | ccb087e1706672a52118255a175eea34a293cb9a /pkgtools | |
parent | 397aef921b4ee47b078a576839aecd92cf09a8d4 (diff) | |
download | pkgsrc-b1a19491223a55f1c0ddce5856a10627e436dbe0.tar.gz |
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 (limited to 'pkgtools')
-rw-r--r-- | pkgtools/posix_headers/DESCR | 6 | ||||
-rw-r--r-- | pkgtools/posix_headers/Makefile | 32 | ||||
-rw-r--r-- | pkgtools/posix_headers/buildlink3.mk | 22 | ||||
-rw-r--r-- | pkgtools/posix_headers/files/math.h | 18 | ||||
-rw-r--r-- | pkgtools/posix_headers/files/stdint.h | 12 | ||||
-rw-r--r-- | pkgtools/posix_headers/files/sys/select.h | 9 |
6 files changed, 99 insertions, 0 deletions
diff --git a/pkgtools/posix_headers/DESCR b/pkgtools/posix_headers/DESCR new file mode 100644 index 00000000000..599f16cc26f --- /dev/null +++ b/pkgtools/posix_headers/DESCR @@ -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 --git a/pkgtools/posix_headers/Makefile b/pkgtools/posix_headers/Makefile new file mode 100644 index 00000000000..551721f7038 --- /dev/null +++ b/pkgtools/posix_headers/Makefile @@ -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 +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 --git a/pkgtools/posix_headers/buildlink3.mk b/pkgtools/posix_headers/buildlink3.mk new file mode 100644 index 00000000000..faaef8b1d05 --- /dev/null +++ b/pkgtools/posix_headers/buildlink3.mk @@ -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 --git a/pkgtools/posix_headers/files/math.h b/pkgtools/posix_headers/files/math.h new file mode 100644 index 00000000000..eaf0195d08c --- /dev/null +++ b/pkgtools/posix_headers/files/math.h @@ -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 --git a/pkgtools/posix_headers/files/stdint.h b/pkgtools/posix_headers/files/stdint.h new file mode 100644 index 00000000000..e8f893ee2f8 --- /dev/null +++ b/pkgtools/posix_headers/files/stdint.h @@ -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 --git a/pkgtools/posix_headers/files/sys/select.h b/pkgtools/posix_headers/files/sys/select.h new file mode 100644 index 00000000000..b978f381abd --- /dev/null +++ b/pkgtools/posix_headers/files/sys/select.h @@ -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_ */ |