diff options
-rw-r--r-- | net/minidlna/Makefile | 11 | ||||
-rw-r--r-- | net/minidlna/files/BSDmakefile | 2 | ||||
-rw-r--r-- | net/minidlna/files/config.h.in (renamed from net/minidlna/files/config.h) | 0 |
3 files changed, 12 insertions, 1 deletions
diff --git a/net/minidlna/Makefile b/net/minidlna/Makefile index dad4620af816..4b58c294c0de 100644 --- a/net/minidlna/Makefile +++ b/net/minidlna/Makefile @@ -3,6 +3,7 @@ PORTNAME= minidlna PORTVERSION= 1.0.25 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= net multimedia www MASTER_SITES= SF @@ -33,6 +34,16 @@ SUB_LIST+= USER=${USERS} USERS= dlna GROUPS= dlna +.include <bsd.port.options.mk> + +do-configure: +.if ${PORT_OPTIONS:MNLS} + ${CP} ${FILESDIR}/config.h.in ${WRKSRC}/config.h +.else + ${SED} 's,^#define HAVE_ICONV_H,/* & */,' ${FILESDIR}/config.h.in > \ + ${WRKSRC}/config.h +.endif + post-install: ${FMT} ${PKGMESSAGE} diff --git a/net/minidlna/files/BSDmakefile b/net/minidlna/files/BSDmakefile index 14b2646e1122..224d1310ad70 100644 --- a/net/minidlna/files/BSDmakefile +++ b/net/minidlna/files/BSDmakefile @@ -4,7 +4,7 @@ NO_MAN= Ha-ha... OS!= uname VERS!= uname -r -CFLAGS=-I${FILESDIR} -I${.CURDIR} -I${LOCALBASE}/include -I${LOCALBASE}/include/ffmpeg +CFLAGS= -I${.CURDIR} -I${LOCALBASE}/include -I${LOCALBASE}/include/ffmpeg CFLAGS+=-I${LOCALBASE}/include/libavutil CFLAGS+=-DPREFIX='"${PREFIX}"' -DOS='"${OS}"' -DOSVERSION='"${VERS}"' CFLAGS+=-Wformat -Wunused -Wall diff --git a/net/minidlna/files/config.h b/net/minidlna/files/config.h.in index 10b7a3d7f41f..10b7a3d7f41f 100644 --- a/net/minidlna/files/config.h +++ b/net/minidlna/files/config.h.in |