diff options
author | crees <crees@FreeBSD.org> | 2013-05-05 01:51:27 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2013-05-05 01:51:27 +0800 |
commit | dc787bd3cc31eefc15372df471d155128d2d961d (patch) | |
tree | ab005cd4ce8770dbcd4e197cbed096de9440403e /net | |
parent | 1054a40261623a0fab0f457c7413f7d4848e3d55 (diff) | |
download | freebsd-ports-gnome-dc787bd3cc31eefc15372df471d155128d2d961d.tar.gz freebsd-ports-gnome-dc787bd3cc31eefc15372df471d155128d2d961d.tar.zst freebsd-ports-gnome-dc787bd3cc31eefc15372df471d155128d2d961d.zip |
Fix build when flac is compiled WITHOUT_NLS
PR: ports/177803
Approved by: william (maintainer)
Diffstat (limited to 'net')
-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 |