aboutsummaryrefslogtreecommitdiffstats
path: root/net/unison232/Makefile
diff options
context:
space:
mode:
authormadpilot <madpilot@FreeBSD.org>2012-06-01 05:12:14 +0800
committermadpilot <madpilot@FreeBSD.org>2012-06-01 05:12:14 +0800
commit492afaa2fb9198100322328866e37716b85525cf (patch)
tree720939f4b3538e64a5898e8121b8f9686cfdc8a5 /net/unison232/Makefile
parent9197ed2d2f6ccc6c09f305bfb60fa3a3d379ec74 (diff)
downloadfreebsd-ports-gnome-492afaa2fb9198100322328866e37716b85525cf.tar.gz
freebsd-ports-gnome-492afaa2fb9198100322328866e37716b85525cf.tar.zst
freebsd-ports-gnome-492afaa2fb9198100322328866e37716b85525cf.zip
- Convert to new options framework
- Remove uneeded double quotes - While here fix various portlint warnings - Indent make conditionals and loop Approved by: Boris Samorodov <bsam@FreeBSD.org> (net/unison-nox11 maintainer) Approved by: Matthias Andree <mandree@FreeBSD.org> (implicit, net/unison232 maintainer) Approved by: tabthorpe (mentor)
Diffstat (limited to 'net/unison232/Makefile')
-rw-r--r--net/unison232/Makefile21
1 files changed, 9 insertions, 12 deletions
diff --git a/net/unison232/Makefile b/net/unison232/Makefile
index b8da2eae7460..01251a1957ab 100644
--- a/net/unison232/Makefile
+++ b/net/unison232/Makefile
@@ -27,22 +27,19 @@ MAKE_JOBS_UNSAFE= yes
LICENCE= GPLv3
-.if defined(WITHOUT_X11)
-WITHOUT_GTK2= yes
-.else
-OPTIONS= GTK2 "Build a GTK2-based version" on
-.endif
+OPTIONS_DEFINE= DOCS GTK
+OPTIONS_DEFAULT= DOCS GTK
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
DOCS= BUGS.txt NEWS README
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
EXTRA_DOCS= ${PORTNAME}-${PORTVERSION}-manual.html \
${PORTNAME}-${PORTVERSION}-manual.pdf ${PORTNAME}-${PORTVERSION}-manual.ps
.endif
-.if !defined(WITHOUT_GTK2)
+.if ${PORT_OPTIONS:MGTK2}
MAKE_ARGS+= UISTYLE=gtk2
PLIST_SUB+= TEXT=""
BUILD_DEPENDS+= ocamlc:${PORTSDIR}/lang/ocaml \
@@ -59,7 +56,7 @@ BUILD_DEPENDS+= ocamlc:${PORTSDIR}/lang/ocaml-nox11
PATCH_DEPENDS+= ${BUILD_DEPENDS}
.endif
-.if !defined(WITHOUT_GTK2)
+.if ${PORT_OPTIONS:MGTK2}
post-build:
@${ECHO} Building text-only version
@${ECHO} ${WRKSRC}
@@ -70,16 +67,16 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${EXTRA_DOCS} ${DOCSDIR}
.endif
-.if !defined(WITHOUT_GTK2)
+.if ${PORT_OPTIONS:MGTK2}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-text ${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}-text
${MKDIR} ${DESKTOPDIR}
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${DESKTOPDIR}/${PORTNAME}${PKGNAMESUFFIX}.desktop
-update-desktop-database > /dev/null
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>