openbsd-ports/databases/gnats/Makefile
heko 8bd6e5fe30 o Modify gnats port to use new MASTER_SITE_SOURCEWARE macro
o Bump NEED_VERSION
brad@ ok, no reply from maintainer
2001-08-26 21:48:32 +00:00

46 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.5 2001/08/26 21:48:32 heko Exp $
COMMENT= "GNU Problem Report Management System"
DISTNAME= gnats-3.113
CATEGORIES= databases devel
MASTER_SITES= ${MASTER_SITE_SOURCEWARE}
MASTER_SITE_SUBDIR=gnats/snapshots
HOMEPAGE= http://sources.redhat.com/gnats/
MAINTAINER= Dug Song <dugsong@monkey.org>
NEED_VERSION= 1.444
FLAVORS= www
FLAVOR?=
.if ${FLAVOR:L:Mwww}
RUN_DEPENDS+= ${PREFIX}/libdata/perl5/site_perl/${ARCH}-openbsd/MIME/Base64.pm::converters/p5-MIME-Base64
.endif
# GPL
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
CONFIGURE_STYLE= gnu dest
CONFIGURE_ARGS+=--with-full-gnats --with-release-based
CONFIGURE_ENV+= SEND_PR=/usr/bin/false
INSTALL_TARGET= install-gnats install-send-pr install-info
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gnats/
sed "s%y0y0y0%${TRUEPREFIX}%g" ${FILESDIR}/README.OpenBSD > \
${PREFIX}/share/doc/gnats/README.OpenBSD
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnats/
sed "s%/var/lib%${TRUEPREFIX}/share%g" \
${WRKDIST}/gnats/gnats-db.conf > \
${PREFIX}/share/examples/gnats/gnats-db.conf
.if ${FLAVOR:L:Mwww}
${INSTALL_PROGRAM} ${WRKDIST}/contrib/gnatsweb/gnatsweb.pl \
${PREFIX}/lib/gnatsweb
.endif
.include <bsd.port.mk>