From b6135fd0e84a71af7242e11202c6c02b38afe452 Mon Sep 17 00:00:00 2001 From: danfe Date: Mon, 22 Oct 2012 13:12:11 +0000 Subject: - Switch to the new options framework - Use two line style Makefile header - Drop ABI shlib versions from LIB_DEPENDS PR: ports/172902 (modified) Submitted by: bsam Feature safe: yes --- audio/gtkpod/Makefile | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) (limited to 'audio') diff --git a/audio/gtkpod/Makefile b/audio/gtkpod/Makefile index 372c820ba5d5..62e6bee478d6 100644 --- a/audio/gtkpod/Makefile +++ b/audio/gtkpod/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: gtkpod -# Date created: 28 January 2003 -# Whom: David Le Brun -# +# Created by: David Le Brun # $FreeBSD$ -# PORTNAME= gtkpod PORTVERSION= 1.0.0 @@ -16,8 +12,8 @@ COMMENT= GUI for Apple iPod using GTK2 LICENSE= GPLv2 -LIB_DEPENDS= id3tag.0:${PORTSDIR}/audio/libid3tag \ - gpod.7:${PORTSDIR}/audio/libgpod +LIB_DEPENDS= id3tag:${PORTSDIR}/audio/libid3tag \ + gpod:${PORTSDIR}/audio/libgpod USE_GETTEXT= yes USE_GMAKE= yes @@ -26,30 +22,31 @@ GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib INSTALLS_ICONS= yes -MAN1= gtkpod.1 +MAN1= ${PORTNAME}.1 PORTDOCS= ChangeLog NEWS README TODOandBUGS.txt TROUBLESHOOTING -OPTIONS= VORBIS "Enable Ogg/Vorbis support" on \ - FLAC "Enable FLAC support" on \ - CURL "Enable coverart download support" on +OPTIONS_DEFINE= VORBIS FLAC CURL +OPTIONS_DEFAULT= VORBIS FLAC CURL + +CURL_DESC= Cover art download support via libcurl .include -.if defined(WITH_VORBIS) -LIB_DEPENDS+= vorbisfile.6:${PORTSDIR}/audio/libvorbis +.if ${PORT_OPTIONS:MVORBIS} +LIB_DEPENDS+= vorbisfile:${PORTSDIR}/audio/libvorbis .else CONFIGURE_ARGS+= --without-ogg .endif -.if defined(WITH_FLAC) -LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac +.if ${PORT_OPTIONS:MFLAC} +LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac .else CONFIGURE_ARGS+= --without-flac .endif -.if defined(WITH_CURL) -LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl +.if ${PORT_OPTIONS:MCURL} +LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl .else CONFIGURE_ARGS+= --without-curl .endif @@ -65,7 +62,7 @@ post-patch: ${WRKSRC}/src/mp4file.c post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} .endif -- cgit