diff options
author | madpilot <madpilot@FreeBSD.org> | 2013-08-29 20:02:49 +0800 |
---|---|---|
committer | madpilot <madpilot@FreeBSD.org> | 2013-08-29 20:02:49 +0800 |
commit | 24478a58345eabc4d347abb99ad9515863681b36 (patch) | |
tree | 23b3536b78fb07f4e48bad01b0c778a7f154d485 | |
parent | c73907a6c5dd1e0b2b4ba258bfc3ad5030970bb9 (diff) | |
download | freebsd-ports-gnome-24478a58345eabc4d347abb99ad9515863681b36.tar.gz freebsd-ports-gnome-24478a58345eabc4d347abb99ad9515863681b36.tar.zst freebsd-ports-gnome-24478a58345eabc4d347abb99ad9515863681b36.zip |
- Fix build with clang
- Convert to new LIB_DEPENDS format
- Convert to USES=gmake
- Add OPTIONS support for WAVPACK option
PR: ports/181211
Submitted by: me
Approved by: novel (maintainer, via email)
-rw-r--r-- | audio/easytag/Makefile | 19 | ||||
-rw-r--r-- | audio/easytag/files/patch-src-log.c | 14 |
2 files changed, 25 insertions, 8 deletions
diff --git a/audio/easytag/Makefile b/audio/easytag/Makefile index c949258a3e7b..9393707c14af 100644 --- a/audio/easytag/Makefile +++ b/audio/easytag/Makefile @@ -10,25 +10,28 @@ MASTER_SITES= GNOME MAINTAINER= novel@FreeBSD.org COMMENT= GTK2 Tag editor for MP3 and OGG files -LIB_DEPENDS= id3:${PORTSDIR}/audio/id3lib \ - id3tag:${PORTSDIR}/audio/libid3tag \ - vorbis:${PORTSDIR}/audio/libvorbis \ - FLAC:${PORTSDIR}/audio/flac \ - mp4v2:${PORTSDIR}/multimedia/mp4v2 +LIB_DEPENDS= libid3.so:${PORTSDIR}/audio/id3lib \ + libid3tag.so:${PORTSDIR}/audio/libid3tag \ + libvorbis.so:${PORTSDIR}/audio/libvorbis \ + libFLAC.so:${PORTSDIR}/audio/flac \ + libmp4v2.so:${PORTSDIR}/multimedia/mp4v2 MAN1= easytag.1 CONFLICTS= easytag-devel-[0-9]* USE_XZ= yes -USES= gettext -USE_GMAKE= yes +USES= gettext gmake USE_GNOME= gnomehack gnomeprefix gtk20 desktopfileutils INSTALLS_ICONS= yes GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include -DHAVE_GTK LDFLAGS+= -L${LOCALBASE}/lib -.if defined(WITH_WAVPACK) +OPTIONS_DEFINE= WAVPACK + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MWAVPACK} LIB_DEPENDS+= wavpack:${PORTSDIR}/audio/wavpack CONFIGURE_ARGS+= --enable-wavpack .else diff --git a/audio/easytag/files/patch-src-log.c b/audio/easytag/files/patch-src-log.c new file mode 100644 index 000000000000..347502f700a1 --- /dev/null +++ b/audio/easytag/files/patch-src-log.c @@ -0,0 +1,14 @@ +--- src/log.c.orig 2013-02-05 23:42:37.000000000 +0100 ++++ src/log.c 2013-08-07 10:52:19.934047139 +0200 +@@ -39,6 +39,11 @@ + #include "win32/win32dep.h" + #endif /* G_OS_WIN32 */ + ++/* Disable -Wformat-nonliteral warning for this source file, since ++** all calls have safe format strings coming. */ ++#ifdef __clang__ ++#pragma clang diagnostic ignored "-Wformat-nonliteral" ++#endif + + /**************** + * Declarations * |