Bug 193177

Summary: audio/sdl_mixer: music.c:41: music_modplug.h:3:21: error: modplug.h: No such file or directory (MODPLUG option)
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Marcus von Appen <mva>
Status: Closed FIXED    
Severity: Affects Only Me CC: arved
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugzilla.libsdl.org/show_bug.cgi?id=2136
Attachments:
Description Flags
error log
none
fix
none
fixed log none

Description Jan Beich freebsd_committer freebsd_triage 2014-08-30 20:27:20 UTC
Created attachment 146569 [details]
error log

$ ls /usr/local/include/**/modplug.h
/usr/local/include/libmodplug/modplug.h

$ pkg-config --cflags libmodplug
-I/usr/local/include

$ make DISABLE_MAKE_JOBS=
===>  Building for sdl_mixer-1.2.12_8
gmake[2]: Entering directory 'WRKDIR/SDL_mixer-1.2.12'
/bin/sh ./libtool --mode=compile cc -O2 -pipe -I/usr/local/include -D_GNU_SOURCE=1 -I/usr/local/include/SDL -I/usr/local/include -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE   -fvisibility=hidden -DHAVE_FORK -DCMD_MUSIC -DWAV_MUSIC -DMODPLUG_MUSIC  -I/usr/local/include   -DMID_MUSIC -DUSE_TIMIDITY_MIDI -I./timidity -DOGG_MUSIC -DOGG_DYNAMIC=\"libvorbisfile.so.6\" -DHAVE_SIGNAL_H -DHAVE_SETBUF -MMD -MT build/music.lo -c music.c -o build/music.lo
libtool: compile:  cc -O2 -pipe -I/usr/local/include -D_GNU_SOURCE=1 -I/usr/local/include/SDL -I/usr/local/include -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -fvisibility=hidden -DHAVE_FORK -DCMD_MUSIC -DWAV_MUSIC -DMODPLUG_MUSIC -I/usr/local/include -DMID_MUSIC -DUSE_TIMIDITY_MIDI -I./timidity -DOGG_MUSIC -DOGG_DYNAMIC=\"libvorbisfile.so.6\" -DHAVE_SIGNAL_H -DHAVE_SETBUF -MMD -MT build/music.lo -c music.c  -fPIC -DPIC -o build/.libs/music.o
In file included from music.c:41:
./music_modplug.h:3:10: fatal error: 'modplug.h' file not found
#include "modplug.h"
         ^
1 error generated.
Makefile:151: recipe for target 'build/music.lo' failed
gmake[2]: *** [build/music.lo] Error 1
gmake[2]: Leaving directory 'WRKDIR/SDL_mixer-1.2.12'
*** Error code 1
Comment 2 Jan Beich freebsd_committer freebsd_triage 2014-08-30 20:53:14 UTC
Created attachment 146570 [details]
fix

libmodplug-0.8.8.4 still have -I${includedir}/libmodplug as noted in upstream bug. Let's copy the include line from audio/sdl2_mixer.
Comment 3 Jan Beich freebsd_committer freebsd_triage 2014-08-30 21:00:12 UTC
Created attachment 146571 [details]
fixed log
Comment 4 Tilman Keskinoz freebsd_committer freebsd_triage 2014-08-31 09:29:20 UTC
over to maintainer
Comment 5 commit-hook freebsd_committer freebsd_triage 2014-09-02 18:46:23 UTC
A commit references this bug:

Author: mva
Date: Tue Sep  2 18:45:59 UTC 2014
New revision: 367072
URL: http://svnweb.freebsd.org/changeset/ports/367072

Log:
  - Unbreak the build, if MODPLUG is selected

  PR:		193177
  Submitted by:	Jan Beich <jbeich@vfemail.net>

Changes:
  head/audio/sdl_mixer/Makefile
Comment 6 Marcus von Appen freebsd_committer freebsd_triage 2014-09-02 18:46:37 UTC
Fixed, thanks. I omitted the extra file and patched it in post-patch.