1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/www/geneweb/Makefile
Carlo Strub e17f5d1157 - Update to 6.07
- Support staging

PR:		ports/189848
Submitted by:	Alex Stangl <alex@stangl.us> (maintainer)
2014-05-16 21:16:50 +00:00

48 lines
1.3 KiB
Makefile

# Created by: Hubert Tournier <hubert@frbsd.org>
# $FreeBSD$
PORTNAME= geneweb
PORTVERSION= 6.07
CATEGORIES= www
MASTER_SITES= http://opensource.geneanet.org/attachments/download/240/
DISTNAME= gw-${PORTVERSION}-src
EXTRACT_SUFX= .tgz
MAINTAINER= alex@stangl.us
COMMENT= Advanced genealogy software
LICENSE= GPLv2
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
camlp5:${PORTSDIR}/devel/ocaml-camlp5
HAS_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= GTK2
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGTK2}
BUILD_DEPENDS+= ocaml-lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
MAKE_ENV+= ENABLE_GUI=yes
PLIST_SUB+= GUI=""
.else
PLIST_SUB+= GUI="@comment "
.endif
MAKE_ENV+= STAGEDIR=${STAGEDIR}
SUB_FILES+= pkg-message
USE_RC_SUBR= gwd
post-install:
(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} distrib)
@${INSTALL_DATA} ${WRKSRC}/etc/a.gwf ${STAGEDIR}${PREFIX}/share/geneweb
@${MKDIR} ${STAGEDIR}${PREFIX}/share/geneweb/distribution
@${CP} -a ${WRKSRC}/distribution ${STAGEDIR}${PREFIX}/share/geneweb/
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gwc1
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/share/geneweb/distribution/gw/gwc1
@${INSTALL_SCRIPT} ${FILESDIR}/install.sh ${STAGEDIR}${PREFIX}/share/geneweb
.include <bsd.port.mk>