openbsd-ports/archivers/bzip2/Makefile

46 lines
1.2 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.38 2001/10/09 02:05:29 brad Exp $
COMMENT= "block-sorting file compressor, unencumbered"
1997-11-24 14:26:36 -05:00
DISTNAME= bzip2-1.0.1
1997-11-24 14:26:36 -05:00
CATEGORIES= archivers
NEED_VERSION= 1.460
MASTER_SITES= ${MASTER_SITE_SOURCEWARE}
MASTER_SITE_SUBDIR= bzip2/v100
HOMEPAGE= http://sourceware.cygnus.com/bzip2/
2000-09-23 21:23:42 -04:00
MAINTAINER= Brad Smith <brad@openbsd.org>
1997-11-24 14:26:36 -05:00
2000-03-05 03:28:32 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
BZ2_CFLAGS= -Wall -Winline
.if ${MACHINE_ARCH} != "sparc64"
BZ2_CFLAGS+= -fomit-frame-pointer -fno-strength-reduce
.endif
MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${BZ2_CFLAGS}"
2001-04-20 13:35:31 -04:00
FAKE_FLAGS= ${MAKE_FLAGS} PREFIX="${PREFIX}" DESTDIR="${WRKINST}"
1997-11-24 14:26:36 -05:00
test: build
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} \
LD_LIBRARY_PATH="${WRKBUILD}" ${MAKE} ${MAKE_FLAGS} -f \
${MAKE_FILE} test
post-install:
@cd ${WRKBUILD} && makeinfo --no-split manual.texi
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bzip2
${INSTALL_DATA} ${WRKBUILD}/*.html ${PREFIX}/share/doc/bzip2
${INSTALL_DATA} ${WRKBUILD}/bzip2.info ${PREFIX}/info
REGRESS_TARGET=test
1997-11-24 14:26:36 -05:00
.include <bsd.port.mk>
.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:L} == "yes"
2001-04-20 11:09:11 -04:00
MAKE_ENV+= NO_SHARED_LIBS=Yes
.endif