diff options
author | tonio <tonio@pkgsrc.org> | 2006-12-11 23:00:31 +0000 |
---|---|---|
committer | tonio <tonio@pkgsrc.org> | 2006-12-11 23:00:31 +0000 |
commit | 1cf11017015228e1b6c230f499bd4257071933d1 (patch) | |
tree | 0b7588656451132f3f440b690c8f13a343eadfad | |
parent | de64642ed0da7a0a6dfbfdea5ccdef5de90cde08 (diff) | |
download | pkgsrc-1cf11017015228e1b6c230f499bd4257071933d1.tar.gz |
Add optional support for the lablgtk2 interface for unison
Patch provided by Brian de Alwis in pkg/35114
-rw-r--r-- | net/unison-devel/Makefile | 7 | ||||
-rw-r--r-- | net/unison/Makefile | 7 | ||||
-rw-r--r-- | net/unison/options.mk | 14 |
3 files changed, 22 insertions, 6 deletions
diff --git a/net/unison-devel/Makefile b/net/unison-devel/Makefile index 6a8052e4f52..9906d0037dc 100644 --- a/net/unison-devel/Makefile +++ b/net/unison-devel/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2006/04/06 06:22:35 reed Exp $ +# $NetBSD: Makefile,v 1.16 2006/12/11 23:00:52 tonio Exp $ DISTNAME= unison-2.17.1 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 "../../net/unison/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/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 |