pkgsrc-wip/heirloom/Makefile
2006-07-20 15:00:23 +00:00

64 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2006/07/20 15:00:24 cheusov Exp $
.include "Makefile.common"
CATEGORIES= sysutils
MAINTAINER= cheusov@tut.by
COMMENT= Collection of standard Unix utilities
USE_TOOLS+= yacc lex
# should be partially ported to Interix
NOT_FOR_PLATFORM= Interix-*-*
.include "../../mk/bsd.prefs.mk"
CFLAGS.Linux+= -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64L
LDFLAGS.NetBSD+= -lkvm
LDFLAGS.FreeBSD+= -lkvm
LDFLAGS.OpenBSD+= -lkvm
LDFLAGS.DragonFly+= -lkvm
LCRYPT= -lcrypt
.if ${OPSYS} == "OpenBSD"
LCRYPT=
.endif
LCURS=-lcurses
.if ${OPSYS} == "NetBSD"
CFLAGS+= -DUSE_TERMCAP
LCURS= -ltermcap
.endif
LDFLAGS+= -lz -lbz2
do-build:
cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} LCRYPT=${LCRYPT:Q} LCURS=${LCURS:Q} DESTDIR=${PREFIX:Q} -f makefile
do-install:
cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} LCRYPT=${LCRYPT:Q} LCURS=${LCURS:Q} DESTDIR=${PREFIX:Q} install
DOC_FILES= COPYING COPYING.LGPL \
LICENSE LUCENT \
OPENSOLARIS.LICENSE README
DOC_DIR= ${PREFIX}/share/doc/${PKGBASE}
post-install:
${INSTALL_DATA_DIR} ${DOC_DIR} && \
${INSTALL_DATA_DIR} ${DOC_DIR}/LICENSE && \
${INSTALL_DATA} ${WRKSRC}/README ${DOC_DIR} && \
for i in ${DOC_FILES}; do \
${INSTALL_DATA} ${WRKSRC}/LICENSE/"$${i}" \
${DOC_DIR}/LICENSE || exit 1; \
done
.include "../../devel/zlib/buildlink3.mk"
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"