diff options
author | rillig <rillig@pkgsrc.org> | 2007-02-15 15:45:07 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-02-15 15:45:07 +0000 |
commit | 504bf49f960d6318b82dcfc0080c64a1ce000925 (patch) | |
tree | b6579604ea625d87d8527b82d18a5a4ea2f0a337 /databases/odbc-postgresql | |
parent | f26312d775b76e8445451e1a72c41c448629844b (diff) | |
download | pkgsrc-504bf49f960d6318b82dcfc0080c64a1ce000925.tar.gz |
Made the code a bit shorter.
Diffstat (limited to 'databases/odbc-postgresql')
-rw-r--r-- | databases/odbc-postgresql/Makefile | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/databases/odbc-postgresql/Makefile b/databases/odbc-postgresql/Makefile index 0c916846b38..13c41e87d05 100644 --- a/databases/odbc-postgresql/Makefile +++ b/databases/odbc-postgresql/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2006/02/05 23:08:32 joerg Exp $ +# $NetBSD: Makefile,v 1.12 2007/02/15 15:45:07 rillig Exp $ .include "Makefile.common" @@ -9,25 +9,18 @@ COMMENT= ODBC interface to PostgreSQL CONFIGURE_ARGS+= --with-odbcinst=${PKG_SYSCONFDIR:Q} post-extract: - if [ -d ${WRKSRC}/src/backend/port/dynloader ]; then \ - ${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; \ - fi - if [ -d ${WRKSRC}/src/template ]; then \ - ${TOUCH} ${WRKSRC}/src/template/dragonfly; \ - fi - if [ -d ${WRKSRC}/src/include/port ]; then \ - ${CP} ${WRKSRC}/src/include/port/freebsd.h \ - ${WRKSRC}/src/include/port/dragonfly.h; \ - fi - if [ -d ${WRKSRC}/src/makefiles ]; then \ - ${CP} ${WRKSRC}/src/makefiles/Makefile.freebsd \ - ${WRKSRC}/src/makefiles/Makefile.dragonfly; \ - fi - + set -e; \ + cd ${WRKSRC}; \ + [ ! -d src/backend/port/dynloader ] || ( \ + cd src/backend/port/dynloader; \ + cp freebsd.c dragonfly.c; \ + cp freebsd.h dragonfly.h; \ + ); \ + [ ! -d src/template ] \ + || touch src/template/dragonfly; \ + [ ! -d src/include/port ] \ + || cp src/include/port/freebsd.h src/include/port/dragonfly.h; \ + [ ! -d src/makefiles ] \ + || cp src/makefiles/Makefile.freebsd src/makefiles/Makefile.dragonfly .include "../../mk/bsd.pkg.mk" |