summaryrefslogtreecommitdiff
path: root/www/opengoo/Makefile
blob: 52583c82627d06f0064140d014434f7ea9e2f0dd (plain)
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
45
46
47
48
49
50
51
52
53
54
# $NetBSD: Makefile,v 1.1.1.1 2009/06/14 04:51:35 taca Exp $
#

DISTNAME=	opengoo_${VER}
PKGNAME=	opengoo-${VER}
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=opengoo/}
EXTRACT_SUFX=	.zip

MAINTAINER=	taca@NetBSD.org
HOMEPAGE=	http://www.opengoo.org/
COMMENT=	Easy to use Open Source Web Office
LICENSE=	gnu-gpl-v3

#DEPENDS+=	${PHP_PKG_PREFIX}-gd>=5.1.0:../../graphics/php-gd
DEPENDS+=	${PHP_PKG_PREFIX}-mysql>=5.1.0:../../databases/php-mysql

PKG_DESTDIR_SUPPORT=	user-destdir
VER=		1.4.1

WRKSRC=		${WRKDIR}/opengoo
USE_TOOLS=	pax
NO_BUILD=	yes

OWN_DIRS_PERMS+= ${OG_DIR}/public/files ${BINOWN} ${APACHE_GROUP} 0775
OWN_DIRS_PERMS+= ${OG_DIR}/upload ${BINOWN} ${APACHE_GROUP} 0770
OWN_DIRS_PERMS+= ${OG_DIR}/cache ${BINOWN} ${APACHE_GROUP} 0770
OWN_DIRS_PERMS+= ${OG_DIR}/tmp ${BINOWN} ${APACHE_GROUP} 0770
OWN_DIRS_PERMS+= ${OG_DIR}/config ${BINOWN} ${APACHE_GROUP} 0770
MAKE_DIRS_PERMS+= ${OG_DIR}/tmp/saveatt ${BINOWN} ${APACHE_GROUP} 0770

BUILD_DEFS+=	APACHE_GROUP
FILES_SUBST+=	OG_DIR=${OG_DIR}
PLIST_SUBST+=	OG_DIR=${OG_DIR}

.include "../../mk/bsd.prefs.mk"

OG_DIR?=	share/opengoo

post-extract:
	cd ${WRKSRC}; ${FIND} . -type f -exec ${CHMOD} -x {} \;

pre-install:
	cd ${WRKSRC}; ${RM} -f .buildpath .project \
		application/views/files/.cvsignore \
		environment/classes/.cvsignore \
		config/empty.config.php

do-install:
	cd ${WRKSRC}; ${FIND} . -type f -print | \
		pax -rw ${DESTDIR}${PREFIX}/${OG_DIR}

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