2005-08-03 14:42:13 +02:00
|
|
|
# $NetBSD: Makefile,v 1.27 2005/08/03 12:42:13 tonio Exp $
|
2001-01-11 02:45:36 +01:00
|
|
|
|
2005-08-03 14:42:13 +02:00
|
|
|
DISTNAME= unison-2.12.0
|
2001-01-11 02:45:36 +01:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://www.cis.upenn.edu/~bcpierce/unison/download/stable/latest/
|
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2001-01-11 02:45:36 +01:00
|
|
|
HOMEPAGE= http://www.cis.upenn.edu/~bcpierce/unison/
|
2003-07-21 19:10:16 +02:00
|
|
|
COMMENT= File-synchronization tool
|
2001-01-11 02:45:36 +01:00
|
|
|
|
2004-01-05 12:28:07 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2001-01-11 02:45:36 +01:00
|
|
|
|
2003-06-18 11:22:14 +02:00
|
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
2005-04-24 14:48:43 +02:00
|
|
|
BUILDLINK_DEPENDS.ocaml+= ocaml>=3.08.2
|
2001-01-11 02:45:36 +01:00
|
|
|
|
|
|
|
# docs: unison-manual.pdf/html/ps/dvi
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2001-02-03 10:07:21 +01:00
|
|
|
MAKE_FLAGS+= CFLAGS="" UISTYLE=text
|
2002-06-16 00:11:24 +02:00
|
|
|
MAKE_ENV+= HOME=${WRKDIR}
|
2001-02-03 10:07:21 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2003-06-30 01:52:03 +02:00
|
|
|
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || (${MACHINE_ARCH} == "sparc")
|
|
|
|
MAKE_FLAGS+= NATIVE=true
|
|
|
|
.else
|
2001-02-03 10:07:21 +01:00
|
|
|
MAKE_FLAGS+= NATIVE=false
|
|
|
|
.endif
|
2001-01-11 02:45:36 +01:00
|
|
|
|
2004-01-05 12:28:07 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2003-06-30 01:52:03 +02:00
|
|
|
|
|
|
|
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} != "none")
|
|
|
|
MAKE_FLAGS+= THREADS=true
|
|
|
|
.endif
|
|
|
|
|
2004-01-05 12:28:07 +01:00
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
2005-04-24 14:48:43 +02:00
|
|
|
SUBST_CLASSES= x11
|
|
|
|
SUBST_STAGE.x11= post-patch
|
|
|
|
SUBST_FILES.x11= Makefile.OCaml
|
|
|
|
SUBST_SED.x11= -e "s|/usr/X11R6|${X11BASE}|g"
|
|
|
|
SUBST_MESSAGE.x11= "Fixing X11 paths."
|
|
|
|
|
2001-09-29 01:54:36 +02:00
|
|
|
post-install:
|
2005-04-24 14:48:43 +02:00
|
|
|
@cd ${WRKSRC} && ./unison -doc install > INSTALL
|
2001-09-29 01:54:36 +02:00
|
|
|
${INSTALL_MAN_DIR} ${PREFIX}/share/doc/unison
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/BUGS.txt ${PREFIX}/share/doc/unison
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/CONTRIB ${PREFIX}/share/doc/unison
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/COPYING ${PREFIX}/share/doc/unison
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/DEPENDENCIES.ps ${PREFIX}/share/doc/unison
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/unison
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/NEWS ${PREFIX}/share/doc/unison
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/unison
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/ROADMAP.txt ${PREFIX}/share/doc/unison
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/TODO.txt ${PREFIX}/share/doc/unison
|
|
|
|
|
2004-01-05 12:28:07 +01:00
|
|
|
.include "../../lang/ocaml/buildlink3.mk"
|
2001-01-11 02:45:36 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|