aboutsummaryrefslogtreecommitdiff
path: root/editors/yzis/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'editors/yzis/Makefile')
-rw-r--r--editors/yzis/Makefile53
1 files changed, 17 insertions, 36 deletions
diff --git a/editors/yzis/Makefile b/editors/yzis/Makefile
index 25aadce08326..cdc07b05f5a8 100644
--- a/editors/yzis/Makefile
+++ b/editors/yzis/Makefile
@@ -3,7 +3,7 @@
PORTNAME= yzis
PORTVERSION= 1.0.a.1
-PORTREVISION= 9
+PORTREVISION= 10
CATEGORIES= editors
MASTER_SITES= http://labs.freehackers.org/attachments/download/45/ \
http://contribs.martymac.org/FreeBSD-ports/distfiles/
@@ -29,51 +29,32 @@ CMAKE_ARGS+= -DLOCALBASE:STRING="${LOCALBASE}" \
-DENABLE_QYZIS:BOOL=ON \
-DENABLE_LIBYZISRUNNER:BOOL=OFF \
-DENABLE_TESTS:BOOL=OFF
+USE_GCC= any
INSTALLS_ICONS= yes
USE_LDCONFIG= yes
-OPTIONS_DEFINE= KYZIS NYZIS
+OPTIONS_DEFINE= KYZIS NYZIS DOCS
+OPTIONS_SUB= yes
KYZIS_DESC= Build kyzis and Yzis kpart
+KYZIS_USE= KDE4=kdehier,kdeprefix,kdelibs,automoc4 QT4=phonon
+KYZIS_CMAKE_ON= -DENABLE_KYZIS:BOOL=ON -DENABLE_KPART_YZIS:BOOL=ON
+KYZIS_CMAKE_OFF= -DENABLE_KYZIS:BOOL=OFF -DENABLE_KPART_YZIS:BOOL=OFF
NYZIS_DESC= Build nyzis (ncurses frontend)
+NYZIS_CPPFLAGS= -D_XOPEN_SOURCE_EXTENDED
+NYZIS_CMAKE_ON= -DENABLE_NYZIS:BOOL=ON
+NYZIS_CMAKE_OFF= -DENABLE_NYZIS:BOOL=OFF
+DOCS_BUILD_DEPENDS= dot:${PORTSDIR}/graphics/graphviz \
+ doxygen:${PORTSDIR}/devel/doxygen
+DOCS_CMAKE_ON= -DENABLE_DOCUMENTATION:BOOL=ON
+DOCS_CMAKE_OFF= -DENABLE_DOCUMENTATION:BOOL=OFF
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MKYZIS}
-USE_KDE4= kdehier kdeprefix kdelibs automoc4
-USE_QT4+= phonon
-.endif
-
-.include <bsd.port.pre.mk>
-
-.if ${PORT_OPTIONS:MNYZIS}
-CPPFLAGS+= -D_XOPEN_SOURCE_EXTENDED # ncurses/widec support
-CMAKE_ARGS+= -DENABLE_NYZIS:BOOL=ON
-PLIST_SUB+= PL_NYZIS=""
-.else
-CMAKE_ARGS+= -DENABLE_NYZIS:BOOL=OFF
-PLIST_SUB+= PL_NYZIS="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MKYZIS}
-CMAKE_ARGS+= -DENABLE_KYZIS:BOOL=ON \
- -DENABLE_KPART_YZIS:BOOL=ON
-PLIST_SUB+= PL_KYZIS=""
-PLIST_SUB+= PL_QYZIS="@comment "
-.else
-CMAKE_ARGS+= -DENABLE_KYZIS:BOOL=OFF \
- -DENABLE_KPART_YZIS:BOOL=OFF
-PLIST_SUB+= PL_KYZIS="@comment "
-PLIST_SUB+= PL_QYZIS=""
-.endif
-
-.if ${PORT_OPTIONS:MDOCS}
-BUILD_DEPENDS+= dot:${PORTSDIR}/graphics/graphviz \
- doxygen:${PORTSDIR}/devel/doxygen
-CMAKE_ARGS+= -DENABLE_DOCUMENTATION:BOOL=ON
+PLIST_SUB+= QYZIS="@comment "
.else
-CMAKE_ARGS+= -DENABLE_DOCUMENTATION:BOOL=OFF
+PLIST_SUB+= QYZIS=""
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>