head	1.3;
access;
symbols
	pkgsrc-2026Q2:1.2.0.4
	pkgsrc-2026Q2-base:1.2
	pkgsrc-2026Q1:1.2.0.2
	pkgsrc-2026Q1-base:1.2;
locks; strict;
comment	@# @;


1.3
date	2026.09.02.19.03.13;	author wiz;	state Exp;
branches;
next	1.2;
commitid	vXszxoxOqka005UG;

1.2
date	2026.01.10.09.10.48;	author taca;	state Exp;
branches;
next	1.1;
commitid	78WC1vl3Zpi3iPpG;

1.1
date	2026.01.08.13.38.00;	author taca;	state Exp;
branches;
next	;
commitid	h0n1I71fiLUQPApG;


desc
@@


1.3
log
@*: recursive bump for pcre2 10.48
@
text
@# $NetBSD: Makefile,v 1.2 2026/01/10 09:10:48 taca Exp $

#
# We can't omit PKGNAME here to handle PKG_OPTIONS.
#
PKGNAME=		${PHP_PKG_PREFIX}-${PHP_VERSION}
PKGREVISION=		1
CATEGORIES=		lang

COMMENT=		PHP Hypertext Preprocessor version 8.5
LICENSE=		php

TEST_TARGET=		test

USE_TOOLS+=		autoconf gmake lex
LIBTOOL_OVERRIDE=	# empty

PHP_VERSIONS_ACCEPTED=	85

.include "Makefile.php"

CGIDIR=			${PREFIX}/libexec/cgi-bin

CONFIGURE_ENV+=		lt_cv_path_SED=${SED:Q}
MAKE_ENV+=		INSTALL_ROOT=${DESTDIR}

CONF_FILES=		${PHP_EGDIR}/php.ini-production ${PKG_SYSCONFDIR}/php.ini
PLIST_SUBST+=		PHPEXTDIR="${PHP_EXTENSION_DIR}"

# taken from devel/pkgconf/Makefile
PKGCONFIG_PATHS=	${PREFIX}/lib/pkgconfig
PKGCONFIG_PATHS+=	${PREFIX}/share/pkgconfig
PKGCONFIG_PATHS+=	/usr/lib/pkgconfig

# At this point, PREFIX is not set yet.
.if ${LOCALBASE} != ${X11BASE}
PKGCONFIG_PATHS+=	${X11BASE}/lib/pkgconfig
.endif

PHP_PKGCONFIG_PATH=	${PKGCONFIG_PATHS:ts:}
SUBST_FILES.path+=	${WRKDIR}/${PHP_PKGSRC_README:T}

REPLACE_PHP=		ext/phar/phar/phar.php run-tests.php

INSTALLATION_DIRS+=	${CGIDIR} ${PHP_EXTENSION_DIR} ${PHP_EGDIR} \
			${PHP_SHAREDIR}

PHP_PKGSRC_README=	../../lang/php/files/README.pkgsrc

# Make sure modules can link correctly
.if ${OPSYS} == "Darwin"
INSTALL_UNSTRIPPED=	yes
.endif

# Darwin < 9 (Mac OS X < 10.5 "Leopard") doesn't have gethostuuid(2)
# and lacks the zone memory allocator
.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
CFLAGS+=	-DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WITHOUT_ZONEMALLOC
.endif

post-patch:
	${CP} ${.CURDIR}/${PHP_PKGSRC_README} ${WRKDIR}/${PHP_PKGSRC_README:T}

pre-configure:
	cd ${WRKSRC} && ${PKGSRC_SETENV} ${CONFIGURE_ENV} autoconf -f

post-install:
	cd ${WRKSRC}; ${INSTALL_DATA} php.ini-development php.ini-production \
		${DESTDIR}${PREFIX}/${PHP_EGDIR}
	${INSTALL_DATA} ${WRKDIR}/${PHP_PKGSRC_README:T} \
		${DESTDIR}${PREFIX}/${PHP_SHAREDIR}

.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"
@


1.2
log
@lang/php5: fix build problem of php85-fpm

Move PHP_PKGSRC_README from Makefile.php to Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2026/01/08 13:38:00 taca Exp $
d7 1
@


1.1
log
@lang/php: add package version 8.5.1

PHP is a widely-used open source general-purpose scripting language
that is especially suited for web development and can be embedded
into HTML.  It is modular, and object-oriented.  Much of its syntax
is borrowed from C, Java and Perl with a couple of unique PHP-specific
features thrown in.  The language is designed to allow web developers
to write dynamically generated pages quickly.

PHP 8.5 comes with numerous improvements and new features such as

* Built-in URI Extension to parse, normalize and handle URL.
* Pipe Operator |> enables chaining callables and passing values.
* Clone objects and update properties with the new clone() syntax.
* A new attribute #[\NoDiscard] for a function.
* Static closures and first-class-callables in constatnt expressisons.
* cURL shared handles support.
* array_first() and array_last() functions are added to array.
* And much much more...
@
text
@d1 1
a1 1
# $NetBSD$
d40 1
d47 2
@

