Convert to new options framework

This commit is contained in:
Baptiste Daroussin 2012-05-30 14:22:59 +00:00
parent 5fc4e235bf
commit 2ba6e339ed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=297787
2 changed files with 10 additions and 8 deletions

View File

@ -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>
.include <bsd.port.options.mk>
OPTIONS= DVDREAD "DVD title chapter extraction via libdvdread" on
.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>

View File

@ -1,4 +1,4 @@
%%WITH_DVDREAD%%bin/dvdxchap
%%DVDREAD%%bin/dvdxchap
bin/ogmcat
bin/ogmdemux
bin/ogminfo