34 lines
949 B
Makefile
34 lines
949 B
Makefile
# $NetBSD: Makefile,v 1.5 2019/12/09 14:20:56 taca Exp $
|
|
|
|
DISTNAME= mod_upload-0.8
|
|
PKGNAME= ${APACHE_PKG_PREFIX}-${DISTNAME:S/mod_//}
|
|
PKGREVISION= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= https://ftp.espci.fr/pub/mod_upload/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://ftp.espci.fr/pub/mod_upload/
|
|
COMMENT= High performance file upload helper for PHP
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
APACHE_MODULE_NAME= ${DISTNAME:C/-.*//}.la
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --with-apxs=${APXS}
|
|
CONFIGURE_ARGS+= --with-php-config=${BUILDLINK_PREFIX.php}/bin/php-config
|
|
USE_LIBTOOL= yes
|
|
|
|
DOC_DIR= share/doc/${DISTNAME:C/-.*//}
|
|
INSTALLATION_DIRS+= lib/httpd ${DOC_DIR}
|
|
PLIST_SUBST+= DOC_DIR=${DOC_DIR}
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${MAKE}
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/${DOC_DIR}
|
|
|
|
.include "../../lang/php/phpversion.mk"
|
|
.include "${PHPPKGSRCDIR}/buildlink3.mk"
|
|
.include "../../mk/apache.module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|