diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-05-30 14:22:59 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-05-30 14:22:59 +0000 |
commit | 2ba6e339ed85db3289c6ed2e114719aca3f60482 (patch) | |
tree | 3aa564451751f69711e8ef58ef9a8a886d79c71a /multimedia/ogmtools | |
parent | 5fc4e235bf3c7d4bc576ddc508bb393e2e0f6ea5 (diff) | |
download | ports-2ba6e339ed85db3289c6ed2e114719aca3f60482.tar.gz ports-2ba6e339ed85db3289c6ed2e114719aca3f60482.zip |
Notes
Diffstat (limited to 'multimedia/ogmtools')
-rw-r--r-- | multimedia/ogmtools/Makefile | 16 | ||||
-rw-r--r-- | multimedia/ogmtools/pkg-plist | 2 |
2 files changed, 10 insertions, 8 deletions
diff --git a/multimedia/ogmtools/Makefile b/multimedia/ogmtools/Makefile index f8c6b134fe8b..58ff374eb064 100644 --- a/multimedia/ogmtools/Makefile +++ b/multimedia/ogmtools/Makefile @@ -24,6 +24,10 @@ MAKE_JOBS_SAFE= yes MAN1= ogmcat.1 ogmdemux.1 ogminfo.1 ogmmerge.1 ogmsplit.1 +OPTIONS_DEFINE= DVDREAD +OPTIONS_DEFAULT= DVDREAD +DVDREAD_DESC= DVD title chapter extraction via libdvdread + post-patch: # disable GNU auto* tools @${FIND} ${WRKSRC} -type f -name "Makefile.in" | ${XARGS} \ @@ -46,22 +50,20 @@ post-configure: 's!malloc.h!stdlib.h!; \ s|stdint.h|inttypes.h|' -.include <bsd.port.pre.mk> - -OPTIONS= DVDREAD "DVD title chapter extraction via libdvdread" on +.include <bsd.port.options.mk> -.ifdef(WITH_DVDREAD) +.if ${PORT_OPTIONS:MDVDREAD} LIB_DEPENDS+= dvdread.4:${PORTSDIR}/multimedia/libdvdread CONFIGURE_ARGS+= --with-dvdread \ --with-dvdread-includes=${LOCALBASE} \ --with-dvdread-libs=${LOCALBASE} -PLIST_SUB+= WITH_DVDREAD="" +PLIST_SUB+= DVDREAD="" MAN1+= dvdxchap.1 .else CONFIGURE_ARGS+= --without-dvdread -PLIST_SUB+= WITH_DVDREAD="@comment " +PLIST_SUB+= DVDREAD="@comment " .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/multimedia/ogmtools/pkg-plist b/multimedia/ogmtools/pkg-plist index dbcccc4102bd..0f0745269cf1 100644 --- a/multimedia/ogmtools/pkg-plist +++ b/multimedia/ogmtools/pkg-plist @@ -1,4 +1,4 @@ -%%WITH_DVDREAD%%bin/dvdxchap +%%DVDREAD%%bin/dvdxchap bin/ogmcat bin/ogmdemux bin/ogminfo |