54718a4db7
Use BUILDLINK_INCDIR, BUILDLINK_LIBDIR for locations of linked headers and libraries. Create a variable BUILDLINK_TARGETS whose value is the list of build-link targets to execute.
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.4 2001/05/24 08:53:55 jlam Exp $
|
|
|
|
.include "../../databases/postgresql/Makefile.common"
|
|
.include "../../databases/postgresql/Makefile.ssl"
|
|
.include "../../devel/libgetopt/buildlink.mk"
|
|
.include "../../devel/readline/buildlink.mk"
|
|
|
|
PKGNAME= postgresql-client-${PG_VERS}
|
|
PG_PKG_VERS= # empty
|
|
COMMENT= PostgreSQL database client programs
|
|
|
|
DEPENDS+= postgresql-lib>=${PG_BASE_VERS}:../../databases/postgresql-lib
|
|
|
|
MAKE_ENV+= INSTALLED_LIBPQ=1
|
|
CONFIGURE_ARGS+= --enable-readline
|
|
|
|
DIRS_TO_BUILD= src/bin
|
|
|
|
pre-configure: ${BUILDLINK_TARGETS}
|
|
|
|
pre-build:
|
|
cd ${WRKSRC}/src/bin/psql && \
|
|
${RM} -f pqsignal.h && \
|
|
${LN} -sf ../../interfaces/libpq/pqsignal.h pqsignal.h
|
|
|
|
do-build:
|
|
.for DIR in ${DIRS_TO_BUILD}
|
|
cd ${WRKSRC}/${DIR} && ${SETENV} ${MAKE_ENV} \
|
|
${MAKE_PROGRAM} ${ALL_TARGET}
|
|
.endfor
|
|
|
|
do-install:
|
|
.for DIR in ${DIRS_TO_BUILD}
|
|
cd ${WRKSRC}/${DIR} && ${SETENV} ${MAKE_ENV} \
|
|
${MAKE_PROGRAM} ${INSTALL_TARGET}
|
|
.endfor
|
|
|
|
post-install:
|
|
${SED} -e "s|^#.*||" ${FILESDIR}/exclude \
|
|
| ${GTAR} zxCXf ${PREFIX}/man - ${WRKSRC}/doc/man.tar.gz
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|