--- Makefile.bak 2007-07-29 23:40:10.000000000 +0200 +++ Makefile 2007-07-29 23:43:14.000000000 +0200 @@ -7,6 +7,7 @@ PORTNAME= gtkpod PORTVERSION= 0.99.10 +PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -25,7 +26,9 @@ GNU_CONFIGURE= yes INSTALLS_ICONS= yes -OPTIONS= MPEG4IP "Enable AAC and H.264 support with MPEG4IP" off +OPTIONS= MPEG4IP "Enable AAC and H.264 support with MPEG4IP" off \ + VORBIS "Enable OGG support" off \ + FLAC "Enable FLAC support" off .include @@ -33,10 +36,26 @@ WITH_MPEG4IP= YES .endif +.if exists(${LOCALBASE}/lib/libvorbis.so) +WITH_VORBIS= YES +.endif + +.if exists(${LOCALBASE}/lib/libFLAC.so) +WITH_FLAC= YES +.endif + .if defined(WITH_MPEG4IP) LIB_DEPENDS+= mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 .endif +.if defined(WITH_VORBIS) +LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis +.endif + +.if defined(WITH_FLAC) +LIB_DEPENDS+= FLAC.7:${PORTSDIR}/audio/flac +.endif + CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"