freebsd-ports/databases/php-adodb-ext/Makefile
Gabor Kovesdan 67881bec31 - Fix build for newer PHP versions by making PHP 5.2-specific patch optional
PR:		ports/159125
Submitted by:	Michael Scheidell <scheidell@secnap.net>
Approved by:	Joe Horn <joehorn@gmail.com> (maintainer)
2011-08-08 11:04:45 +00:00

41 lines
842 B
Makefile

# New ports collection makefile for: php-adodb-ext
# Date created: 29 July 2008
# Whom: JoeHorn <joehorn@gmail.com>
#
# $FreeBSD$
#
PORTNAME= adodb-ext
PORTVERSION= 5.04
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://phplens.com/lens/dl/
PKGNAMEPREFIX= php-
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//}
MAINTAINER= joehorn@gmail.com
COMMENT= ADOdb Extension
WRKSRC= ${WRKDIR}/adodb-${PORTVERSION:S/.//}
USE_PHP= yes
USE_PHPIZE= yes
USE_ZIP= yes
DEFAULT_PHP_VER= 5
CONFIGURE_ARGS= --with-php-config=${PREFIX}/bin/php-config \
--prefix=${PREFIX}/lib/php/${PHP_EXT_DIR}
SUB_FILES= pkg-message
PLIST_SUB= PHP_EXT_DIR=${PHP_EXT_DIR}
USE_DOS2UNIX= yes
.include <bsd.port.pre.mk>
.if ${PHP_VER} != "52"
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-adodb.c
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>