Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Apr 2014 18:14:33 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350396 - head/audio/harp
Message-ID:  <201404061814.s36IEXFw018551@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sun Apr  6 18:14:32 2014
New Revision: 350396
URL: http://svnweb.freebsd.org/changeset/ports/350396
QAT: https://qat.redports.org/buildarchive/r350396/

Log:
  Support stage
  Use options helpers
  Strip binaries

Modified:
  head/audio/harp/Makefile
  head/audio/harp/pkg-plist

Modified: head/audio/harp/Makefile
==============================================================================
--- head/audio/harp/Makefile	Sun Apr  6 18:10:39 2014	(r350395)
+++ head/audio/harp/Makefile	Sun Apr  6 18:14:32 2014	(r350396)
@@ -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
-
-.if ${PORT_OPTIONS:MFLAC}
-LIB_DEPENDS+=	libFLAC.so:${PORTSDIR}/audio/flac
-PLIST_SUB+=	FLAC=""
-.else
-CONFIGURE_ARGS+=	--without-flac
-PLIST_SUB+=	FLAC="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MMP3}
-LIB_DEPENDS+=	libmpg123.so:${PORTSDIR}/audio/mpg123
-PLIST_SUB+=	MP3=""
-.else
-CONFIGURE_ARGS+=	--without-mp3
-PLIST_SUB+=	MP3="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MSHOUTCAST}
-PLIST_SUB+=	STREAM=""
-.else
-CONFIGURE_ARGS+=	--without-stream
-PLIST_SUB+=	STREAM="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MVORBIS}
-LIB_DEPENDS+=	libvorbisfile.so:${PORTSDIR}/audio/libvorbis
-PLIST_SUB+=	VORBIS=""
-.else
-CONFIGURE_ARGS+=	--without-vorbis
-PLIST_SUB+=	VORBIS="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MJACK}
-CONFIGURE_ARGS+=	--with-jack
-LIB_DEPENDS+=	libjack.so:${PORTSDIR}/audio/jack
-.else
-CONFIGURE_ARGS+=	--without-jack
-.endif
+AAC_LIB_DEPENDS=	libfaad.so:${PORTSDIR}/audio/faad
+AAC_CONFIGURE_WITH=	aac
+
+FLAC_LIB_DEPENDS=	libFLAC.so:${PORTSDIR}/audio/flac
+FLAC_CONFIGURE_WITH=	flac
+
+MP3_LIB_DEPENDS+=	libmpg123.so:${PORTSDIR}/audio/mpg123
+MP3_CONFIGURE_WITH=	mp3
+
+SHOUTCAST_CONFIGURE_WITH=	stream
+
+VORBIS_LIB_DEPENDS=	libvorbisfile.so:${PORTSDIR}/audio/libvorbis
+VORBIS_CONFIGURE_ARGS=	vorbis
+
+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>

Modified: head/audio/harp/pkg-plist
==============================================================================
--- head/audio/harp/pkg-plist	Sun Apr  6 18:10:39 2014	(r350395)
+++ head/audio/harp/pkg-plist	Sun Apr  6 18:14:32 2014	(r350396)
@@ -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%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404061814.s36IEXFw018551>