2008-12-03 18:44:44 -05:00
|
|
|
# $OpenBSD: Makefile.inc,v 1.7 2008/12/03 23:44:44 sthen Exp $
|
2005-05-22 13:44:40 -04:00
|
|
|
|
2008-02-13 18:13:27 -05:00
|
|
|
DISTNAME= unison-$V
|
2005-05-22 13:44:40 -04:00
|
|
|
CATEGORIES= net
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.cis.upenn.edu/~bcpierce/unison/
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
WANTLIB= c m util
|
|
|
|
|
|
|
|
MODULES= lang/ocaml
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
|
|
|
FLAVORS= no_x11
|
|
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
|
|
MAKE_FLAGS= UISTYLE=text
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= ::x11/lablgtk
|
2006-08-03 19:55:10 -04:00
|
|
|
LIB_DEPENDS= gtk.>=1.2,gdk.>=1.2::x11/gtk+
|
2005-05-22 13:44:40 -04:00
|
|
|
MAKE_FLAGS= UISTYLE=gtk
|
|
|
|
USE_X11= Yes
|
|
|
|
WANTLIB+= X11 Xext Xi glib gmodule iconv intl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# CFLAGS _must_ be empty. This is an OCaml compiler.
|
|
|
|
MAKE_FLAGS+= NATIVE=${MODOCAML_NATIVE:S/Yes/true/:S/No/false/} \
|
|
|
|
OCAMLOPT=ocamlopt.opt \
|
|
|
|
CFLAGS=
|
|
|
|
|
|
|
|
# We are still not sure whether ocaml works -with-pthreads on all
|
|
|
|
# architectures. For now keep it at default false.
|
|
|
|
# MAKE_FLAGS+= THREADS=true
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2006-06-17 15:14:42 -04:00
|
|
|
# Avoid multiple all:: entries and use the real target entry.
|
|
|
|
ALL_TARGET= unison
|
2005-05-22 13:44:40 -04:00
|
|
|
|
|
|
|
DOCS= BUGS.txt NEWS README
|
|
|
|
|
|
|
|
# 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
|