Handle NOPROFILE=yes

This commit is contained in:
Kris Kennaway 2002-09-19 01:47:10 +00:00
parent d96747439b
commit 24578aea5b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=66650
2 changed files with 7 additions and 0 deletions

View file

@ -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/' \

View file

@ -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