openbsd-ports/lang/php/php.port.mk
2010-11-17 08:05:12 +00:00

26 lines
783 B
Makefile

# $OpenBSD: php.port.mk,v 1.3 2010/11/17 08:05:18 espie Exp $
SHARED_ONLY= Yes
CATEGORIES+= lang/php
MODPHP_VERSION?= 5.2
.if ${MODPHP_VERSION} == 5.2
MODPHP_VSPEC = >=${MODPHP_VERSION},<5.3
.else if ${MODPHP_VERSION} == 5.3
MODPHP_VSPEC = >=${MODPHP_VERSION},<5.4
.endif
MODPHPSPEC = php-${MODPHP_VSPEC}
MODPHP_RUN_DEPENDS= ${MODPHPSPEC}:lang/php/${MODPHP_VERSION}
MODPHP_LIB_DEPENDS= ${MODPHPSPEC}:lang/php/${MODPHP_VERSION}
MODPHP_WANTLIB = php${MODPHP_VERSION}
_MODPHP_BUILD_DEPENDS= ${MODPHPSPEC}:lang/php/${MODPHP_VERSION}
BUILD_DEPENDS+= ${_MODPHP_BUILD_DEPENDS}
RUN_DEPENDS+= ${MODPHP_RUN_DEPENDS}
MODPHP_BIN= ${LOCALBASE}/bin/php-${MODPHP_VERSION}
MODPHP_INCDIR= ${LOCALBASE}/include/php-${MODPHP_VERSION}
MODPHP_LIBDIR= ${LOCALBASE}/lib/php-${MODPHP_VERSION}