openbsd-ports/archivers/bzip2/Makefile

40 lines
982 B
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.60 2011/12/18 09:01:19 ajacoutot Exp $
2007-09-15 06:14:32 -04:00
COMMENT= block-sorting file compressor, unencumbered
1997-11-24 14:26:36 -05:00
VERSION= 1.0.6
DISTNAME= bzip2-${VERSION}
1997-11-24 14:26:36 -05:00
CATEGORIES= archivers
MASTER_SITES= ${HOMEPAGE}${VERSION}/
SHARED_LIBS= bz2 10.4
HOMEPAGE= http://www.bzip.org/
2003-05-23 21:01:24 -04:00
# BSD
2000-03-05 03:28:32 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c
2000-03-05 03:28:32 -05:00
BZ2_CFLAGS= -Wall -Winline
.if ${MACHINE_ARCH} != "m68k"
BZ2_CFLAGS+= -fomit-frame-pointer -fno-strength-reduce
.endif
MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${BZ2_CFLAGS}" \
LIBbz2_VERSION=${LIBbz2_VERSION} PREFIX=${TRUEPREFIX}
REGRESS_FLAGS= LD_LIBRARY_PATH="${WRKBUILD}" LIBbz2_VERSION=${LIBbz2_VERSION}
1997-11-24 14:26:36 -05:00
2001-10-31 11:49:46 -05:00
REGRESS_TARGET= test
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bzip2
${INSTALL_DATA} ${WRKBUILD}/manual.html ${PREFIX}/share/doc/bzip2
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