aboutsummaryrefslogtreecommitdiff
path: root/deskutils
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2014-02-02 13:32:48 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2014-02-02 13:32:48 +0000
commit90729ae23296564bc96067af087832f07064bdbc (patch)
treed04784639b2ef6cbdc0786588315f64c4bb5bf9b /deskutils
parentc9dd27a71aae294a600e74e1b0eb080800297259 (diff)
downloadports-90729ae23296564bc96067af087832f07064bdbc.tar.gz
ports-90729ae23296564bc96067af087832f07064bdbc.zip
Notes
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/mdh/Makefile28
1 files changed, 11 insertions, 17 deletions
diff --git a/deskutils/mdh/Makefile b/deskutils/mdh/Makefile
index ca2a36c2ec53..ea9d243e940f 100644
--- a/deskutils/mdh/Makefile
+++ b/deskutils/mdh/Makefile
@@ -18,19 +18,15 @@ GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.if defined(WITHOUT_GTOP)
-CONFIGURE_ARGS+= --disable-gtop
-.else
-LIB_DEPENDS+= libgtop-2.0.so:${PORTSDIR}/devel/libgtop
-.endif
-
-.if defined(WITHOUT_CURL)
-CONFIGURE_ARGS+= --disable-curl
-.else
-LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl
-.endif
-
-NO_STAGE= yes
+OPTIONS_DEFINE= CURL DOCS GTOP
+OPTIONS_DEFAULT= CURL GTOP
+
+CURL_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
+CURL_CONFIGURE_OFF= --disable-curl
+
+GTOP_LIB_DEPENDS= libgtop-2.0.so:${PORTSDIR}/devel/libgtop
+GTOP_CONFIGURE_OFF= --disable-gtop
+
post-patch:
@${REINPLACE_CMD} -e 's| make| $$(MAKE)|g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|\.\./lib/getopt/getopt\.c||g ; \
@@ -43,9 +39,7 @@ post-patch:
@${REINPLACE_CMD} -e '/<curl\/types.h>/d' ${WRKSRC}/src/curl.c
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>