aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-04-27 20:23:38 +0800
committerpawel <pawel@FreeBSD.org>2014-04-27 20:23:38 +0800
commitd1c0c49fcccd173e9e792934813b7d3643bb326b (patch)
tree26cad8b08761298bec32e706963723bd3d078e34
parentd25dfcdfb343879b761408b51d9995699a6a268c (diff)
downloadfreebsd-ports-gnome-d1c0c49fcccd173e9e792934813b7d3643bb326b.tar.gz
freebsd-ports-gnome-d1c0c49fcccd173e9e792934813b7d3643bb326b.tar.zst
freebsd-ports-gnome-d1c0c49fcccd173e9e792934813b7d3643bb326b.zip
- Add staging support
- Convert to new options framework
-rw-r--r--graphics/gdchart/Makefile31
1 files changed, 10 insertions, 21 deletions
diff --git a/graphics/gdchart/Makefile b/graphics/gdchart/Makefile
index 513c4357e189..6f17307cbab9 100644
--- a/graphics/gdchart/Makefile
+++ b/graphics/gdchart/Makefile
@@ -12,24 +12,21 @@ DISTNAME= ${PORTNAME}${PORTVERSION}dev
MAINTAINER= ports@FreeBSD.org
COMMENT= Easy to use fast C API for creating charts and graphs
-LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd \
- jpeg:${PORTSDIR}/graphics/jpeg \
+LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd \
+ libjpeg.so:${PORTSDIR}/graphics/jpeg \
libfreetype.so:${PORTSDIR}/print/freetype2
+USES= uidfix
MAKEFILE= ${FILESDIR}/Makefile
MAKE_ARGS= PREFIX="${PREFIX}" LOCALBASE="${LOCALBASE}"
USE_LDCONFIG= yes
-DOCS= README.txt
EXAMPLES= ft_samp.c gdc_pie_samp.c gdc_samp1.c gdc_samp2.c
-.if defined(NO_PROFILE)
-PLIST_SUB+= PROFILE="@comment "
-.else
-PLIST_SUB+= PROFILE=
-.endif
+OPTIONS_DEFINE= DOCS EXAMPLES PROFILE
+OPTIONS_DEFAULT=PROFILE
+OPTIONS_SUB= yes
-NO_STAGE= yes
post-patch:
${REINPLACE_CMD} \
-e 's/^#ifdef HAVE_JPEG/#ifndef NO_JPEG/' \
@@ -46,17 +43,9 @@ post-patch:
${WRKSRC}/gdc_pie_samp.c
post-install:
-.if !defined(NOPORTDOCS)
-.for f in ${DOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
-.endfor
-.endif
-.if !defined(NOPORTEXAMPLES)
-.for f in ${EXAMPLES}
- ${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}/
-.endfor
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>