openbsd-ports/net/unison/Makefile
giovanni 6f255c7f33 Update to 2.48.15
patch versions are on github now so switch to GH_ vars
enable regression tests
Initial diff from Bjorn Ketelaars with some tweaks by me
2017-12-21 15:31:48 +00:00

71 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2017/12/21 15:31:48 giovanni Exp $
COMMENT= multi-platform file synchronization tool
CATEGORIES= net
REV= v3
VER= 2.48.15
GH_ACCOUNT= bcpierce00
GH_PROJECT= unison
GH_TAGNAME= v${VER}${REV}
DISTNAME= ${GH_TAGNAME}
PKGNAME= ${GH_PROJECT}-${VER}
HOMEPAGE= http://www.cis.upenn.edu/~bcpierce/unison/
MAINTAINER= Giovanni Bechis <giovanni@openbsd.org>
# GPLv3
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c curses m pthread util
MODULES= lang/ocaml
USE_GMAKE= Yes
FLAVORS= no_x11
FLAVOR?=
FLAVOR_COMMA= ${FLAVOR_EXT:S/-/,/g}
SUBST_VARS= FLAVOR_COMMA
.if ${FLAVOR:Mno_x11}
MAKE_FLAGS= UISTYLE=text
.else
BUILD_DEPENDS+= x11/lablgtk2
LIB_DEPENDS= x11/gtk+2
MAKE_FLAGS= UISTYLE=gtk2
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
WANTLIB += Xrandr Xrender fontconfig freetype
WANTLIB += gio-2.0 glib-2.0 gobject-2.0 intl pango-1.0
WANTLIB += pangocairo-1.0 pangoft2-1.0 gdk_pixbuf-2.0
WANTLIB += gdk-x11-2.0 gtk-x11-2.0 atk-1.0 cairo z
.endif
TEST_DEPENDS += emacs->=24:editors/emacs
# CFLAGS _must_ be empty. This is an OCaml compiler.
MAKE_FLAGS+= NATIVE=${MODOCAML_NATIVE:S/Yes/true/:S/No/false/} \
OCAMLOPT=ocamlopt.opt \
CFLAGS=
TEST_TARGET= selftest
PORTHOME= ${WRKDIR}
# Avoid multiple all:: entries and use the real target entry.
ALL_TARGET= unison
DOCS= BUGS.txt NEWS README
WRKDIST= ${WRKDIR}/${PKGNAME}${REV}/src
# Avoid the nightmare of their Makefile install target.
# Do not use INSTALL_PROGRAM, as the bytecode version must not be stripped!
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/unison ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/unison
@cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/unison
.include <bsd.port.mk>