openbsd-ports/devel/opencm/Makefile
todd e2e50ffba9 update to alpha18pl1
WARNING:  Anyone using OpenCM must realize that with this update, you will
          no longer be able to talk to older repositories.  The repository
          itself upgrades fine, just the wire protocol changed incompatibly.

Recap: alpha18pl1 and beyond will not talk to alpha17 and below, and
       vica versa.
2002-10-23 15:35:54 +00:00

66 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.8 2002/10/23 15:35:54 todd Exp $
COMMENT= "OpenCM change management system"
COMMENT-docs= "OpenCM Documentation"
V= 0.1.0alpha18pl1
sV= -1
DISTNAME= opencm-${V}${sV}-src
PKGNAME= opencm-${V}
FULLPKGNAME= opencm-${V}
FULLPKGNAME-docs= opencm-docs-${V}
CATEGORIES= devel
HOMEPAGE= http://www.opencm.org
MAINTAINER= Todd T. Fries <todd@openbsd.org>
# BSD/(GPL for diff3)
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
# where the source files and patches can be fetched
#
MASTER_SITES= http://www.opencm.org/releases/
EXTRACT_SUFX= .tgz
BUILD_DEPENDS= gc.1:boehm-gc->=6.0:devel/boehm-gc
LIB_DEPENDS= gc.1::devel/boehm-gc
USE_GMAKE= Yes
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -lz -lgc" \
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include"
FLAVORS=docs
FLAVOR?=
MULTI_PACKAGES=
.if ${FLAVOR:L:Mdocs}
BUILD_DEPENDS+= :teTeX_base-1.0.*:print/teTeX/base
MULTI_PACKAGES+= -docs
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/opencm
${INSTALL_DATA} ${WRKSRC}/doc/opencm.html ${PREFIX}/share/doc/opencm
${INSTALL_DATA} ${WRKSRC}/doc/opencm.ps ${PREFIX}/share/doc/opencm
.else
MAKE_FLAGS+= TEXI2DVI=: DVIPS=:
FAKE_FLAGS+= TEXI2DVI=: DVIPS=:
.endif
MAKE_FLAGS+= LIBZ= LIBGC= USOURCE_SUBDIRS="libgdiff src"
FAKE_FLAGS+= LIBZ= LIBGC= USOURCE_SUBDIRS="libgdiff src"
PLIST= ${PKGDIR}/PLIST${SUBPACKAGE}
WRKDIST= ${WRKDIR}/${PKGNAME}
WRKSRC= ${WRKDIST}/base
.include <bsd.port.mk>