aboutsummaryrefslogtreecommitdiff
path: root/lang/mpd
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-05-12 06:05:03 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-05-12 06:05:03 +0000
commita4336b798b285774b3b1fb7fdc8d492b389543c5 (patch)
treef04b4da09af88440a84fa754093dfc6c176a91c1 /lang/mpd
parent7ea461e0f75038dea4ad43d5d686cc9125649eab (diff)
downloadports-a4336b798b285774b3b1fb7fdc8d492b389543c5.tar.gz
ports-a4336b798b285774b3b1fb7fdc8d492b389543c5.zip
Notes
Diffstat (limited to 'lang/mpd')
-rw-r--r--lang/mpd/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/lang/mpd/Makefile b/lang/mpd/Makefile
index cec0db29bf6e..e95db27a134d 100644
--- a/lang/mpd/Makefile
+++ b/lang/mpd/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: mpd
-# Date Created: 2007-02-05
-# Whom: Kai Wang <kaiw27@gmail.com>
-#
+# Created by: Kai Wang <kaiw27@gmail.com>
# $FreeBSD$
-#
PORTNAME= mpd
PORTVERSION= 1.0.1
@@ -26,7 +22,8 @@ NO_LATEST_LINK= yes
USE_GMAKE= yes
-OPTIONS= X11 "Enable X11 support" on
+OPTIONS_DEFINE= X11 DOCS
+OPTIONS_DEFAULT= X11
MAN1= mpd.1 mpdl.1 mpdm.1 mpdprof.1
MAN3= mpdanimator.3 mpdgetopt.3 mpdwin.3
@@ -34,7 +31,7 @@ MAN5= mpdmap.5 mpdtrace.5
.include <bsd.port.pre.mk>
-.if defined(WITHOUT_X11)
+.if ! ${PORT_OPTIONS:MX11}
PLIST_SUB+= X11="@comment "
.else
PLIST_SUB+= X11=""
@@ -47,7 +44,7 @@ post-patch:
s%^(MPDSRC =) .*%\1 ${WRKSRC}%; \
s%^((MPD(CMD|LIB)|MAN[135]) =) /usr/local%\1 ${PREFIX}%" \
${WRKSRC}/Configuration
-.if !defined(WITHOUT_X11)
+.if ${PORT_OPTIONS:MX11}
@${REINPLACE_CMD} -Ee 's%^(XINCL =) .*%\1 ${LOCALBASE}/include%' \
${WRKSRC}/Configuration
.else
@@ -58,7 +55,7 @@ pre-install:
@${MKDIR} ${PREFIX}/lib/mpd
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}