diff options
author | bar <bar@FreeBSD.org> | 2012-12-28 06:54:33 +0800 |
---|---|---|
committer | bar <bar@FreeBSD.org> | 2012-12-28 06:54:33 +0800 |
commit | 4bd8f63213a45ded5bf5900bdfb622562399975a (patch) | |
tree | 88706ca7d081d1a12d6a0011c60322ab9701f17b /multimedia | |
parent | 02e1fc97d099bbcd151d4d44719b031707ff2158 (diff) | |
download | freebsd-ports-gnome-4bd8f63213a45ded5bf5900bdfb622562399975a.tar.gz freebsd-ports-gnome-4bd8f63213a45ded5bf5900bdfb622562399975a.tar.zst freebsd-ports-gnome-4bd8f63213a45ded5bf5900bdfb622562399975a.zip |
- Convert to OptionsNG
- Improve handling of different options combinations
- Trim Makefile header
- Update my email address
Approved by: flo, rene (mentors)
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/libkate/Makefile | 77 |
1 files changed, 27 insertions, 50 deletions
diff --git a/multimedia/libkate/Makefile b/multimedia/libkate/Makefile index 5eb3afb129e1..50feb132462b 100644 --- a/multimedia/libkate/Makefile +++ b/multimedia/libkate/Makefile @@ -1,9 +1,5 @@ -# Ports collection makefile for: libkate -# Date created: Sat 19 Oct 2008 -# Whom: Anders Nordby <anders@FreeBSD.org> -# +# Created by: Anders Nordby <anders@FreeBSD.org> # $FreeBSD$ -# PORTNAME= libkate PORTVERSION= 0.4.1 @@ -11,7 +7,7 @@ PORTREVISION= 2 CATEGORIES= multimedia MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} -MAINTAINER= barbara.xxx1975@libero.it +MAINTAINER= bar@FreeBSD.org COMMENT= Codec for karaoke and text encapsulation for Ogg LICENSE= BSD @@ -28,21 +24,22 @@ CFLAGS+= "-I${LOCALBASE}/include" MAN1= katalyzer.1 kateenc.1 katedec.1 -OPTIONS= DOXYGEN "Build docs with doxygen (requires TeX, QT, etc.)" off \ - HTMLDOCS "Install bundled html documentation" off \ - KATEDJ "Install KateDJ (requires wxPython - WARNING!)" off +OPTIONS_DEFINE= DOXYGEN HTMLDOCS KATEDJ + +HTMLDOCS_DESC= Install bundled html documentation +KATEDJ_DESC= Install KateDJ (Huge dependencies list) PORTDOCS= * -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_DOXYGEN) +.if ${PORT_OPTIONS:MDOXYGEN} && ${PORT_OPTIONS:MDOCS} BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen .else CONFIGURE_ARGS+= --disable-doc .endif -.if defined(WITH_KATEDJ) +.if ${PORT_OPTIONS:MKATEDJ} RUN_DEPENDS= ${LOCALBASE}/bin/oggz:${PORTSDIR}/audio/liboggz USE_PYTHON= yes .include "${PORTSDIR}/Mk/bsd.python.mk" @@ -55,57 +52,37 @@ PLIST_SUB+= KATEDJ="@comment " .endif post-patch: -.if !defined(NOPORTDOCS) - @${REINPLACE_CMD} -E -e "s|^(katepcdir =).*|\1 ${LOCALBASE}/libdata/pkgconfig|" \ - ${WRKSRC}/Makefile.in -. if !defined(WITH_HTMLDOCS) && !defined(WITH_DOXYGEN) -. if !defined(WITH_KATEDJ) - @${REINPLACE_CMD} -E -e \ - 's|^(install-data-am: )(install-data-local )(install-man)|\1\3|; \ - s| man/KateDJ.1||' \ - ${WRKSRC}/doc/Makefile.in -. else - @${REINPLACE_CMD} -E -e \ - 's|^(install-data-am: )(install-data-local )(install-man)|\1\3|' \ - ${WRKSRC}/doc/Makefile.in -. endif -. else -. if !defined(WITH_KATEDJ) - @${REINPLACE_CMD} -E -e \ - ' s| man/KateDJ.1||' \ - ${WRKSRC}/doc/Makefile.in -. endif -. endif -.else - @${REINPLACE_CMD} -E -e "s|^(katepcdir =).*|\1 ${LOCALBASE}/libdata/pkgconfig|; \ - s|^(SUBDIRS =.*) doc|\1|" \ - ${WRKSRC}/Makefile.in -. if !defined(WITH_KATEDJ) @${REINPLACE_CMD} -E -e \ - ' s| man/KateDJ.1||' \ - ${WRKSRC}/doc/Makefile.in -. endif -.endif + "s|^(katepcdir =).*|\1 ${PREFIX}/libdata/pkgconfig|" \ + ${WRKSRC}/Makefile.in -.if !defined(WITH_KATEDJ) +.if ! ${PORT_OPTIONS:MKATEDJ} @${REINPLACE_CMD} -e \ "s| HAVE_PYTHON_TRUE=$$| HAVE_PYTHON_TRUE='#'|; \ - s| HAVE_PYTHON_FALSE=\'#\'$$| HAVE_PYTHON_FALSE=|" \ - ${WRKSRC}/configure + s| HAVE_PYTHON_FALSE=\'#\'$$| HAVE_PYTHON_FALSE=|" \ + ${WRKSRC}/configure +.endif + + @${REINPLACE_CMD} -E -e \ + "s|^(install-data-am: ).*|\1|" \ + ${WRKSRC}/doc/Makefile.in + +.if ! ${PORT_OPTIONS:MDOXYGEN} || ! ${PORT_OPTIONS:MDOCS} + @${TOUCH} ${WRKSRC}/doc/.doc-dummy-target .endif post-install: .for f in ${MAN1} - ${INSTALL_MAN} ${WRKSRC}/doc/man/${f} ${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/doc/man/${f} ${PREFIX}/man/man1 .endfor -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} . for FILE in README AUTHORS COPYING THANKS ChangeLog ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} . endfor -. if defined(WITH_HTMLDOCS) - ${CP} -RPpn ${WRKSRC}/doc/html ${DOCSDIR}/html +. if ${PORT_OPTIONS:MHTMLDOCS} || ${PORT_OPTIONS:MDOXYGEN} + (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${DOCSDIR}) . endif .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |