PORTNAME=	opencart
PORTVERSION=	4.1.0.3
CATEGORIES=	www misc

MAINTAINER=	wen@FreeBSD.org
COMMENT=	Open source PHP-based online shopping cart system
WWW=		https://www.opencart.com/

LICENSE=	GPLv3

USE_GITHUB=	yes
GH_ACCOUNT=	opencart

USES=		cpe php
USE_PHP=	filter mysqli curl mbstring gd zlib mcrypt session zip
WRKSRC_SUBDIR=	upload

NO_BUILD=	yes
SUB_FILES=	pkg-message

post-patch:
	${MV} ${WRKSRC}/config-dist.php ${WRKSRC}/config.php
	${MV} ${WRKSRC}/admin/config-dist.php ${WRKSRC}/admin/config.php

do-install:
	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}

.include <bsd.port.mk>
