summaryrefslogtreecommitdiff
path: root/graphics/gdchart
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-09-19 01:47:10 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-09-19 01:47:10 +0000
commit24578aea5b94637c461ce53711fb6d7abc0129d9 (patch)
tree76268305f78e6483925c0b878b9b962416156c96 /graphics/gdchart
parentAdd a missing file and sort (diff)
Handle NOPROFILE=yes
Notes
Notes: svn path=/head/; revision=66650
Diffstat (limited to 'graphics/gdchart')
-rw-r--r--graphics/gdchart/Makefile6
-rw-r--r--graphics/gdchart/pkg-plist1
2 files changed, 7 insertions, 0 deletions
diff --git a/graphics/gdchart/Makefile b/graphics/gdchart/Makefile
index e717f36bcf6a..55776a120608 100644
--- a/graphics/gdchart/Makefile
+++ b/graphics/gdchart/Makefile
@@ -25,6 +25,12 @@ MAKE_ARGS= PREFIX="${PREFIX}" LOCALBASE="${LOCALBASE}"
DOCS= README
EXAMPLES= ft_samp.c gdc_pie_samp.c gdc_samp1.c gdc_samp2.c
+.if defined(NOPROFILE)
+PLIST_SUB+= PROFILE="@comment "
+.else
+PLIST_SUB+= PROFILE=
+.endif
+
post-patch:
${REINPLACE_CMD} \
-e 's/^#ifdef HAVE_JPEG/#ifndef NO_JPEG/' \
diff --git a/graphics/gdchart/pkg-plist b/graphics/gdchart/pkg-plist
index 9a925c1d07e8..54647670e182 100644
--- a/graphics/gdchart/pkg-plist
+++ b/graphics/gdchart/pkg-plist
@@ -3,6 +3,7 @@ include/gdchart.h
include/gdcpie.h
include/gifencode.h
lib/libgdc.a
+%%PROFILE%%lib/libgdc_p.a
%%PORTDOCS%%share/doc/gdchart/README
%%PORTDOCS%%@dirrm share/doc/gdchart
%%PORTDOCS%%share/examples/gdchart/ft_samp.c