1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Support stage

Use options helpers
Strip binaries
This commit is contained in:
Baptiste Daroussin 2014-04-06 18:14:32 +00:00
parent 4f6825b0ed
commit 12e06d8e03
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350396
2 changed files with 20 additions and 51 deletions

View File

@ -15,68 +15,36 @@ LICENSE= GPLv3
GNU_CONFIGURE= yes
USE_SQLITE= yes
NO_STAGE= yes
USE_LDCONFIG= yes
OPTIONS_DEFINE= AAC FLAC MP3 SHOUTCAST VORBIS JACK
OPTIONS_DEFAULT= AAC FLAC MP3 SHOUTCAST VORBIS
OPTIONS_SUB= yes
MAN1= harp.1
PORTDOCS= README
.include <bsd.port.options.mk>
INSTALL_TARGET= install-strip
.if ${PORT_OPTIONS:MAAC}
LIB_DEPENDS+= libfaad.so:${PORTSDIR}/audio/faad
PLIST_SUB+= AAC=""
.else
CONFIGURE_ARGS+= --without-aac
PLIST_SUB+= AAC="@comment "
.endif
AAC_LIB_DEPENDS= libfaad.so:${PORTSDIR}/audio/faad
AAC_CONFIGURE_WITH= aac
.if ${PORT_OPTIONS:MFLAC}
LIB_DEPENDS+= libFLAC.so:${PORTSDIR}/audio/flac
PLIST_SUB+= FLAC=""
.else
CONFIGURE_ARGS+= --without-flac
PLIST_SUB+= FLAC="@comment "
.endif
FLAC_LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac
FLAC_CONFIGURE_WITH= flac
.if ${PORT_OPTIONS:MMP3}
LIB_DEPENDS+= libmpg123.so:${PORTSDIR}/audio/mpg123
PLIST_SUB+= MP3=""
.else
CONFIGURE_ARGS+= --without-mp3
PLIST_SUB+= MP3="@comment "
.endif
MP3_LIB_DEPENDS+= libmpg123.so:${PORTSDIR}/audio/mpg123
MP3_CONFIGURE_WITH= mp3
.if ${PORT_OPTIONS:MSHOUTCAST}
PLIST_SUB+= STREAM=""
.else
CONFIGURE_ARGS+= --without-stream
PLIST_SUB+= STREAM="@comment "
.endif
SHOUTCAST_CONFIGURE_WITH= stream
.if ${PORT_OPTIONS:MVORBIS}
LIB_DEPENDS+= libvorbisfile.so:${PORTSDIR}/audio/libvorbis
PLIST_SUB+= VORBIS=""
.else
CONFIGURE_ARGS+= --without-vorbis
PLIST_SUB+= VORBIS="@comment "
.endif
VORBIS_LIB_DEPENDS= libvorbisfile.so:${PORTSDIR}/audio/libvorbis
VORBIS_CONFIGURE_ARGS= vorbis
.if ${PORT_OPTIONS:MJACK}
CONFIGURE_ARGS+= --with-jack
LIB_DEPENDS+= libjack.so:${PORTSDIR}/audio/jack
.else
CONFIGURE_ARGS+= --without-jack
.endif
JACK_CONFIGURE_WITH= jack
JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -8,17 +8,18 @@ bin/harp
%%MP3%%lib/libharpmp3.a
%%MP3%%lib/libharpmp3.la
%%MP3%%lib/libharpmp3.so
%%STREAM%%lib/libharpstream.a
%%STREAM%%lib/libharpstream.la
%%STREAM%%lib/libharpstream.so
%%SHOUTCAST%%lib/libharpstream.a
%%SHOUTCAST%%lib/libharpstream.la
%%SHOUTCAST%%lib/libharpstream.so
%%VORBIS%%lib/libharpvorbis.a
%%VORBIS%%lib/libharpvorbis.la
%%VORBIS%%lib/libharpvorbis.so
%%AAC%%%%DATADIR%%/libharpaac.sql
%%FLAC%%%%DATADIR%%/libharpflac.sql
%%MP3%%%%DATADIR%%/libharpmp3.sql
%%STREAM%%%%DATADIR%%/libharpstream.sql
%%SHOUTCAST%%%%DATADIR%%/libharpstream.sql
%%VORBIS%%%%DATADIR%%/libharpvorbis.sql
man/man1/harp.1.gz
%%DATADIR%%/create.sql
%%DATADIR%%/defaults.conf
@dirrm %%DATADIR%%