diff options
author | danfe <danfe@FreeBSD.org> | 2012-10-22 21:12:11 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2012-10-22 21:12:11 +0800 |
commit | b6135fd0e84a71af7242e11202c6c02b38afe452 (patch) | |
tree | 3deac44476dd23f8bccab30d6be15f653b0daf7e /audio | |
parent | a4ba58f60363f69a789bd146baa5353fdb2b994d (diff) | |
download | freebsd-ports-gnome-b6135fd0e84a71af7242e11202c6c02b38afe452.tar.gz freebsd-ports-gnome-b6135fd0e84a71af7242e11202c6c02b38afe452.tar.zst freebsd-ports-gnome-b6135fd0e84a71af7242e11202c6c02b38afe452.zip |
- 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
Diffstat (limited to 'audio')
-rw-r--r-- | audio/gtkpod/Makefile | 33 |
1 files changed, 15 insertions, 18 deletions
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 <david@dyn-ns.net> -# +# Created by: David Le Brun <david@dyn-ns.net> # $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 <bsd.port.pre.mk> -.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 |