mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
emulators/fuse-utils: Use option helpers to reduce makefile inclusions.
This commit is contained in:
parent
6add8eeece
commit
ce9a47c3a9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344592
1 changed files with 6 additions and 18 deletions
|
@ -25,29 +25,17 @@ OPTIONS_DEFAULT= AUDIOTOOLS
|
|||
|
||||
AUDIOTOOLS_DESC= Build audio <-> tape utilities
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
.if ${PORT_OPTIONS:MAUDIOTOOLS}
|
||||
CONFIGURE_ARGS+=--with-audiofile
|
||||
LIB_DEPENDS+= libaudiofile.so:${PORTSDIR}/audio/libaudiofile
|
||||
PLIST_SUB= AUDIOTOOLS=""
|
||||
.else
|
||||
CONFIGURE_ARGS+=--without-audiofile
|
||||
PLIST_SUB= AUDIOTOOLS="@comment "
|
||||
.endif
|
||||
AUDIOTOOLS_CONFIGURE_WITH= audiofile
|
||||
AUDIOTOOLS_LIB_DEPENDS= libaudiofile.so:${PORTSDIR}/audio/libaudiofile
|
||||
|
||||
# FIXME no way to specify ffmpeg1 paths to configure script
|
||||
#.if ${PORT_OPTIONS:MFFMPEG}
|
||||
#LIB_DEPENDS+= libavformat1.so:${PORTSDIR}/multimedia/ffmpeg1
|
||||
#CONFIGURE_ARGS+=--with-ffmpeg
|
||||
#.else
|
||||
CONFIGURE_ARGS+=--without-ffmpeg
|
||||
#.endif
|
||||
#FFMPEG_LIB_DEPENDS= libavformat1.so:${PORTSDIR}/multimedia/ffmpeg1
|
||||
#FFMPEG_CONFIGURE_WITH= ffmpeg
|
||||
|
||||
post-install:
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS ChangeLog README ${STAGEDIR}${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Add table
Reference in a new issue