openbsd-ports/www/community-id/Makefile

54 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2010/09/06 14:56:28 ajacoutot Exp $
COMMENT= PHP OpenID implementation
V= 1.2.1
BASE_URL= http://source.keyboard-monkeys.org
DISTNAME= cid-${V}
PKGNAME= community-id-${V}
REVISION= 1
CATEGORIES= www security
HOMEPAGE= ${BASE_URL}/projects/show/communityid
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${BASE_URL}/attachments/download/110/
# php5-gd-*-!no_x11 because we need freetype support
RUN_DEPENDS= :php5-gd-*-!no_x11:www/php5/extensions,-gd \
:php5-gmp-*:www/php5/extensions,-gmp \
:php5-mysqli-*:www/php5/extensions,-mysqli
WRKDIST= ${WRKDIR}/communityid
NO_BUILD= Yes
NO_REGRESS= Yes
PKG_ARCH= *
PREFIX= /var/www
INSTDIR= ${PREFIX}/communityid
SUBST_VARS= INSTDIR BASE_URL
post-extract:
${SUBST_CMD} -c ${FILESDIR}/README.OpenBSD \
${WRKSRC}/README.OpenBSD
do-install:
cp -Rp ${WRKBUILD} ${INSTDIR}
chown -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
find ${INSTDIR} -type f -name \*.orig | xargs rm
${INSTALL_DATA} ${FILESDIR}/communityid.conf \
${INSTDIR}/communityid.conf.dist
.include <bsd.port.mk>