2002-12-29 10:15:18 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.44 2002/12/29 15:15:18 fgsch Exp $
|
2001-03-24 17:37:58 -05:00
|
|
|
|
|
|
|
COMMENT= "block-sorting file compressor, unencumbered"
|
1997-11-24 14:26:36 -05:00
|
|
|
|
2002-02-03 01:16:09 -05:00
|
|
|
DISTNAME= bzip2-1.0.2
|
1997-11-24 14:26:36 -05:00
|
|
|
CATEGORIES= archivers
|
2002-05-12 17:37:03 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEWARE:=bzip2/v102/}
|
2001-10-08 22:05:29 -04:00
|
|
|
|
2002-02-03 01:16:09 -05:00
|
|
|
HOMEPAGE= http://sources.redhat.com/bzip2/
|
2000-06-24 23:56:58 -04:00
|
|
|
|
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
|
|
|
|
|
2001-10-08 22:05:29 -04:00
|
|
|
BZ2_CFLAGS= -Wall -Winline
|
2001-10-15 10:16:34 -04:00
|
|
|
.if ${MACHINE_ARCH} != "sparc64" && ${MACHINE_ARCH} != "m68k"
|
2001-10-08 22:05:29 -04:00
|
|
|
BZ2_CFLAGS+= -fomit-frame-pointer -fno-strength-reduce
|
|
|
|
.endif
|
|
|
|
|
2002-02-03 01:16:09 -05:00
|
|
|
# XXX GCC optimization bug temporary workaround
|
2002-01-27 15:00:16 -05:00
|
|
|
.if ${MACHINE_ARCH:Msparc64}
|
|
|
|
BZ2_CFLAGS+= -O0
|
|
|
|
.endif
|
|
|
|
|
2001-10-08 22:05:29 -04:00
|
|
|
MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${BZ2_CFLAGS}"
|
2001-04-20 13:35:31 -04:00
|
|
|
FAKE_FLAGS= ${MAKE_FLAGS} PREFIX="${PREFIX}" DESTDIR="${WRKINST}"
|
2001-10-31 11:49:46 -05:00
|
|
|
REGRESS_FLAGS= LD_LIBRARY_PATH="${WRKBUILD}"
|
1997-11-24 14:26:36 -05:00
|
|
|
|
2001-10-31 11:49:46 -05:00
|
|
|
REGRESS_TARGET= test
|
1999-12-28 18:37:32 -05:00
|
|
|
|
2001-09-26 14:38:43 -04:00
|
|
|
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
|
|
|
|
|
1997-11-24 14:26:36 -05:00
|
|
|
.include <bsd.port.mk>
|
2000-09-16 07:44:22 -04:00
|
|
|
|
|
|
|
.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:L} == "yes"
|
2001-04-20 11:09:11 -04:00
|
|
|
MAKE_ENV+= NO_SHARED_LIBS=Yes
|
2000-09-16 07:44:22 -04:00
|
|
|
.endif
|