1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

graphics/gdchart: Replace wrong PROFILE option

The profile library gets built if NO_PROFILE is not set.  All the
PROFILE option was doing was manually changing the pkg-plist which
would only work if the PROFILE option was manually synchronized with
the make.conf option (they are by default, so it worked accidently).

Change PLIST_SUB to switch based on NO_PROFILE as is done with other
ports.
This commit is contained in:
John Marino 2014-07-05 18:55:33 +00:00
parent d05845f5a6
commit 6d384ef0a3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360798

View File

@ -23,9 +23,13 @@ USE_LDCONFIG= yes
EXAMPLES= ft_samp.c gdc_pie_samp.c gdc_samp1.c gdc_samp2.c
OPTIONS_DEFINE= DOCS EXAMPLES PROFILE
OPTIONS_DEFAULT=PROFILE
OPTIONS_SUB= yes
OPTIONS_DEFINE= DOCS EXAMPLES
.if defined(NO_PROFILE)
PLIST_SUB+= PROFILE="@comment "
.else
PLIST_SUB+= PROFILE=""
.endif
post-patch:
${REINPLACE_CMD} \