aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/mdh
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-02-02 21:32:48 +0800
committerantoine <antoine@FreeBSD.org>2014-02-02 21:32:48 +0800
commita515ad664f6ef2942186d79ed0cfe746ed4d64eb (patch)
treed04784639b2ef6cbdc0786588315f64c4bb5bf9b /deskutils/mdh
parenta0d8bdc8c969e7b4a15f375d5ce9e10dcad57966 (diff)
downloadfreebsd-ports-gnome-a515ad664f6ef2942186d79ed0cfe746ed4d64eb.tar.gz
freebsd-ports-gnome-a515ad664f6ef2942186d79ed0cfe746ed4d64eb.tar.zst
freebsd-ports-gnome-a515ad664f6ef2942186d79ed0cfe746ed4d64eb.zip
- Stage support
- Convert to OPTIONS and OPTIONS helpers
Diffstat (limited to 'deskutils/mdh')
-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>