Index: Makefile =================================================================== --- Makefile (revision 435832) +++ Makefile (working copy) @@ -27,7 +27,8 @@ libvorbis.so:audio/libvorbis \ libxslt.so:textproc/libxslt -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS MTYPES +MTYPES_DESC= Install mime.types via mime-support dependency CONFIGURE_ENV= OGG_PREFIX=${LOCALBASE} GNU_CONFIGURE= yes @@ -46,6 +47,13 @@ CPE_VENDOR= xiph CPE_PRODUCT= icecast +.include +.if ${PORT_OPTIONS:MMTYPES} +MTYPES?= ${LOCALBASE}/etc/mime.types +CFLAGS+= -DMIMETYPESFILE_OVERRIDE=${MTYPES} +RUN_DEPENDS+= ${MTYPES}:misc/mime-support +.endif + post-install: ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/favicon.ico ${STAGEDIR}${DATADIR}/web/ Index: files/patch-cfgfile.c =================================================================== --- files/patch-cfgfile.c (nonexistent) +++ files/patch-cfgfile.c (working copy) @@ -0,0 +1,17 @@ +--- src/cfgfile.c.orig 2015-12-27 23:46:32.000000000 +0700 ++++ src/cfgfile.c 2017-03-13 17:34:08.836904000 +0700 +@@ -66,8 +66,14 @@ + #define CONFIG_DEFAULT_LOG_DIR "/usr/local/icecast/logs" + #define CONFIG_DEFAULT_WEBROOT_DIR "/usr/local/icecast/webroot" + #define CONFIG_DEFAULT_ADMINROOT_DIR "/usr/local/icecast/admin" ++#ifndef MIMETYPESFILE_OVERRIDE + #define MIMETYPESFILE "/etc/mime.types" + #else ++#define _QQ(a) #a ++#define _Q(a) _QQ(a) ++#define MIMETYPESFILE _Q(MIMETYPESFILE_OVERRIDE) ++#endif ++#else + #define CONFIG_DEFAULT_BASE_DIR ".\\" + #define CONFIG_DEFAULT_LOG_DIR ".\\logs" + #define CONFIG_DEFAULT_WEBROOT_DIR ".\\webroot"