summaryrefslogtreecommitdiff
path: root/www/apache-roller/Makefile
blob: 8e25da0f2e16269767dd454899998b89fc4fec26 (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
# $NetBSD: Makefile,v 1.1.1.1 2009/02/12 00:26:59 adrianp Exp $
#

DISTNAME=	apache-roller-4.0.1
CATEGORIES=	www
MASTER_SITES=	http://mirror.lividpenguin.com/pub/apache/roller/roller-4/v4.0.1/bin/
EXTRACT_SUFX=	.zip

MAINTAINER=	adrianp@NetBSD.org
HOMEPAGE=	http://roller.apache.org/
COMMENT=	Full-featured, multi-user and group-blog server

USE_JAVA=	run
USE_JAVA2=	1.5

PKG_DESTDIR_SUPPORT=	user-destdir
PLIST_SUBST+=		PKGNAME_NOREV=${PKGNAME_NOREV:Q}

.include "options.mk"

do-build:
	cd ${WRKSRC}/webapp/roller && ${PKG_JAVA_HOME}/bin/jar cvf \
		../${PKGNAME_NOREV}.war *

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/apache-roller
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/apache-roller
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/apache-roller

	${INSTALL_DATA} ${WRKSRC}/docs/roller-*.pdf \
		${DESTDIR}${PREFIX}/share/doc/apache-roller
	${INSTALL_DATA} ${WRKSRC}/*.txt \
		${DESTDIR}${PREFIX}/share/doc/apache-roller
	${INSTALL_DATA} ${WRKSRC}/webapp/${PKGNAME_NOREV}.war \
		${DESTDIR}${PREFIX}/share/apache-roller
	${INSTALL_DATA} ${FILESDIR}/roller-custom.properties \
		${DESTDIR}${PREFIX}/share/examples/apache-roller

.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"