aboutsummaryrefslogtreecommitdiffstats
path: root/www/oscommerce/Makefile
blob: f7d56d3375f29aeb56760715ae3ef7d1ac60c439 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# New ports collection makefile for: osCommerce
#
# Date Created: Dec  5 2003
# Whom:     Travis Campbell <hcoyote@ghostar.org>
#
# $FreeBSD$
#

PORTNAME=   oscommerce
PORTVERSION=    2.2r2
CATEGORIES= www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= tep
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/r/ms/}

MAINTAINER= ports@FreeBSD.org
COMMENT=    An full-featured open source e-commerce system

USE_PHP=    mysql session pcre
WANT_PHP_WEB=   yes
NO_BUILD=   yes
OSCOMMERCE= ${PREFIX}/www/data/oscommerce
PKGMESSAGE= ${WRKDIR}/pkg-message

do-install:
    ${MKDIR} ${OSCOMMERCE}
    ${CP} -R ${WRKSRC}/catalog ${OSCOMMERCE}
    ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${OSCOMMERCE}
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/FAQ ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/STANDARD ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/tep_database-pr2.2-CVS.pdf ${DOCSDIR}
.endif

post-install:
    @${SED} -e 's#%%OSCOMMERCE%%#${OSCOMMERCE}#g' pkg-message > ${PKGMESSAGE}
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>