diff options
author | joerg <joerg@pkgsrc.org> | 2005-11-08 16:40:38 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-11-08 16:40:38 +0000 |
commit | e7f63a4688d5ed9b246dfe46ade0b9fdc776b19f (patch) | |
tree | 33fca9b75f0bacc038e69c2f72099a487008f0be /databases/postgresql74-lib/Makefile | |
parent | 179967620fd4edc13422be475c7d1101338cd220 (diff) | |
download | pkgsrc-e7f63a4688d5ed9b246dfe46ade0b9fdc776b19f.tar.gz |
Allow PostgreSQL 7.4 to build on DragonFly. Bump revision of -lib,
since the PLIST changed. Don't define errno manually in contrib/,
depend on errno.h to do so. Explicitly include errno.h in some places.
Diffstat (limited to 'databases/postgresql74-lib/Makefile')
-rw-r--r-- | databases/postgresql74-lib/Makefile | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/databases/postgresql74-lib/Makefile b/databases/postgresql74-lib/Makefile index 11db0e62d35..b9d1fafd61e 100644 --- a/databases/postgresql74-lib/Makefile +++ b/databases/postgresql74-lib/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.19 2005/07/15 18:27:48 jlam Exp $ +# $NetBSD: Makefile,v 1.20 2005/11/08 16:40:39 joerg Exp $ PKGNAME= postgresql74-lib-${BASE_VERS} -PKGREVISION= 1 +PKGREVISION= 2 SVR4_PKGNAME= pstgl COMMENT= PostgreSQL database headers and libraries @@ -25,7 +25,7 @@ BUILD_DIRS+= ${WRKSRC}/src/pl # As told by Josh Berkus .include "../../mk/pthread.buildlink3.mk" .if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native" \ - && ${OPSYS} != "NetBSD" + && ${OPSYS} != "NetBSD" && ${OPSYS} != "DragonFly" CONFIGURE_ARGS+= --enable-thread-safety .endif @@ -44,6 +44,20 @@ post-wrapper: .if (${OPSYS} == "SunOS") ${TOUCH} ${BUILDLINK_DIR}/include/crypt.h .endif + +pre-configure: + ${TOUCH} ${WRKSRC}/src/template/dragonfly + ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.c \ + ${WRKSRC}/src/backend/port/dynloader/dragonfly.c + ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.h \ + ${WRKSRC}/src/backend/port/dynloader/dragonfly.h + ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.h \ + ${WRKSRC}/src/backend/port/dynloader/dragonfly.h + ${CP} ${WRKSRC}/src/include/port/freebsd.h \ + ${WRKSRC}/src/include/port/dragonfly.h + ${CP} ${WRKSRC}/src/makefiles/Makefile.freebsd \ + ${WRKSRC}/src/makefiles/Makefile.dragonfly + do-install: cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ ${MAKE_PROGRAM} -C src/include install |