summaryrefslogtreecommitdiff
path: root/net/unison
diff options
context:
space:
mode:
authortonio <tonio>2006-12-11 23:00:31 +0000
committertonio <tonio>2006-12-11 23:00:31 +0000
commit6f9b3a8aa130bc1ba18ef884b925be58dedd5ea4 (patch)
tree0b7588656451132f3f440b690c8f13a343eadfad /net/unison
parent016ccb946e451e41285420e619f549dcc7d13fc7 (diff)
downloadpkgsrc-6f9b3a8aa130bc1ba18ef884b925be58dedd5ea4.tar.gz
Add optional support for the lablgtk2 interface for unison
Patch provided by Brian de Alwis in pkg/35114
Diffstat (limited to 'net/unison')
-rw-r--r--net/unison/Makefile7
-rw-r--r--net/unison/options.mk14
2 files changed, 18 insertions, 3 deletions
diff --git a/net/unison/Makefile b/net/unison/Makefile
index f5e3ac42c68..6aebffec114 100644
--- a/net/unison/Makefile
+++ b/net/unison/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2006/04/06 06:22:35 reed Exp $
+# $NetBSD: Makefile,v 1.33 2006/12/11 23:00:31 tonio Exp $
DISTNAME= unison-2.13.16
PKGREVISION= 2
@@ -17,9 +17,10 @@ BUILDLINK_API_DEPENDS.ocaml+= ocaml>=3.08.2
# docs: unison-manual.pdf/html/ps/dvi
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_TOOLS+= gmake
-MAKE_FLAGS+= CFLAGS="" UISTYLE=text
+MAKE_FLAGS+= CFLAGS=""
MAKE_ENV+= HOME=${WRKDIR:Q}
+.include "options.mk"
.include "../../mk/bsd.prefs.mk"
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || (${MACHINE_ARCH} == "sparc")
@@ -35,9 +36,9 @@ MAKE_FLAGS+= THREADS=true
.endif
INSTALLATION_DIRS= bin
+INSTALLATION_DIRS+= share/doc/unison
post-install:
- ${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
diff --git a/net/unison/options.mk b/net/unison/options.mk
new file mode 100644
index 00000000000..dab19863bf1
--- /dev/null
+++ b/net/unison/options.mk
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2006/12/11 23:00:31 tonio Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.unison
+PKG_SUPPORTED_OPTIONS= lablgtk2
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mlablgtk2)
+MAKE_FLAGS+= UISTYLE=gtk2
+.include "../../x11/lablgtk2/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+.else
+MAKE_FLAGS+= UISTYLE=text
+.endif